-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Eclipse Sloeber - cannot build using 3.1.0 on system without arduino IDE installed; because pre-build needs preferences.txt #8810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
This is a change that that was introduced after ESP8266 version 3.0.2 Simply changing the script so that the copying of the opt file is done before trying to do the workaround should fix this issue. |
Yes, the feature was added after 3.0.2 The With at least two sketches open when the state of It is possible to cause the core files to always be rebuilt every time; however, that slows down development time. It is better to know there is a problem and have the opportunity to address it. For reliable builds, you need to know how you build environment-defined
Details on other options can be found here. Or the feature can be disabled as described before. |
I have read up on the doc you provided me. Basically this feature introduced after ESP8266 V3.0.2 tries to work around a "difficulty" introduced in Arduino IDE 1.8.2 How I see the corrent situation in ESP8266 talk: Sloeber works with Therefore the fact that the workaround can not be applied is not an issue at all for Sloeber. The fact the opt file is not copied is a problem. My conclusion |
Since your sketches have a private copy of
After 8 months, my recollection of all the nuances and concerns with this enhancement has faded a bit. My exposure to alternative build platforms has been limited. I felt at the time with the uncertainty of how an "alternative build platform" might be implemented, it was best to fail rather than silently create a possibly errant build. But, allow for methods that could override the failure by hinting at the correct answer. BTW: If you are using While composing this, I see you have a solution path already worked out. I'll post this anyway in case it has content useful for others. |
@mhightower83 we would like to use the esp8266 Arduino without preferences.txt |
I do not have a solution. I have a workaround with some serious drawbacks.
Sloeber workaround is ignoring any error/failure from the pre build actions. Unfortunately I can not do this only for ESP8266 so now any pre build failure will go unnoticed. 😢 Again: 1) As you implement a platform provider in the arduino framework you should not assume you are started by the Arduino IDE. As such throwing an error because you do not find Arduino stuff is not the way to go. |
Was closed in #8803 |
While investigating #8803 Sloeber/arduino-eclipse-plugin#1547 , and Sloeber/arduino-eclipse-plugin#1546 I found that the prebuild command needs a preferences.txt file (see logs below).
If the user is on a system that has Sloeber or any other third party IDE installed but has no Arduino IDE (Like on a build server) this preferences.txt will not be found.
Apparently when the py script fails to do a workaround for the Arduino IDE the copy command of the build.opt is not executed resulting in a build failure.
Can you remove the dependency on the preferences.txt?
Thanks
Jantje
Failure during Sloeber Build https://github.com/Sloeber/arduino-eclipse-plugin/actions/runs/3924285135/jobs/6708444570#step:4:2500
Failure during regression testing on windows
The text was updated successfully, but these errors were encountered: