You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IDE is open, showing one or more files in the code pane. Each file is in its own tab, one tab/file has focus. From the file explorer I drag and drop a file in the code pane.
Two actions happen:
A new tab is created, the dropped file is loaded into that tab, the tab is given focus. The tab is decorated by a lock. This is the wanted action.
The tab that was in focus just before the drop is "edited"; it gets characters added, namely the full path of the file dropped. This is unwanted behavior.
Why would you want to drop a file? For example to inspect the source code of a used library, maybe even to put a breakpoint there for a debug session.
To reproduce
Open any project. Here I opened a project where I just added one extra empty file file driver1.h for fun.
Screenshot before the drop.
Screenhot while dragging. Do note the funny extra 5 dot cursor in column 0 of line 3.
Screenshot after the drop, notice the dropped file driver2.h is added as tab and in focus.
Situation after the drop in the "old file", notice line 3 has the path to driver2.h. That was where the funny 5 dot cursor was when dropping.
Expected behavior
I expect the dropped file to be added (which happens).
I do not expect the current file to be edited.
Arduino IDE version
2.3.5
Operating system
Windows
Operating system version
Edition Windows 10 Enterprise, Version 22H2, OS build 19045.5737, Windows Feature Experience Pack 1000.19061.1000.0
Additional context
Observation: When dropping on the tab bar instead of the source pane, the wanted behavior takes place, and the unwanted is skipped. Acceptible work-around (once known), but harder to aim.
Describe the problem
The IDE is open, showing one or more files in the code pane. Each file is in its own tab, one tab/file has focus. From the file explorer I drag and drop a file in the code pane.
Two actions happen:
Why would you want to drop a file? For example to inspect the source code of a used library, maybe even to put a breakpoint there for a debug session.
To reproduce
Open any project. Here I opened a project where I just added one extra empty file
file driver1.h
for fun.Screenshot before the drop.
Screenhot while dragging. Do note the funny extra 5 dot cursor in column 0 of line 3.
Screenshot after the drop, notice the dropped file
driver2.h
is added as tab and in focus.Situation after the drop in the "old file", notice line 3 has the path to
driver2.h
. That was where the funny 5 dot cursor was when dropping.Expected behavior
I expect the dropped file to be added (which happens).
I do not expect the current file to be edited.
Arduino IDE version
2.3.5
Operating system
Windows
Operating system version
Edition Windows 10 Enterprise, Version 22H2, OS build 19045.5737, Windows Feature Experience Pack 1000.19061.1000.0
Additional context
Observation: When dropping on the tab bar instead of the source pane, the wanted behavior takes place, and the unwanted is skipped. Acceptible work-around (once known), but harder to aim.
Same behavior in nightly build
Issue checklist
The text was updated successfully, but these errors were encountered: