-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Arduino IDE fails to start under windows if "Documents" directory is unavailable. #7097
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
Traceback: C:\Users\breakme\Downloads\arduino\arduino-1.8.5>.\arduino_debug.exe |
Solves #7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves #7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
From the forum thread (http://forum.arduino.cc/index.php?topic=521015.msg3559240#msg3559240)
No word from the user who originally reported the issue yet. |
Solves arduino#7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves #7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves #7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves #7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves arduino#7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves arduino#7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves arduino#7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
Solves #7097; the user will be prompted if default sketchbook folder doesn't exist. If needed, the exception will be thrown by getDefaultSketchbookFolder() as in Linux/OSX implementations.
The original reporter of the bug has reported to me that the problem is solved (via a PM on the forum) and I see the fix is merged into the |
Early in its initialization, the Arduino cod calls Win32KnownFolders.getDocumentsFolder, which does a catch-less:
return new File(Shell32Util.getFolderPath(ShlObj.CSIDL_MYDOCUMENTS));
If the Documents folder is not accessible, this fails and throws an exception as shown by arduino_debug (see attached backtrace.)
This can be easily reproduced by creating a windows user and modifying their documents folder to be on a flash drive, ejecting the flash drive, and then trying to start Arduino. It can also occur if the Documents directory is configured to be on a network share that is unreachable.
Because this happens so early in the initialization, it fails even if the IDE has been installed in "portable" mode, which should prevent it from needing to access the Documents directory. (Thus: no known workaround.)
It looks like other code is prepared to deal with a null sketchbook path; perhaps all that is needed is ignoring the error...
See also this thread: http://forum.arduino.cc/index.php?topic=521015.msg3555956#msg3555956
The text was updated successfully, but these errors were encountered: