netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Projects that use the same package and class names point to the wrong files in "link" operations

Open istinnstudio opened this issue 1 year ago • 1 comments

Apache NetBeans version

Apache NetBeans 21

What happened

Projects that use the same package and class names are being mixed in "go to" operations. Those operations for example is "select in projects" menu and any click in the output terminal that links a line in a class. The operations link to the wrong class, they link to the first available project found in project list and not to the current working one.

Language / Project Type / NetBeans Component

No response

How to reproduce

Add 2 projects that are identical copies (like a fork/branch), packages and classes will have the same name, the project name can differ. Edit or use the 2nd one. Links will be directed to the 1st instead of the current.

Did this work correctly in an earlier version?

No / Don't know

Operating System

windows 10 x64

JDK

21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

istinnstudio avatar Mar 30 '24 14:03 istinnstudio

The only workaround I can find is to use a 2nd instance of netbeans using --userdir for the forked project

istinnstudio avatar Apr 08 '24 19:04 istinnstudio