netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Terminal window: "Set Title" sets title to wrong tab

Open jonathanpoulin9 opened this issue 2 years ago • 13 comments

Apache NetBeans version

Apache NetBeans 13

What happened

Setting the terminal title set the title of another tab instead of the selected one.

How to reproduce

  1. Create a first terminal tab
  2. Create a second terminal tab and set its title to something else
  3. Create a third terminal tab and set its title to something else

Result: The title of the second tab is changed instead of the selected one, the third.

Did this work correctly in an earlier version?

No

Operating System

Ubuntu 18.04.6 LTS

JDK

OpenJDK Runtime Environment (build 17.0.3+7-Ubuntu-0ubuntu0.18.04.1)

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

jonathanpoulin9 avatar Jun 05 '22 15:06 jonathanpoulin9

Just tested and can confirm. Checked the code, it seems some heuristics goes wrong when trying to detect the active terminal.

lkishalmi avatar Jun 07 '22 19:06 lkishalmi

Thanks for the confirmation @lkishalmi.

jonathanpoulin9 avatar Jun 07 '22 21:06 jonathanpoulin9

This is a bug that appeared in version 10 of NetBeans in the Pull Request #652. The bug is described here and here.

troizet avatar Nov 07 '22 05:11 troizet