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 174462 - scala.tools.nsc.MissingRequirementError: class scala.Array not found.
Summary: scala.tools.nsc.MissingRequirementError: class scala.Array not found.
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ dcaoyuan
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 15:54 UTC by J Bachorik
Modified: 2009-12-24 07:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158637


Attachments
stacktrace (2.17 KB, text/plain)
2009-10-13 15:54 UTC, J Bachorik
Details
stacktrace (2.04 KB, text/plain)
2009-12-24 07:36 UTC, neilg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Bachorik 2009-10-13 15:54:34 UTC
Build: NetBeans IDE Dev (Build 200910061401)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.31-13-generic, amd64

User Comments:
GUEST: In a Scala method, I typed in "Cal" and presses Ctrl+Space, expecting a code completion for the Java Calendar class. Instead go the attached exception

yardus: package scalaapplication1

object Main {
  def Li<invoke code completion here>
  /**
   * @param args the command line arguments
   */
  def main(args: Array[String]) :Unit = {
    println("Hello, world!")
  }

}



Stacktrace: 
scala.tools.nsc.MissingRequirementError: class scala.Array not found.
        at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.java:456)
        at scala.tools.nsc.symtab.Definitions$definitions$.getClass(Definitions.java:414)
        at scala.tools.nsc.symtab.Definitions$definitions$.ArrayClass(Definitions.java:186)
        at scala.tools.nsc.backend.icode.TypeKinds$REFERENCE.<init>(TypeKinds.java:247)
        at scala.tools.nsc.backend.icode.GenICode$ICodePhase.<init>(GenICode.java:48)
        at scala.tools.nsc.backend.icode.GenICode.newPhase(GenICode.java:39)
Comment 1 J Bachorik 2009-10-13 15:54:40 UTC
Created attachment 89376 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-10-31 23:25:38 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=158637
Comment 3 _ dcaoyuan 2009-11-26 04:44:07 UTC
It's because of wrong Scala runtime version. Check $SCALA_HOME setting, Scala should be 2.8.x
Comment 4 neilg 2009-12-24 07:36:43 UTC
Created attachment 92906 [details]
stacktrace