-
-
Notifications
You must be signed in to change notification settings - Fork 114
Incomplete error message #11
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
I wonder if the full path to the platform.txt might be more useful, but I guess you don't have access to that information right there. |
I do but it would be quite a change in how error messages are reported. That one as well as others came straight from the IDE. Let's keep them this way for some time and see how much feedback comes |
Looking more closely at the check that causes this error message makes me wonder if it needs to be present at all? Why would arduino-builder enforce having a The reason the check is present, I think, is that the compiler used to define If the check stays, I think it should allow an empty string as a valid value, which it currently does not. This is what caused the error here: I have overridden |
Uhm yeah, I think it's a legacy from old IDE versions. @cmaglie what do you think? Can you get rid of that check? |
For me it can be removed. This commit contains a bit of history: |
(edited the previous comment) Previously the compiler.path was set by the IDE to the shipped avr-gcc or, if not found, to the system wide avr-gcc. This has been removed with the latest IDE from long time, so I guess the variable is no longer mandatory. |
arduino/Arduino@a89f5e6 Signed-off-by: Federico Fissore <[email protected]>
Thanks @cmaglie, warning removed |
Right, so it was originally a warning and set a default compiler.path value, but it turned into an error with arduino-builder. Seems like a good thing to remove it now indeed. Also, yay for detailed commit messages ;-) |
When compiling something, I get:
(I removed some warnings about libraries that seem unrelated)
This warning is next to useless, since it doesn't specify what platform.txt / package is incorrect. I was compiling for the arduino Uno, so the error is weird in itself, but that's a separate issue (I'll look more closely at that issue tomorrow, let's keep this issue about the error message). I'm not sure what the best way to fix this is in Go, so I'll leave the fix to @ffissore (or whoever). There might be similarly unspecific error messages as well, that also need fixing (didn't check).
The text was updated successfully, but these errors were encountered: