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.

Bug 143124 - [65cat] No Scala class source file can be opened using Go to Type
Summary: [65cat] No Scala class source file can be opened using Go to Type
Status: STARTED
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: _ dcaoyuan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 04:32 UTC by misterm
Modified: 2008-08-15 16:06 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2008-08-07 04:32:21 UTC
[ 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.
Comment 1 _ dcaoyuan 2008-08-11 09:33:11 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,
Comment 2 misterm 2008-08-11 15:48:20 UTC
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.
Comment 3 _ dcaoyuan 2008-08-15 06:26:15 UTC
misterm,

Could you tell me the file name of the source file that contains the source code of RichInt?

Thanks
Comment 4 misterm 2008-08-15 15:47:10 UTC
Sure. In my installation, it is:

scala/runtime/RichInt.scala in C:\java\scala-2.7.1.final\src\scala-library-src.jar
Comment 5 _ dcaoyuan 2008-08-15 15:59:49 UTC
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.
Comment 6 _ dcaoyuan 2008-08-15 16:01:46 UTC
Go-to-declaration for Types in "import" statements is not supported yet, but it may be supported when Scala 2.7.2 released. 
Comment 7 misterm 2008-08-15 16:03:01 UTC
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.
Comment 8 _ dcaoyuan 2008-08-15 16:06:04 UTC
oops, I misunderstood the issue. 

Go-to-type is not supported yet.