- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Exception in console - class scala.Array not found
Mon, 2009-11-23, 21:44
Hi,
Using fresh Eclipse - 3.5.1 with scala nightly
scala plugin - 2.8.0.r19784-b20091123033015
weaving service (enabled) - 1.6.4.20090313172428
Clean workspace with source of scala plugin and scala plugin aspects.
The problem is that syntax highlightning, outline and Hyperlinking is not working yelding the same error in the console.
I am not sure if this is problem of plugin or problem in my configuration. If you have some hints I will try it.
Thanks
I see following exception in the log:
Indexing document: /scala-plugin/src/scala/tools/eclipse/JVMUtils.scala
scala.tools.nsc.MissingRequirementError: class scala.Array not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:499)
at scala.tools.nsc.symtab.Definitions$definitions$.getClass(Definitions.scala:457)
at scala.tools.nsc.symtab.Definitions$definitions$.ArrayClass(Definitions.scala:212)
at scala.tools.nsc.backend.icode.TypeKinds$REFERENCE.<init>(TypeKinds.scala:258)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase.<init>(GenICode.scala:53)
at scala.tools.nsc.backend.icode.GenICode.newPhase(GenICode.scala:41)
at scala.tools.nsc.backend.icode.GenICode.newPhase(GenICode.scala:25)
at scala.tools.nsc.Global$Run$$anonfun$5.apply(Global.scala:657)
at scala.tools.nsc.Global$Run$$anonfun$5.apply(Global.scala:656)
at scala.collection.LinearSeqLike$class.foreach(LinearSeqLike.scala:85)
at scala.collection.immutable.List.foreach(List.scala:29)
at scala.tools.nsc.Global$Run.<init>(Global.scala:656)
at scala.tools.nsc.interactive.Global$TyperRun.<init>(Global.scala:447)
at scala.tools.nsc.interactive.Global.reloadSources(Global.scala:289)
at scala.tools.nsc.interactive.Global.typedTree(Global.scala:319)
at scala.tools.nsc.interactive.Global$$anonfun$getTypedTree$1.apply(Global.scala:331)
at scala.tools.nsc.interactive.Global$$anonfun$getTypedTree$1.apply(Global.scala:331)
at scala.tools.nsc.interactive.Global.respond(Global.scala:276)
at scala.tools.nsc.interactive.Global.getTypedTree(Global.scala:331)
at scala.tools.nsc.interactive.CompilerControl$$anon$3.apply(CompilerControl.scala:95)
at scala.tools.nsc.interactive.CompilerControl$$anon$3.apply(CompilerControl.scala:94)
at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:132)
at scala.tools.nsc.interactive.Global$$anon$2.run(Global.scala:192)
also there is another error:
org.eclipse.contribution.weaving.feature.group
scala.tools.nsc.MissingRequirementError: class scala.runtime.BooleanRef not found.
--
Peter Šiška
e-mail: siska.pe (at) gmail (dot) com
tel: +421 904 942 744
Using fresh Eclipse - 3.5.1 with scala nightly
scala plugin - 2.8.0.r19784-b20091123033015
weaving service (enabled) - 1.6.4.20090313172428
Clean workspace with source of scala plugin and scala plugin aspects.
The problem is that syntax highlightning, outline and Hyperlinking is not working yelding the same error in the console.
I am not sure if this is problem of plugin or problem in my configuration. If you have some hints I will try it.
Thanks
I see following exception in the log:
Indexing document: /scala-plugin/src/scala/tools/eclipse/JVMUtils.scala
scala.tools.nsc.MissingRequirementError: class scala.Array not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:499)
at scala.tools.nsc.symtab.Definitions$definitions$.getClass(Definitions.scala:457)
at scala.tools.nsc.symtab.Definitions$definitions$.ArrayClass(Definitions.scala:212)
at scala.tools.nsc.backend.icode.TypeKinds$REFERENCE.<init>(TypeKinds.scala:258)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase.<init>(GenICode.scala:53)
at scala.tools.nsc.backend.icode.GenICode.newPhase(GenICode.scala:41)
at scala.tools.nsc.backend.icode.GenICode.newPhase(GenICode.scala:25)
at scala.tools.nsc.Global$Run$$anonfun$5.apply(Global.scala:657)
at scala.tools.nsc.Global$Run$$anonfun$5.apply(Global.scala:656)
at scala.collection.LinearSeqLike$class.foreach(LinearSeqLike.scala:85)
at scala.collection.immutable.List.foreach(List.scala:29)
at scala.tools.nsc.Global$Run.<init>(Global.scala:656)
at scala.tools.nsc.interactive.Global$TyperRun.<init>(Global.scala:447)
at scala.tools.nsc.interactive.Global.reloadSources(Global.scala:289)
at scala.tools.nsc.interactive.Global.typedTree(Global.scala:319)
at scala.tools.nsc.interactive.Global$$anonfun$getTypedTree$1.apply(Global.scala:331)
at scala.tools.nsc.interactive.Global$$anonfun$getTypedTree$1.apply(Global.scala:331)
at scala.tools.nsc.interactive.Global.respond(Global.scala:276)
at scala.tools.nsc.interactive.Global.getTypedTree(Global.scala:331)
at scala.tools.nsc.interactive.CompilerControl$$anon$3.apply(CompilerControl.scala:95)
at scala.tools.nsc.interactive.CompilerControl$$anon$3.apply(CompilerControl.scala:94)
at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:132)
at scala.tools.nsc.interactive.Global$$anon$2.run(Global.scala:192)
also there is another error:
org.eclipse.contribution.weaving.feature.group
scala.tools.nsc.MissingRequirementError: class scala.runtime.BooleanRef not found.
--
Peter Šiška
e-mail: siska.pe (at) gmail (dot) com
tel: +421 904 942 744
Mon, 2009-11-30, 13:57
#2
Re: Re: Exception in console - class scala.Array not found
On Mon, Nov 30, 2009 at 12:24 PM, Peter Siska wrote:
> Also I have looked directly into the .classpath file in the svn and it is
> missing the scala_container entry in it.
>
> Can somebody explain this weird behavior?
You're trying to work on the IDE? Excellent! :-)
Your problem is that you don't have the scala and scala-library
projects also checked out in your workspace: you should follow the
instructions here,
http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePlugin
The absence of the SCALA_CONTAINER .classpath entry in these project
is intentional ... the IDE depends on the compiler and standard
library very directly and uses slightly different mechanisms from
ordinary Scala projects.
Cheers,
Miles
Tue, 2009-12-01, 19:17
#3
Re: Re: Exception in console - class scala.Array not found
On Mon, Nov 30, 2009 at 1:55 PM, Miles Sabin <miles@milessabin.com> wrote:
On Mon, Nov 30, 2009 at 12:24 PM, Peter Siska <siska.pe@gmail.com> wrote:I looks like that :) First I need to get familiar with the current work to see how the things are working. After that there are couple of things I would like to fix.
> Also I have looked directly into the .classpath file in the svn and it is
> missing the scala_container entry in it.
>
> Can somebody explain this weird behavior?
You're trying to work on the IDE? Excellent! :-)
Your problem is that you don't have the scala and scala-library
projects also checked out in your workspace: you should follow the
instructions here,
http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePlugin
The absence of the SCALA_CONTAINER .classpath entry in these project
is intentional ... the IDE depends on the compiler and standard
library very directly and uses slightly different mechanisms from
ordinary Scala projects.
Ok this helped. I was looking into wiki at sygneca.com.
Cheers,
Miles
--
Miles Sabin
tel: +44 (0)7813 944 528
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin
--
Peter Šiška
e-mail: siska.pe (at) gmail (dot) com
tel: +421 904 942 744
I have managed to resolve issue to some extent.
I looked into the .classpath file in the project and it was missing this line:
<classpathentry kind="con" path="ch.epfl.lamp.sdt.launching.SCALA_CONTAINER" />
After restart of Eclipse, I didn't observed the IDE complaining on missing scala.Array. And the SDT didn't show errors, hypertext links were working again, as well as the outline view. Only things which didn't work was syntax highlightning.
Actually I don't understand why SDT somehow depends if the project has correctly set the classpath. If it dependes (as it looks like it to me) than I am unable to have project in different version of scala as the version of the SDT. (correct me)
Also I have looked directly into the .classpath file in the svn and it is missing the scala_container entry in it.
Can somebody explain this weird behavior?
Thanks
On Mon, Nov 23, 2009 at 9:43 PM, Peter Šiška <siska.pe@gmail.com> wrote:
--
Peter Šiška
e-mail: siska.pe (at) gmail (dot) com
tel: +421 904 942 744