IDE hangs on startup if drive containing sketchbook location not accessible #1764
Closed
3 tasks done
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
The Arduino sketchbook is a convenient place to store sketches and the location where Arduino IDE installs libraries.
The user can set a custom location for the sketchbook via the "Sketchbook location" preference.
🐛 If the drive containing the "Sketchbook location" path is not available, the Arduino IDE startup hangs. The cause is not communicated to the user in any way.
To reproduce
Setup
-OR-
The fault can also be reproduced even if you don't have a removable drive on hand:
<username>
is your Windows username)directories.user
key to one under a drive that doesn't exist on your computer.For example:
Steps
🐛 Startup hangs at the loading animation:
Expected behavior
Arduino IDE clearly communicates to the user that the sketchbook location is inaccessible. If it is not possible for the IDE to be functional under these conditions, this should also be clearly communicated to the user and they should still be able to change the "Sketchbook location" preference to an accessible path to restore the functionality.
Arduino IDE version
f8c01e3
Operating system
Windows
Operating system version
10
Additional context
I bisected the introduction of the bug to 6983c5b (does not occur with the build for the previous commit b3ab5cb)
I see this in the logs on startup:
The fault does not occur if the drive is accessible but the sketchbook folder is missing. In this case, the missing folder is simply created on startup (6983c5b).
Originally reported at https://forum.arduino.cc/t/arduino-ide-2-wont-start/1063769
Issue checklist
The text was updated successfully, but these errors were encountered: