Open tikonen opened 4 years ago
Hi @tikonen. I have not been able to reproduce this bug. It's possible it could be caused by your antivirus software. Try TEMPORARILY disabling the antivirus for a single compilation, then turn the antivirus back on. Please let us know whether the error still occurs with the antivirus disabled.
Hi, I don't have antivirus so this is probably caused by something else. I checked the build folder when error happens and there is a sketch folder that can not be accessed.
c:\Users\Teemu Ikonen\AppData\Local\Temp\arduino_build_277221>dir
Volume in drive C has no label.
Volume Serial Number is BC4F-7093
Directory of c:\Users\Teemu Ikonen\AppData\Local\Temp\arduino_build_277221
12/07/2019 06:57 PM <DIR> .
12/07/2019 06:57 PM <DIR> ..
12/07/2019 06:57 PM 1,507 build.options.json
12/07/2019 06:57 PM <DIR> sketch
1 File(s) 1,507 bytes
3 Dir(s) 78,356,312,064 bytes free
c:\Users\Teemu Ikonen\AppData\Local\Temp\arduino_build_277221>cd sketch
Access is denied.
c:\Users\Teemu Ikonen\AppData\Local\Temp\arduino_build_277221>
After I close the Arduino IDE the both the json and folder sketch disappear from the build folder.
I just had exactly the same problem, trying to use tabs to organise a complex Arduino application.
The problem is that the folder created by the IDE (c:\Users\Teemu Ikonen\AppData\Local\Temp\arduino_build_277221 in @tikonen 's post above is created without an owner. Windows does not give you permission to delete an un-owned folder (even if you are the administrator).
I had the very same issue on Windows after removing a .h file from the IDE. Fixed just by closing and reopening Arduino IDE
The bug is still in 1.8.12 on June 2020.
On 1.9.0 beta still present. (on windows 10)
For those who might have come here from google in search for solution: The way to get around this issue is to close the Arduino IDE and re-open your sketch. Then it will work fine.
The bug is still in 1.8.13
It looks like there was a previous report at https://github.com/arduino/Arduino/issues/7229
Still in 1.8.16. Re-starting helped as described.
Bug still present in 1.8.19.
Arduino IDE 1.8.10 On Windows 10.
Steps to reproduce.
What happens: Compile fails with an error
With verbose mode the error is: