Re: IDE 3.0 - cannot open the editor

362 views
Skip to first unread message

Luc Bourlier

unread,
Mar 26, 2013, 12:00:25 PM3/26/13
to scala-i...@googlegroups.com
This is an oversight. We never intended for Scala IDE 3.0.x to be compatible with Eclipse Helios (3.6.x). The dependencies requirements should have been set correctly to block the installation.

The last release version of Scala IDE compatible with Helios is the 2.0.2 for Scala 2.9.

Luc

Le mardi 26 mars 2013 01:54:02 UTC+1, Chad Jaros a écrit :
I'm using Eclipse 3.6 and trying to upgrade to Scala-IDE 3.0. I had Scala-IDE 2.0 beta, and uninstalled that before installing 3.0. I'm getting the following error whenever I try to open the editor to view a scala file:

Could not open the editor: scala.tools.eclipse.ScalaPresentationReconciler cannot be cast to org.eclipse.jdt.internal.ui.text.JavaPresentationReconciler

java.lang.ClassCastException: scala.tools.eclipse.ScalaPresentationReconciler cannot be cast to org.eclipse.jdt.internal.ui.text.JavaPresentationReconciler
at org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightingManager.install(SemanticHighlightingManager.java:298)
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installSemanticHighlighting(JavaEditor.java:3555)
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3110)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1475)
at scala.tools.eclipse.ScalaSourceFileEditor.createPartControl(ScalaSourceFileEditor.scala:340)
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.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1429)
at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)
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:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)
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:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2548)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

iulian dragos

unread,
May 28, 2013, 4:45:10 AM5/28/13
to scala-i...@googlegroups.com



On Tue, May 28, 2013 at 6:17 AM, Malcolm Robbins <malcolm....@gmail.com> wrote:
I have also "accidently" upgraded onto a Helios environment and have the same problem. Does anyone know the cleanest way to roll-back to the version that works with Helios? (I am stuck on that version because I am also using Oracle OEPE for OSB development which is still based on Helios).

You need to uninstall all Scala IDE-related bundles, and then install a 2.0 version. In order to clean all the local bundles, you *might* need to run this (you can try first without running it):

eclipse -application org.eclipse.equinox.p2.garbagecollector.application -profile SDKProfile

2.0.2 should still work, you can install it from the "stable" update stream: http://download.scala-ide.org/sdk/e37/scala29/stable/site/. Make sure to uncheck the "Show only the latest versions of available software", like in the screenshot

iulian
 

regards

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Screen Shot 2013-05-28 at 10.40.13 AM.png

Simon Schäfer

unread,
May 28, 2013, 4:51:03 AM5/28/13
to scala-i...@googlegroups.com

On 05/28/2013 06:17 AM, Malcolm Robbins wrote:
I have also "accidently" upgraded onto a Helios environment and have the same problem. Does anyone know the cleanest way to roll-back to the version that works with Helios? (I am stuck on that version because I am also using Oracle OEPE for OSB development which is still based on Helios).
Eclipse keeps a history about installed plugins. It can be found in Help → About Eclipse → Installation Detail → Installation History.

An overview about existing builds can be found on http://download.scala-ide.org/ecosystem/builds.html but I don't know if it is comprehensive.
Reply all
Reply to author
Forward
0 new messages