Google Groups

probelms with Indigo


merlin-hst Aug 14, 2011 5:26 AM
Posted in group: Scala IDE User
Hello,

after upgrading to eclipse Indigo - every time I try to save or compile a scala file I get some errors:

Error in JDT Core during AST creation


An internal error occurred during: "Initializing classpath-based usage monitoring".
scala/tools/nsc/settings/MutableSettings$SettingValue


Errors occurred during the build.
Errors running builder 'Scala Builder' on project 'portal-lib-extended'.
scala/tools/nsc/settings/MutableSettings$SettingValue


Could not recompute occurrence annotations: configuration problem


In the error view there are some really long stacktraces (see below). Maybe it helos.

Lothar


java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to scala.tools.eclipse.javaelements.ScalaSourceFile
at scala.tools.eclipse.ScalaSourceFileEditor$$anonfun$scala$tools$eclipse$ScalaSourceFileEditor$$performOccurrencesUpdate$1.apply(ScalaSourceFileEditor.scala:130)
at scala.tools.eclipse.ScalaSourceFileEditor$$anonfun$scala$tools$eclipse$ScalaSourceFileEditor$$performOccurrencesUpdate$1.apply(ScalaSourceFileEditor.scala:130)
at scala.tools.eclipse.ScalaPlugin.checkOrElse(ScalaPlugin.scala:252)
at scala.tools.eclipse.ScalaSourceFileEditor.scala$tools$eclipse$ScalaSourceFileEditor$$performOccurrencesUpdate(ScalaSourceFileEditor.scala:130)
at scala.tools.eclipse.ScalaSourceFileEditor$$anon$2.run(ScalaSourceFileEditor.scala:156)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

java.lang.NoClassDefFoundError: scala/tools/nsc/settings/MutableSettings$SettingValue
at scala.tools.eclipse.ScalaPlugin.getScalaProject(ScalaPlugin.scala:131)
at scala.tools.eclipse.ScalaBuilder.build(ScalaBuilder.scala:38)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ClassNotFoundException: scala.tools.nsc.settings.MutableSettings$SettingValue
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 14 more
java.lang.NoClassDefFoundError: scala/tools/nsc/settings/MutableSettings$SettingValue
at scala.tools.eclipse.ScalaPlugin.getScalaProject(ScalaPlugin.scala:131)
at scala.tools.eclipse.javaelements.ScalaCompilationUnit$class.$init$(ScalaCompilationUnit.scala:37)
at scala.tools.eclipse.javaelements.ScalaClassFile.<init>(ScalaClassFile.scala:30)
at scala.tools.eclipse.javaelements.ScalaClassFileProvider.create(ScalaClassFileProvider.scala:20)
at scala.tools.eclipse.contribution.weaving.jdt.cfprovider.ClassFileProviderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_cfprovider_ClassFileProviderAspect$1$9776bbb8(ClassFileProviderAspect.aj:155)
at org.eclipse.jdt.internal.core.NameLookup.seekTypesInBinaryPackage(NameLookup.java:1010)
at org.eclipse.jdt.internal.core.NameLookup.seekTypes(NameLookup.java:986)
at org.eclipse.jdt.internal.core.NameLookup.findType(NameLookup.java:778)
at org.eclipse.jdt.internal.core.NameLookup.findType(NameLookup.java:662)
at org.eclipse.jdt.internal.core.NameLookup.findType(NameLookup.java:621)
at org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:103)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:294)
at org.eclipse.jdt.internal.core.CancelableNameEnvironment.findType(CancelableNameEnvironment.java:45)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:132)
at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:183)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findImport(CompilationUnitScope.java:487)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findSingleImport(CompilationUnitScope.java:541)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInImports(CompilationUnitScope.java:369)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:466)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:906)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:958)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody0(CompilationUnitProblemFinder.java:202)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody1$advice(CompilationUnitProblemFinder.java:244)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody2(CompilationUnitProblemFinder.java:1)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder$AjcClosure3.run(CompilationUnitProblemFinder.java:1)
at scala.tools.eclipse.contribution.weaving.jdt.core.CompilationUnitProblemFinderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_core_CompilationUnitProblemFinderAspect$1$3edd546aproceed(CompilationUnitProblemFinderAspect.aj:1)
at scala.tools.eclipse.contribution.weaving.jdt.core.CompilationUnitProblemFinderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_core_CompilationUnitProblemFinderAspect$1$3edd546a(CompilationUnitProblemFinderAspect.aj:49)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:169)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:268)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:89)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:788)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1244)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:126)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:151)
at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:104)
at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
Caused by: java.lang.ClassNotFoundException: scala.tools.nsc.settings.MutableSettings$SettingValue
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 44 more