-
Notifications
You must be signed in to change notification settings - Fork 311
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
2.0: panic: no major version found #703
Comments
That's an IDE bug, as far as I am aware, and I have not heard any explanation of how it is triggered, by my core or anything else. But it seems to impact only versions after 1.8.13. Thus 1.8.13 the only version of the IDE that's really usable (up until 1.8.12, they put inapplicable entries into tools-> programmers, assuming every programmer could support every part. Needless to say that is not the case, and because it used the platform.txt file that came with the programmer definition, every core had to supply their own copy of every common programmer. So you'd end up with a dozen programmers or so per core installed, ex, you'd see 4 "USBAsp" programmer options... but only one of them would use the correct platform.txt and work).
I don't know the language that's written in, or have any idea how to debug it, and I haven't been able to get anyone who does to help out, so all I can advise is going back to 1.8.13, which is what I use for everything. Because of this bug. I don't know what supposed improvements they've been working on in 1.8.x
Notice that when it manifests it fails on all boards, not just ATTinyCore. At least that's the behavior I see with it. I don't know what causes it o what it thinks should have a major version and doesn't. The core certainly does. It's a real mystery. Wouldn't it be nice if the error message the IDE printed told you what it was that it was crashing because it couldn't determine the major version of? Since it's such a serious error that it prevents all compilation? But they don't, the problem reproduces only erratically for me, and nobody has given an explanation of what is wrong or - if it is related to my core - how I could fix it.
|
Closing because we cannot fix this as it is a bug in arduino. Only advise I can give until they finally decide to care about the huge regression they introduced in 1.8.14 is to stick with 1.8.13, which thankfully fixed the bug that displayed inappropriate programming tool options. At least we got one working versinon before they took a hammer to other key functionality. I have not been able to find any information on how this could be fixed from the core, If anyone knows. please reopen this issue and tell me! |
It seems to be choking on this line: Line 14 in e1cd63d
I got the Blink sketch to build by replacing it with the following:
|
Hi all. The bug in Arduino CLI that caused this panic has now been fixed: arduino/arduino-cli#1830 I apologize for the inconvenience.
I explained it to you on the forum here: https://forum.arduino.cc/t/panic-no-major-version-found/876644
This line: Line 14 in e9cf2f3
The property references were not being expanded, so it was treated as that literal string, which of course is not a valid version.
In addition to the condition of using the affected versions of Arduino IDE (>1.8.13, <=2.0.0-rc9.1) or Arduino CLI, the other required condition is to have manually installed the boards platform in the sketchbook folder. The Boards Manager installations don't use the With those conditions satisfied, it should be consistently reproducible. I provided instructions for a minimal reproduction using Arduino CLI here:
As AndrioCelos explained already, the workaround is to refrain from using property references in the -version={versionnum.major}.{versionnum.minor}.{versionnum.patch}{versionnum.postfix}
+version=2.0.0-dev I would be happy to submit a pull request for the change if you would like. |
Any idea whether this is likely to be back ported to 1.8.x? given that the last hourly build was "LAST UPDATE: 24 Apr 2022, 23:52:49 GMT" I am assuming it is unlikely. The current advice to use 1.8.13 is unfortunate given the log4j issues there. |
I don't know about 1.8.x, but I can tell you that the fix for this issue, as well as the fix for the megaTinyCore issue you reported (SpenceKonde/megaTinyCore#751), is in the Arduino IDE 2.0.0-rc9.2 release that was made just minutes ago: https://github.com/arduino/arduino-ide/releases/tag/2.0.0-rc9.2 Please give it a try and let us know if you have any problems or suggestions for enhancements. |
Awesome! I verified RC9.2 fixes both issues. Thanks for fixing these and delighted to have an RC I can recommend. Where would you suggest sending those problems and suggestions?
Happy to stick more carefully written versions of these wherever you suggest. |
Formal bug reports or feature requests should be submitted to the issue tracker of the appropriate repository:
Less structured feedback or general discussion should be done on the Arduino Forum:
This is being tracked here: arduino/arduino-cli#1818
This is being tracked here: arduino/arduino-ide#1087
This is already in progress: arduino/arduino-ide#1275 It is currently not working on Windows, and there are some other minor issues (see the comments in the PR), but it is quite usable for me on Linux. If you would like to try it out, test builds are available from the links under the "Artifacts" section of this page: https://github.com/arduino/arduino-ide/actions/runs/2781486653#artifacts (note that GitHub requires you to be signed in to your account in order to download workflow run artifacts)
The capability has been requested in several forms. I think the most comprehensive discussion happens to have occurred in this proposal for doing it via comments in sketches: Your metadata file approach (which is less hacky than putting the info in the sketch code) has also been proposed and receives some discussion there as well. That is in the Arduino IDE 1.x issue tracker, but the foundation of such a feature must be done in Arduino CLI, which will make it available both for using Arduino CLI directly as well as for all the tools that use Arduino CLI under the hood (e.g., Arduino IDE, Arduino Web Editor). A https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketchjson A "sketch project file" was also recently added: https://arduino.github.io/arduino-cli/dev/sketch-specification/#sketch-project-file Arduino IDE will use the Related:
Tracked here: arduino/arduino-cli#159 Request for adding support for them in the sketch project file: arduino/tooling-rfcs#9 There is a collection of links to related requests and discussions here: arduino/arduino-cli#846
I am not aware of any reports of this issue. If you are still able to reproduce it with the latest version, please do submit a report to the |
The mere presence of the library causes this error, even when compiling for a completely different board. This is on Arduino 1.8.19
The text was updated successfully, but these errors were encountered: