apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.64k stars 846 forks source link

Go To Hierachy Addition not working in NB19 #6515

Open stroudcuster opened 1 year ago

stroudcuster commented 1 year ago

Apache NetBeans version

Apache NetBeans 19

What happened

I was working my way through the Java Visual Debugging tutorial, which uses the bundled Anagram Game project. After taking a GUI snapshot, right clicking a component in the snapshot or navigator panes shows the Go to Hierarchy Addition option, but selecting the option does not display any source. The Go to Declaration and Go To Source functions work correctly. hierarchy-addition-bug

How to reproduce

Using the Anagram Game project:

  1. Start Debug
  2. Take a GUI Snapshot.
  3. Select a GUI component from the snapshot pane or the navigator pane.
  4. Right click the selected component
  5. Select Go To Hierarchy Addition

Did this work correctly in an earlier version?

No / Don't know

Operating System

Kubuntu 22.04

JDK

IMPLEMENTOR="Oracle Corporation" JAVA_RUNTIME_VERSION="20.0.2+9-78" JAVA_VERSION="20.0.2" JAVA_VERSION_DATE="2023-07-18" LIBC="gnu" MODULES="java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.jvmstat jdk.attach jdk.charsets jdk.zipfs jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.incubator.concurrent jdk.incubator.vector jdk.internal.le jdk.internal.opt jdk.internal.vm.ci jdk.internal.vm.compiler jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jpackage jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.nio.mapmode jdk.random jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported jdk.unsupported.desktop jdk.xml.dom" OS_ARCH="x86_64" OS_NAME="Linux" SOURCE=".:git:9ced461a4d8c"

Apache NetBeans packaging

Apache NetBeans Snap Package

Anything else

I've run through this scenario several times, the issue occurs every time. I've got a good deal of Java experience, but I am not familiar with the Netbeans code base, so I am hesitant to submit a pull request.

Are you willing to submit a pull request?

No

mbien commented 1 year ago

I don't even have that option :) image

stroudcuster commented 1 year ago

This is something you have to enable in Tools/Options. There are instructions in the tutorial.

On Tue, Oct 3, 2023, 10:22 PM Michael Bien @.***> wrote:

I don't even have that option :) [image: image] https://user-images.githubusercontent.com/114367/272444134-e519106b-787f-4cfc-8419-3ecc26e1e06c.png

— Reply to this email directly, view it on GitHub https://github.com/apache/netbeans/issues/6515#issuecomment-1746028661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHNUODFNYLYNQACEIGOXADX5TB5JAVCNFSM6AAAAAA5P5TBJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWGAZDQNRWGE . You are receiving this because you authored the thread.Message ID: @.***>