Closed
Description
Describe the problem
When starting Arduino IDE 2.1.1, it tries to restore the last opened project. If that project is on a shared folder that is now unavailable, the IDE never starts. It does not show an error message. It does not even open a window.
Starting the IDE from CMD prints this:
Failed to start the electron application.
[Error: UNKNOWN: unknown error, stat '\\192.168.1.20\Share\Test\main\main.ino'] {
errno: -4094,
code: 'UNKNOWN',
syscall: 'stat',
path: '\\\\192.168.1.20\\Share\\Test\\main\\main.ino'
}
I had to remove the workspace-object from %AppData%\arduino-ide\config.json, then it started again.
To reproduce
- Create a new sketch
- Save it on a shared folder (e.g. on a NAS or on a folder shared from a different computer)
- Close Arduino IDE
- Unplug your network cable / disconnect WiFi
- Start Arduino IDE
Expected behavior
The IDE should start up, and show a new, empty project (possibly the default sketch that's also shown when clicking on File -> New Sketch). It should ideally show a warning that the previous project (insert path here) could not be reopened.
Arduino IDE version
2.1.1
Operating system
Windows
Operating system version
Windows 10
Additional context
Additional reports
Related
- https://forum.arduino.cc/t/ide-2-1-1-wont-load/1158292
- https://forum.arduino.cc/t/arduino-2-0-ide-does-not-launch/1059988
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details