Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

IDE does not start when last project is on unavailable network path #2166

Copy link
Copy link
Closed
@Niko-O

Description

@Niko-O
Issue body actions

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

  1. Create a new sketch
  2. Save it on a shared folder (e.g. on a NAS or on a folder shared from a different computer)
  3. Close Arduino IDE
  4. Unplug your network cable / disconnect WiFi
  5. 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

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.