Extra blank window when IDE started via sketch file association #2688
Labels
topic: theia
Related to the Theia IDE framework
type: imperfection
Perceived defect in any part of project
Describe the problem
In addition to starting the Arduino IDE application directly, it can be started by opening a specific sketch file when sketches are associated with the Arduino IDE application.
🐛 When Arduino IDE is started by opening a sketch file, an additional blank window is opened. This is annoying to the users and might cause confusion.
To reproduce
All Arduino IDE windows will close.
.ino
file from a sketch.A context menu will open.
A submenu will open that allows you to select which application to use to open the file.
Arduino IDE starts, with the selected sketch open as expected.
🐛 However, an additional blank Arduino window also opens.
Expected behavior
Blank Arduino windows are not created.
Arduino IDE version
e36f393
Operating system
macOS
Operating system version
Sequoia
Additional context
I bisected the regression to 859d29d / #2654 (does not occur when using the build at the previous commit d298b3f).
Since this fault is similar to the one reported in #2678, I hoped this would also be fixed by #2686. However, the fault still occurs when using the tester build from that PR (e62764b).
The fault does not occur when I start Arduino IDE by passing the path of the sketch via a command line argument.
I see this in the logs when the fault occurs:
The original reporter sees a dialog when the fault occurs:
Although I do encounter the blank window fault, I don't get that dialog.
Originally reported by @embedded-kiddie at https://forum.arduino.cc/t/a-javascript-error-occurred-in-the-main-process-when-i-open-some-ino-file/1370279
Issue checklist
The text was updated successfully, but these errors were encountered: