Skip to content

Can't add additional board URL in settings #1511

Closed as not planned
Closed as not planned
@thewh1teagle

Description

@thewh1teagle

Describe the problem

When using arduion IDE 2.0 on Windows, when trying to add additional board URL through the settings, I can't apply it with OK button, it says Invalid sketchbook location: c:\Users\User\Documents\Arduino.
It happened because the folder does not exists. If I create the folder it solves it, but the application itself should create the folder automatically in case it's not exists.

It happens here:
arduino/arduino-ide/arduino-ide-extension/src/browser/dialogs/settings/settings.ts
I would add additional check before of that:
pseudo code:

IF {default sketch folder does not exists}
THEN create it
...

Let me know if it's something you would interested in I can make new PR.

To reproduce

Delete C:\Users\User\Documents\Arduino folder, then try to add additional board URL in settings.

Expected behavior

Add board URL without ERROR.

Arduino IDE version

2.0.0

Operating system

Windows

Operating system version

11

Additional context

.

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions