New Tab command - first invocation does nothing

I would guess that this is a known issue and probably there is an open github issue on it.
But my quick look did not find it. So just in case.

I am running on a Windows 11 machine, with the last nightly build (0816).

I start up the IDE and have an open sketch. I go to the tab menue(...) and select the "New Tab" menu item and nothing happens the first time. No feedback, nothing. I then execute the command again and everything works fine.

Hello @KurtE - I am using Windows11, IDE 2.1.1 (stable build). I do not have an IDE >> TAB menu choice. For a new tab I use CTRL-SHIFT-N as well as the ellipsis (dots) and this is what I see...

[edit: my suggestion would be to see if it happens with the stable build]

2 Likes

Thanks, the (...) I was trying to quick dirty emulate the item you drew an arrow toward.

As I mentioned, it did nothing on the first time I did it, and then second time it give me the dialog you showed.

I have replicated it a few times. I am running the 2.1.2 nightly-20230816
I just restarted the IDE:


And nothing happened.

Do it a second time and it worked:

Another interesting thing:
If I first bring up the tab menu, dismiss it, and then bring it up again, it works. So not sure if it is a timing issue, or maybe a problem with the first invocation of that menu.

Thanks again

Appreciation for using the nightly build and reporting it :muscle: I'll take a look. There must be a regression in arduino/arduino-ide#1847 after arduino/arduino-ide#2144.

Please open a GitHub issue when you see such a regression. I monitor that channel more often. Thank you! Your previous input (on Nightly build 0705 wants to update to 2.1.1) was also super helpful.


Update:

Very close. IDE2 does not refresh menus as often as it used to, and it's a coincidence that the New Tab handler ID will be 0, which is falsy in JavaScript. See some additional findings here.


Update 2:

The fix is on the way: fix: falsy context menu `handlerId` by kittaakos · Pull Request #2183 · arduino/arduino-ide · GitHub. Thank you for reporting it :heart:

2 Likes

Thanks @kittaakos ,

Looks like the fix is in last nights build:20230823 and, it appears to work.

Kurt

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.