This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: - Create JavaFX Script file: -------------------------------------- import java.lang.System; System.out.println(""); -------------------------------------- - Hold <Ctrl> ( Command on Mac) and click on 'println' method Nothing happens. ---------- message. log ------------------- Error at [1:1]/0 - Sorry, I was trying to understand an import declaration but I got confused when I saw '<EOF>'. Perhaps you are missing a '*'.Error at [1:1]/0 - Sorry, I was trying to understand an import declaration but I got confused when I saw '<EOF>'. Perhaps you are missing a '*'.INFO [org.netbeans.api.javafx.source.CompilationInfoImpl]: Error at [15:18]/164 - package java.lang does not exist move semicolon: token: SEMI INFO [org.netbeans.modules.javafx.editor.format.JFXIndentTask]: Parser time: 3ms INFO [org.netbeans.modules.javafx.editor.format.JFXIndentTask]: The PARSED phase has been reached ... OK! --------------------------------------
Created attachment 63599 [details] IDE log file
Just a note. This works for me on Linux. But I cannot comment about Mac ... Petr has written the goto ...
Do you have the platform set up correctly for the project in which you test this?
Please check whether your platform definition contains src.zip in the sources tab. Recent build should automatically add it to the default (bundled) platform, but I'm not sure about it in case you added new platform manually.
I used the default JavaFX Script platform. But I tried the go to source feature for a Java project and it does not work to. It seems that go to source feature works with jdk 1.5 and does not work with jdk 1.6 for Java projects.
I have just tested it on Mac with few days old build and a new userdir, and it works for me. I have created new sample project -> Color, verified the platform contains reference to the JFX-sdk sourceball (it did, but haven't listed java's src.zip, so no go-to-java.lang.String for example, but that's a different issue) In my case, I had to change Frame references to SwingFrame (otherwise it was not compilable on my SDK) and then apple-click placed me directly into the SwingFrame.fx source file.
Reopening. This issue isn't about going to JavaFX sources, its about going to java sources.
Well, I have to close it as WONTFIX then. Or do you actually have JDK sources for your OS-X JDK? If you find them, add them to your platform definition and it will work. Does go-to-java.lang.String work for you in J2SE projects?
"If you find them, ..." Oh, I forgot to mention, reopen then and reassign to the javafx/platform module.
May want to release note this.
verified