Currently opened sketch loaded when another sketch is opened by command line argument while IDE already running #2678
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
In addition to opening them via the Arduino IDE GUI, sketches can be opened directly either via file association or by passing their path as an argument to the IDE command line invocation.
If a sketch is opened in this manner while Arduino IDE is already running, the currently opened sketch is opened again in a new window instead of the sketch specified by the command line argument.
To reproduce
Expected behavior
I should have multiple sketches in multiple windows without need to use open option in the program.
Arduino IDE version
2.3.5
Operating system
Windows
Operating system version
11
Additional context
I bisected the regression to 859d29d / #2654 (does not occur when using the build at the previous commit d298b3f).
Opening additional sketches via the File > New Sketch menu item in the Arduino IDE GUI works correctly.
Additional reports
Issue checklist
The text was updated successfully, but these errors were encountered: