Skip to content

Gracefully handle libraries having unparsable version info #7922

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

Closed

Conversation

PaulStoffregen
Copy link
Contributor

If any library has malformed version info in its library.properties file, the Arduino IDE fails to launch. If run from the command line, or arduino-debug.exe on Windows, the user sees a very unhelpful error telling then only "Invalid version found", but not which library is causing the problem.

This patch adds a more helpful message, and falls back to version "0.0.1" to allow the IDE to launch.

To test for this problem, simply install any library, then edit its library.properties. I tested with DMXSerial2, changing it to "version=1.02.0". The IDE is unable to start, and the user gets stuck without any reasonable way to discover which file is causing the problem.

@PaulStoffregen
Copy link
Contributor Author

This problem can also be triggered if the user alters their sketchbook location from File > Preferences.

When they restart the IDE for the change to take effect, the IDE is unable to start if the user unwittingly chose any folder containing (perhaps old) libraries with unparseable version info. Without the ability to launch the IDE, the user can't return to the Preferences dialog to restore their old sketchbook location.

@cmaglie
Copy link
Member

cmaglie commented Aug 25, 2018

Already fixed in #7920. I think that should be merged and another IDE release made ASAP.

@PaulStoffregen
Copy link
Contributor Author

Wow. If 1.8.7 is to come quickly, is there any change of merging the AARCH64 stuff and put an official but "experimental" download on the website?

@PaulStoffregen
Copy link
Contributor Author

Closing this one, since #7920 is the intended fix.

@PaulStoffregen
Copy link
Contributor Author

@cmaglie - Still thinking about a release asap? Want any help? I'd really like to see 1.8.7 soon since so many users are suffering from the IDE not being able to start up.

@per1234 per1234 added Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic labels Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants