I've been developing software for Arduino for years. This week I started programming ESP8266-01 module. I got no problem at all, but starting today, no way to get a project compiled, whatever was the project. Even previously compiled projects don't compile now.
On Widows 11, with IDE 1.8.19 , during compilation I get the following error message and compilation stops.
"
unable to save the sketch on disk: open sketch\Single_DS18B20_Serial.ino.cpp: The process cannot access the file because it is being used by another process.
Erreur de compilation pour la carte Generic ESP8266 Module
"
The .cpp file is in a temp folder. I deleted all the temp folders, stoped antivirus file check but nothing helped.
Has anyone en idea of where this conflict is coming from ?
Thank you for your advise.
But I don't edit the file from any other editor, lister ...
I tried a reboot using "shutdown /s /t 0" but it's the same problem.
You propose a real reboot. Which command should I use ?
After lot of investigations, using verbose mode of Arduino IDE compiler, I found that the linker neither can access generated object files.
It resulted that the directory \Users\xxxx\AppData\Local\Temp used for compilation and linkage was in Read Only mode.
I removed the ReadOnly flag, and now everything is OK.
I don't have any idea on how this flag was set and by which process.