Espressif-IDE generates fake errors
Posted: Thu May 02, 2024 4:39 pm
Many times when I compile a program, I get errors that are not real because no changes were made since the last time it compiled successfully. For example, I can compile a project (in this case based largely on the advanced console example app) and I get success messages like this:
esptool.py v4.7.0
Creating esp32c6 image...
Merged 3 ELF sections
Successfully created esp32c6 image.
Then I try to flash the program, and a dialog pops up and says:
Errors exist in required project(s):
myproject_esp32c6
Proceed with launch?
If I look at the source code for the project, the main file will show hundreds of error messages. If I proceed with the launch, it will flash and run and then the fake errors will all go away.
esptool.py v4.7.0
Creating esp32c6 image...
Merged 3 ELF sections
Successfully created esp32c6 image.
Then I try to flash the program, and a dialog pops up and says:
Errors exist in required project(s):
myproject_esp32c6
Proceed with launch?
If I look at the source code for the project, the main file will show hundreds of error messages. If I proceed with the launch, it will flash and run and then the fake errors will all go away.