can't open any Scala editor

59 views
Skip to first unread message

Ichthyostega..

unread,
Jan 11, 2011, 10:48:08 AM1/11/11
to scala-i...@googlegroups.com
 

Hello all,

wanted to try out the version from wip_exp_backport again.
But it seems I'm unable to create any Scala editor.

I'm using Helios with the current stable AJDT.
I've tried to uninstall the Scala plugin and re-install it.
 
Anyone seen a similar problem?

Thanks
Hermann Vosseler

java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast
to scala.tools.eclipse.javaelements.ScalaCompilationUnit
    at
scala.tools.eclipse.ScalaSourceFileEditor.createPartControl(ScalaSourceFileEditor.scala:182)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
    at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
    at
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
    at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
    at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
    at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
    at
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2860)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
    at
org.eclipse.jdt.internal.ui.wizards.NewElementWizard$1.run(NewElementWizard.java:69)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    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:369)
    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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

David Bernard

unread,
Jan 11, 2011, 11:26:08 AM1/11/11
to scala-i...@googlegroups.com
I'd got this issue when JDT weaving isn't enabled : "J" on the icon of scala files.

Ichthyostega..

unread,
Jan 11, 2011, 1:24:55 PM1/11/11
to scala-i...@googlegroups.com


>
> On Tue, Jan 11, 2011 at 16:48, Ichthyostega.. <p...@ichthyostega.de

> [mailto:p...@ichthyostega.de] >wrote:


>
> > But it seems I'm unable to create any Scala editor.
> >

> > java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be
> > cast
> > to scala.tools.eclipse.javaelements.ScalaCompilationUnit

>

 
David Bernard <david.be...@gmail.com> hat am 11. Januar 2011 um 17:26 geschrieben:


> I'd got this issue when JDT weaving isn't enabled : "J" on the icon of scala files.
 

Oh thanks -- indeed that was the problem.
 
An update of the AJDT seems to have broken something with the toggle; JDT weaving was
always off.
After de-installing and cleanly reinstalling AJDT and then the Scala plugin, everything is
fine now!
 
Thanks for the tip!
 
Hermann
 

Ichthyostega..

unread,
Jan 11, 2011, 1:34:42 PM1/11/11
to scala-i...@googlegroups.com
Hi... me again :)

Only a minor problem: with the current wip_exp_backport, the help/about dialog won't be
displayed
anymore. (It worked before, as I had the stable branch installed)
This might be problematic, is you want to de-install some feature; anyway, you can reach
the dialog with the installed features also via help/install new software > "what is
already installed?"

Aside from that, things seem to work just fine -- I love to have the highlighting of the
implicits
back again! thanks for all your efforts.

Hermann V.


=====
PS: The corresponding stacktrace from the errorlog:

java.lang.NullPointerException
at java.io.FilterInputStream.close(FilterInputStream.java:155)
at
org.eclipse.ui.internal.about.AboutBundleGroupData.getFeatureImageCrc(AboutBundleGroupData.java:104)
at
org.eclipse.ui.internal.about.AboutFeaturesButtonManager.add(AboutFeaturesButtonManager.java:61)
at org.eclipse.ui.internal.dialogs.AboutDialog.createFeatureButton(AboutDialog.java:436)
at
org.eclipse.ui.internal.dialogs.AboutDialog.createFeatureImageButtonRow(AboutDialog.java:430)
at org.eclipse.ui.internal.dialogs.AboutDialog.createDialogArea(AboutDialog.java:384)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at org.eclipse.ui.internal.about.AboutHandler.execute(AboutHandler.java:32)  

David Bernard

unread,
Jan 11, 2011, 1:39:07 PM1/11/11
to scala-i...@googlegroups.com
I notice the issue this afternoon, but after a local rebuild (for an anrelated issue). I'd got About working again.
I suppose the issue is due to a change I push yesterday to include info about the last commit in the about.ini (only on wip_exp_backport)
I'll check tomorrow if the issue persist on the nightlybuild version.

Thanks for reportings.
Reply all
Reply to author
Forward
0 new messages