Skip to content

IDE won't start after installing a library with an invalid version #7917

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
per1234 opened this issue Aug 24, 2018 · 1 comment · Fixed by #7920
Closed

IDE won't start after installing a library with an invalid version #7917

per1234 opened this issue Aug 24, 2018 · 1 comment · Fixed by #7920
Assignees
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug
Milestone

Comments

@per1234
Copy link
Collaborator

per1234 commented Aug 24, 2018

Using Arduino IDE 1.8.6/Arduino IDE 1.8.6 Hourly Build 2018-08-23 11:33/Arduino 1.9.0-beta build 80 on Windows 10 64 bit

When a library is installed with an invalid value in its library.properties version field the Arduino IDE will not start.

  1. Download xbee_serial_array-master.zip
  2. Sketch > Include Library > Add .ZIP Library... > select the downloaded file > Open
  3. File > Quit
  4. Attempt to run the Arduino IDE - It does not start.

arduino_debug.exe output:

C:\ArduinoIDE\arduino-1.8.6>arduino_debug.exe
Loading configuration...
Initializing packages...
Preparing boards...
Invalid version found: 0.9a
java.lang.NullPointerException
        at processing.app.packages.UserLibrary.create(UserLibrary.java:156)
        at cc.arduino.contributions.libraries.LibrariesIndexer.scanLibrary(LibrariesIndexer.java:213)
        at cc.arduino.contributions.libraries.LibrariesIndexer.scanInstalledLibraries(LibrariesIndexer.java:190)
        at cc.arduino.contributions.libraries.LibrariesIndexer.rescanLibraries(LibrariesIndexer.java:150)
        at cc.arduino.contributions.libraries.LibrariesIndexer.setLibrariesFolders(LibrariesIndexer.java:109)
        at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:677)
        at processing.app.Base.onBoardOrPortChange(Base.java:1313)
        at processing.app.Base$11.actionPerformed(Base.java:1514)
        at processing.app.Base.rebuildBoardsMenu(Base.java:1490)
        at processing.app.Base.<init>(Base.java:267)
        at processing.app.Base.main(Base.java:145)

The problem does not occur with Arduino IDE 1.8.5.

@facchinm facchinm added Type: Bug Component: Board/Lib Manager Boards Manager or Library Manager labels Aug 24, 2018
cmaglie added a commit to cmaglie/Arduino that referenced this issue Aug 24, 2018
cmaglie added a commit to cmaglie/Arduino that referenced this issue Aug 24, 2018
@PaulStoffregen
Copy link
Contributor

Didn't see this last night & made a redundant fix.

#7922 is simpler, but doesn't address some of the stuff in #7920 like better error messages libs without any .h file.

@facchinm facchinm added this to the Release 1.8.7 milestone Aug 27, 2018
cmaglie added a commit that referenced this issue Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants