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.
[ BUILD # : 200808051401 ] [ JDK VERSION : 1.6.0_04 ] Even though I have a Scala project opened and Go to type show Scala types (such as RichInt), I simply can't open them from the window.
Some of the Types or functions, such as RichInt, RichChar, RichLong, RichByte .. etc, they are defined in Scala's runtime, there is none source file for them,
Well, that is not the case. RichInt, for instance, is there. And I have a Scala platform configured, pointing to the source file zip. Since opening a Java class from the JDK works in the same scenario, it should work for Scala as well.
misterm, Could you tell me the file name of the source file that contains the source code of RichInt? Thanks
Sure. In my installation, it is: scala/runtime/RichInt.scala in C:\java\scala-2.7.1.final\src\scala-library-src.jar
Thanks, misterm. I tested following code: import scala.runtime._ object Main { def main(args: Array[String]) = { val ri = new RichInt(1) } Then I CTRL+Click on "RichInt", and it brought me to the source file of RichInt.scala successfully. But Types that are in "import" statements can be "Go-to-declaration" enabled.
Go-to-declaration for Types in "import" statements is not supported yet, but it may be supported when Scala 2.7.2 released.
Not sure we are talking about the same thing. I've filed this bug against Go to type, not Go to declaration. I see no reason why Go to type should be broken.
oops, I misunderstood the issue. Go-to-type is not supported yet.