Skip to content

Installing the IDE to the sketchbook folder causes havoc #2719

Closed
@PaulStoffregen

Description

@PaulStoffregen

Mistakenly placing a complete copy of the Arduino IDE into the sketchbook folder causes all sorts of subtle and difficult to understand problems. Because the sketchbook can have "hardware" and "libraries" folders, those folders from a copy of Arduino cause libraries to incorrectly override others, without the platform and board specific matching meant to be used on the IDE's copies.

Crazy or unlikely as this situation sounds, it turns out some users, especially on Windows, will intuitively rename the extracted folder "Arduino" and place it into their Documents folder. Or if they have multiple copies of Arduino, they may use File > Preferences to set the sketchbook, based on a misunderstanding that doing so lets them switch between their many copies of Arduino in various locations on their computer.

The IDE should perform some sanity checks on the sketchbook folder at startup, so make sure it is not actually a complete copy of the IDE. If it is, some sort of nicely worded dialog box should be shown, to explain the mis-configuration to the user. If the IDE actually runs, many things do work, especially sketches that don't use libraries. But sketches using libraries tend to fail in very difficult to understand ways, especially when libraries used have multiple copies in "libraries" and also in the various platform folders under hardware.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions