Skip to content

When encountering ''Incorrect IDE installation folder", the output is frustratingly silent on what needs to be fixed #10766

@brewmanz

Description

@brewmanz

The two reasons (Your copy of the IDE is installed in a subfolder of your settings folder.\nPlease move the IDE to another folder. & Your copy of the IDE is installed in a subfolder of your sketchbook.\nPlease move the IDE to another folder.) do not actually state what specifically needs to be fixed.

Maybe this is okay for seasoned Arduino developers, but why not actually tell the newbie developer what the conflicting settings are?

One solution could be to change BaseNoGui.java code like

    if (isIDEInstalledIntoSketchbookFolder()) {
      showError(tr("Incorrect IDE installation folder"), tr("Your copy of the IDE is installed in a subfolder of your sketchbook.\nPlease move the IDE to another folder."), 10);
    }

into maybe something like

    if (isIDEInstalledIntoSketchbookFolder()) {
      if (PreferencesData.has("sketchbook.path")){
       showWarning(I18n.format("sketchbook.path=<{0}>", PreferencesData.get("sketchbook.path")), I18n.format("runtime.ide.path=<{0}>", PreferencesData.get("runtime.ide.path")), null);
      }
      showError(tr("Incorrect IDE installation folder"), tr("Your copy of the IDE is installed in a subfolder of your sketchbook.\nPlease move the IDE to another folder."), 10);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: IDEThe Arduino IDEfeature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions