Hello all,
I Run my arduino IDE, on W7. It works fine.I have already done some sketches, and boards.
I have modified a library (Sodaq_DS3231 ,), and when going back on my modifications, because they don't work , it seems that the compiler has saved somewhere my modified libraries files, and continue to use them.
I went on the libraries directory to modify the files, giving an .old extension to the libraries.
When going back, I have rename again in .h and .cpp the previous files.
So , normally, it is lke before the modifications.
But, the compiler stills continues to generate errors, like if the bad files all still in use.
Even if I quit arduino IDE and launch again, it is the same.
An idea ?
Thanks.
(the reason of modifying was because this library uses a float number, and sprintf doesn't work in arduino with it, so I have replaced the reading and put into 2 integers)
The Arduino IDE does cache compiled libraries to speed up subsequent compilations but if there was an error then the library would not be cached since the compilation didn't finish. The library is also recompiled whenever the library files are modified and the cache is cleared when you exit the Arduino IDE. So I don't know what could cause the problem you're encountering.
Are you using Arduino IDE 1.8.5? Older IDE versions might have had problems with the caching system.
I recommend checking the path shown in the error message to verify that there isn't a different copy of the library being compiled. If necessary, you can do File > Preferences > Show verbose output during > Compilation (check) > OK to see the path of the libraries that are compiled in the black console window at the bottom of the Arduino IDE window.
I m using Arduino 1.8.5.
I have found in directory C:\Users\Marc\AppData\Local\Temp\ plenty of directories Arduino_build_XXXXXX where XXXXXXX is a number.
I have killed them.
Looking at what does IDE, its seems that sometimes it kills the directories, while exiting, sometimes not.
(18 arduino_build_xxxxxx and one arduino_modified_sketch_xxxx)
Since killing directories, it did not occurs again. (Only one day of test... )
Some times I runs 2 or a 3 IDE instances at the same time, may be this is a reason. (instead of using tabs, that i just discovered how to open, beacause tabs are not in the menu , but in right part of screen...)
Also because of that I also have installed NotePad++, this morning,and is more comfortable.
Just also avoiding to run more than one IDE at the same time.
I will checking the error message.
The preferences are set .
Thanks