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.
Summary: | [65cat] No Scala class source file can be opened using Go to Type | ||
---|---|---|---|
Product: | contrib | Reporter: | misterm <misterm> |
Component: | Scala | Assignee: | _ dcaoyuan <dcaoyuan> |
Status: | STARTED --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
misterm
2008-08-07 04:32:21 UTC
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. |