Bug 3846 - scala.tools.nsc.MissingRequirementError: object scala not found.
scala.tools.nsc.MissingRequirementError: object scala not found.
Status: NEW
Product: nbscala
Classification: Unclassified
Component: source
1
PC Linux
: P5 blocker
: ---
Assigned To: Sven Reimers
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-21 06:56 UTC by jst
Modified: 2012-07-21 20:23 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jst 2012-05-21 06:56:45 UTC
I can't use the Scala support in NetBeans at all. Whenever I open .scala file (after creating empty scala application or anything else), I guess following error:

SEVERE [org.openide.util.Exceptions]
scala.tools.nsc.MissingRequirementError: object scala not found.
scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:653)
scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:603)
scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145)
scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146)
scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176)
scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:811)
scala.tools.nsc.Global$Run.<init>(Global.scala:694)
scala.tools.nsc.interactive.Global$TyperRun.<init>(Global.scala:925)
scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:951)
scala.tools.nsc.interactive.Global.<init>(Global.scala:166)
org.netbeans.modules.scala.core.interactive.Global.<init>(Global.scala:13)
org.netbeans.modules.scala.core.ScalaGlobal.<init>(ScalaGlobal.scala:88)
org.netbeans.modules.scala.core.ScalaGlobal$.getGlobal(ScalaGlobal.scala:628)
org.netbeans.modules.scala.core.ScalaParserResult.<init>(ScalaParserResult.scala:61)
org.netbeans.modules.scala.core.ScalaParserResult$.apply(ScalaParserResult.scala:186)
org.netbeans.modules.scala.core.ScalaParser.parse(ScalaParser.scala:99)
org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:595org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:213)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:717)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:679)

The editor than turns into "notepad" without any help what so ever. For a Scala newbie like me, it is then impossible to use the support at all.
Comment 1 jst 2012-05-21 06:58:03 UTC
Here are additional messages related to Scala that I can find in the log:

INFO [org.netbeans.modules.scala.core.ScalaParser]: Ready to parse Main.scala
INFO [org.netbeans.modules.scala.core.ScalaGlobal$]: scala.home: null
INFO [org.netbeans.modules.scala.core.ScalaGlobal$]: Project's bootclasspath: /usr/lib/jvm/java-6-openjdk-i386/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/rt.jar:/usr/lib/jv
m/java-6-openjdk-i386/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/rhino.jar
:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/sunjce_provider.jar:
/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/pulse-java.jar:/usr/lib/jvm/java-
6-openjdk-i386/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/jce.jar:/usr/lib
/jvm/java-6-openjdk-i386/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-6-openjdk-i
386/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/
ext/sunpkcs11.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/pulse-java.jar
INFO [org.netbeans.modules.scala.core.ScalaGlobal$]: Project's classpath: 
INFO [org.netbeans.modules.scala.core.ScalaGlobal$]: Bundled plugin jars dir is: /home/jarda/bin/netbeans/nbscala/modules/ext/org.scala-lang.plugins
INFO [org.netbeans.modules.scala.core.ScalaGlobal$]: Project's source paths set for global: List(/home/jarda/NetBeansProjects/ScalaApplication1/src)
INFO [org.netbeans.modules.scala.core.ScalaGlobal$]: Project's output paths set for global: /home/jarda/NetBeansProjects/ScalaApplication1/build/classes
INFO [org.netbeans.modules.scala.core.ScalaGlobal$]: Project's srcCp: [/home/jarda/NetBeansProjects/ScalaApplication1/src]
Comment 2 netmackan 2012-07-21 20:23:32 UTC
I have no experience with this but, just one thought: Have you specified the SCALA_HOME environment variable? The "scala.home: null" in output looks like it is missing.

BR,
Markus