- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: Eclipse plugin: NoSuchMethodError: scala.tools.nsc.ast.parser.MarkupParsers$class.$init$(Lscala/tools/nsc/ast/parser/MarkupParsers;)V
Sat, 2009-05-16, 12:21
Stefan Zeiger wrote:
> get the same errors. Does anyone have an idea what might be wrong before
> I try to reinstall Eclipse from scratch?
I reinstalled Eclipse and used the oldest nightly build from the archive
page (2009-05-05) and now it's working again. Strange though that
installing a newer version broke the Eclipse installation entirely so
that even reverting to an earlier configuration did not work.
Mon, 2009-05-18, 10:37
#2
Eclipse plugin: NoSuchMethodError: scala.tools.nsc.ast.parser.Ma
Hi,
I just updated the Eclipse installation on my netbook, including the
Scala plugin from about 2 weeks ago to the latest nightly build, and now
I'm getting a NoSuchMethodError (as shown below) when I try to open a
Scala file.
I tried reverting to the previous Eclipse configuration, uninstalling
and reinstalling the Scala plugin and using a new workspace but I still
get the same errors. Does anyone have an idea what might be wrong before
I try to reinstall Eclipse from scratch?
java.lang.NoSuchMethodError:
scala.tools.nsc.ast.parser.MarkupParsers$class.$init$(Lscala/tools/nsc/ast/parser/MarkupParsers;)V
at
scala.tools.eclipse.ScalaPlugin$Project$compiler0$.(ScalaPlugin.scala:529)
at scala.tools.eclipse.ScalaPlugin$Project.compiler0(ScalaPlugin.scala:529)
at scala.tools.eclipse.ScalaPlugin$Project.compiler(ScalaPlugin.scala:551)
at scala.tools.eclipse.ScalaPlugin$Project.compiler(ScalaPlugin.scala:262)
at
scala.tools.editor.TypersPresentations$ProjectImpl$$anonfun$scala$tools$editor$TypersPresentations$ProjectImpl$$loadSource$1.apply(TypersPresentations.scala:143)
at
scala.tools.editor.TypersPresentations$ProjectImpl$$anonfun$scala$tools$editor$TypersPresentations$ProjectImpl$$loadSource$1.apply(TypersPresentations.scala:142)
at
lampion.presentation.Presentations$ProjectImpl$class.tryLockTyper(Presentations.scala:218)
at
scala.tools.eclipse.ScalaPlugin$Project.tryLockTyper(ScalaPlugin.scala:262)
at
scala.tools.editor.TypersPresentations$ProjectImpl$class.scala$tools$editor$TypersPresentations$ProjectImpl$$loadSource(TypersPresentations.scala:142)
at
scala.tools.editor.TypersPresentations$ProjectImpl$FileImpl$class.unloadedBody(TypersPresentations.scala:247)
at
scala.tools.eclipse.ScalaPlugin$Project$File.unloadedBody(ScalaPlugin.scala:688)
at
scala.tools.eclipse.ScalaPlugin$Project$File.outlineTrees(ScalaPlugin.scala:1032)
at
scala.tools.eclipse.javaelements.ScalaCompilationUnit$$anonfun$1.apply(ScalaCompilationUnit.scala:45)
at
scala.tools.eclipse.javaelements.ScalaCompilationUnit$$anonfun$1.apply(ScalaCompilationUnit.scala:45)
at scala.Option.map(Option.scala:70)
at
scala.tools.eclipse.javaelements.ScalaCompilationUnit.buildStructure(ScalaCompilationUnit.scala:45)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:257)
at
scala.tools.eclipse.javaelements.ScalaCompilationUnit.generateInfos(ScalaCompilationUnit.scala:37)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:514)
at
org.eclipse.jdt.internal.core.BecomeWorkingCopyOperation.executeOperation(BecomeWorkingCopyOperation.java:38)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:777)
at
org.eclipse.jdt.internal.core.CompilationUnit.becomeWorkingCopy(CompilationUnit.java:100)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.createFileInfo(CompilationUnitDocumentProvider.java:982)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:476)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.connect(CompilationUnitDocumentProvider.java:1197)
at
org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:3991)
at
org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:190)
at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1325)
at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.internalDoSetInput(JavaEditor.java:2512)
at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.doSetInput(JavaEditor.java:2485)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSetInput(CompilationUnitEditor.java:1359)
at scala.tools.eclipse.Editor.doSetInput(Editor.scala:396)
at
org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3026)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at
org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2487)
at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3044)
at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3071)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:263)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1410)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:944)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at
org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1363)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2295)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Cheers,
Stefan
I was able to get an older version (5/13/2009) to work without a
reinstall using the following steps:
1. download
http://www.scala-lang.org/archives/downloads/distrib/files/nightly/ch.ep...
2. if running, close eclipse
3. delete all Scala plugin files
4. run eclipse with the -clean command line option using a new (empty)
workspace
5. close and run eclipse again without -clean on the new workspace
6. install plugin from step 1. (I use 'Classic Update', but don't know
if it makes a difference)
7. restart eclipse and enable JDT weaving (do not let eclipse restart
automatically)
8. close and run eclipse with the -clean option on your existing Scala
workspace
This may be overkill, but simply running with the -clean option did not
work. Also, depending on your setup of eclipse, the number of other
plugins, and where you keep them, it may be simpler to do a fresh install.
Stefan Zeiger wrote:
> Stefan Zeiger wrote:
>
>> get the same errors. Does anyone have an idea what might be wrong before
>> I try to reinstall Eclipse from scratch?
>>
>
> I reinstalled Eclipse and used the oldest nightly build from the archive
> page (2009-05-05) and now it's working again. Strange though that
> installing a newer version broke the Eclipse installation entirely so
> that even reverting to an earlier configuration did not work.
>
>