Pros build and upload on VS Code not working

My code is working and i see no errors in main.cpp, however after making no changes and trying to build the code again, I keep getting this error now and I cannot find how to fix it.

Not sending analytics for this command.
ASSET bin/static/Icon
.o
arm-none-eabi-objcopy: error: the input file 'static/Icon
make: *** [bin/static/Icon
.o] Error 1
ERROR - pros.cli.build:make - Failed to make project: Exit Code 2 - pros-cli version:3.5.4
PROS-CLI Version:  3.5.4
PROS-Kernel Version: 4.1.1
Error
Failed to build

I built the same code on my Windows desktop; it worked, but it does not on my Mac. I tried reinstalling pros, lemlib, vscode, but nothing worked.

We can’t help without more info about your project, but you can try deleting the bin folder and building again. Usually only the parts of the code that changed get rebuilt to save time, but deleting bin will make it rebuild all of your code from scratch. It sounds like the problem could be caused by some old build files being stuck in there somewhere.

I figured out the issue. There is a file called “Icon” in the static subfolder for MacOS and in Windows, this file is called “desktop.ini”
Once deleting it on my Mac, I was able to run the code and build it. The only issue is that the file keeps reappearing after I restart my computer or restart VS Code. The funny thing is, this file is empty and contains nothing in it once I view it. What is this file, and why do I have to delete it to run it?

Another thing to mention, I have this folder of all my projects synced to Google Drive using the Google Drive app. This creates a small Google Drive icon on the folder which could relate to the file that is interrupting the building process.

That definitely seems like it’s caused by google drive. Your best way to fix it would probably be to modify the code that imports your path files to make it ignore the Icon file. Another (much more hacky) solution would be to add this line to the top of your Makefile to make it try to delete the file every time you build your code:

$(shell rm ./static/Icon)

You could also just not use google drive and use something specifically designed for programming, like github, if that’s an option for you.