Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin breaks watches in Eclipse 3.4 #1234

Closed
scabug opened this issue Aug 17, 2008 · 3 comments
Closed

Plugin breaks watches in Eclipse 3.4 #1234

scabug opened this issue Aug 17, 2008 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Aug 17, 2008

Carsten Saager sent the following message to the mailing list and Sean asked him to file a bug. He was unable to do so due to trac problems. I have also seen the same problem so I am filing it for him.

Hi,

with the plugin installed the drag&drop of expressions to the watches doesn't work anymore, more severe: When adding with the context menu an error "'install watch expression model proxy' has encountered a problem" appears, in the log:
scala.tools.eclipse.debug.WatchExpressionDelegate cannot be cast to org.eclipse.debug.core.model.IWatchExpressionDelegate

Full stacktrace:

!ENTRY org.eclipse.debug.ui 4 2 2008-08-17 19:12:02.963
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.ui".
!STACK 0
java.lang.ClassCastException: scala.tools.eclipse.debug.WatchExpressionDelegate cannot be cast to org.eclipse.debug.core.model.IWatchExpressionDelegate
    at org.eclipse.debug.internal.core.ExpressionManager.newWatchExpressionDelegate(ExpressionManager.java:129)
    at org.eclipse.debug.internal.core.WatchExpression.evaluate(WatchExpression.java:80)
    at org.eclipse.debug.internal.core.WatchExpression.setExpressionContext(WatchExpression.java:118)
    at org.eclipse.debug.internal.ui.viewers.update.DefaultWatchExpressionModelProxy.contextActivated(DefaultWatchExpressionModelProxy.java:120)
    at org.eclipse.debug.internal.ui.viewers.update.DefaultWatchExpressionModelProxy.debugContextChanged(DefaultWatchExpressionModelProxy.java:131)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService$$1.run(DebugWindowContextService.java:169)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService.notify(DebugWindowContextService.java:167)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService.notify(DebugWindowContextService.java:151)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService.debugContextChanged(DebugWindowContextService.java:316)
    at org.eclipse.debug.ui.contexts.AbstractDebugContextProvider$$1.run(AbstractDebugContextProvider.java:79)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.debug.ui.contexts.AbstractDebugContextProvider.fire(AbstractDebugContextProvider.java:77)
    at org.eclipse.debug.internal.ui.views.launch.LaunchView$$ContextProvider.activate(LaunchView.java:218)
    at org.eclipse.debug.internal.ui.views.launch.LaunchView.selectionChanged(LaunchView.java:535)
    at org.eclipse.jface.viewers.Viewer$$2.run(Viewer.java:162)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    at org.eclipse.ui.internal.JFaceUtil$$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2062)
    at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1638)
    at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1104)
    at org.eclipse.debug.internal.ui.viewers.model.InternalTreeModelViewer.setSelection(InternalTreeModelViewer.java:1638)
    at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:392)
    at org.eclipse.debug.internal.ui.viewers.model.TreeModelContentProvider.handleSelect(TreeModelContentProvider.java:302)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:864)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider$$9.runInUIThread(ModelContentProvider.java:833)
    at org.eclipse.ui.progress.UIJob$$1.run(UIJob.java:94)
    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.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    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:382)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

!ENTRY org.eclipse.debug.ui 4 120 2008-08-17 19:12:03.025
!MESSAGE Error logged from Debug UI:
!STACK 0
java.lang.ClassCastException: scala.tools.eclipse.debug.WatchExpressionDelegate cannot be cast to org.eclipse.debug.core.model.IWatchExpressionDelegate
    at org.eclipse.debug.internal.core.ExpressionManager.newWatchExpressionDelegate(ExpressionManager.java:129)
    at org.eclipse.debug.internal.core.WatchExpression.evaluate(WatchExpression.java:80)
    at org.eclipse.debug.internal.core.WatchExpression.setExpressionContext(WatchExpression.java:118)
    at org.eclipse.debug.internal.ui.viewers.update.DefaultWatchExpressionModelProxy.contextActivated(DefaultWatchExpressionModelProxy.java:120)
    at org.eclipse.debug.internal.ui.viewers.update.DefaultWatchExpressionModelProxy.debugContextChanged(DefaultWatchExpressionModelProxy.java:131)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService$$1.run(DebugWindowContextService.java:169)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService.notify(DebugWindowContextService.java:167)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService.notify(DebugWindowContextService.java:151)
    at org.eclipse.debug.internal.ui.contexts.DebugWindowContextService.debugContextChanged(DebugWindowContextService.java:316)
    at org.eclipse.debug.ui.contexts.AbstractDebugContextProvider$$1.run(AbstractDebugContextProvider.java:79)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.debug.ui.contexts.AbstractDebugContextProvider.fire(AbstractDebugContextProvider.java:77)
    at org.eclipse.debug.internal.ui.views.launch.LaunchView$$ContextProvider.activate(LaunchView.java:218)
    at org.eclipse.debug.internal.ui.views.launch.LaunchView.selectionChanged(LaunchView.java:535)
    at org.eclipse.jface.viewers.Viewer$$2.run(Viewer.java:162)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    at org.eclipse.ui.internal.JFaceUtil$$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2062)
    at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1638)
    at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1104)
    at org.eclipse.debug.internal.ui.viewers.model.InternalTreeModelViewer.setSelection(InternalTreeModelViewer.java:1638)
    at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:392)
    at org.eclipse.debug.internal.ui.viewers.model.TreeModelContentProvider.handleSelect(TreeModelContentProvider.java:302)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:864)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.updateNodes(ModelContentProvider.java:884)
    at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider$$9.runInUIThread(ModelContentProvider.java:833)
    at org.eclipse.ui.progress.UIJob$$1.run(UIJob.java:94)
    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.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    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:382)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

!ENTRY org.eclipse.ui 4 0 2008-08-17 19:12:37.900
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException: scala.tools.eclipse.debug.WatchExpressionDelegate cannot be cast to org.eclipse.debug.core.model.IWatchExpressionDelegate
    at org.eclipse.debug.internal.core.ExpressionManager.newWatchExpressionDelegate(ExpressionManager.java:129)
    at org.eclipse.debug.internal.core.WatchExpression.evaluate(WatchExpression.java:80)
    at org.eclipse.debug.internal.core.WatchExpression.setExpressionContext(WatchExpression.java:118)
    at org.eclipse.jdt.internal.debug.ui.actions.WatchAction.createWatchExpression(WatchAction.java:62)
    at org.eclipse.jdt.internal.debug.ui.actions.WatchAction.run(WatchAction.java:47)
    at org.eclipse.jdt.internal.debug.ui.actions.EvaluateAction.run(EvaluateAction.java:593)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$$2(ActionContributionItem.java:500)
    at org.eclipse.jface.action.ActionContributionItem$$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    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:382)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

!ENTRY org.eclipse.ui 4 0 2008-08-17 19:12:37.978
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: scala.tools.eclipse.debug.WatchExpressionDelegate cannot be cast to org.eclipse.debug.core.model.IWatchExpressionDelegate)
    at org.eclipse.swt.SWT.error(SWT.java:3777)
    at org.eclipse.swt.SWT.error(SWT.java:3695)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
    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.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    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:382)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.ClassCastException: scala.tools.eclipse.debug.WatchExpressionDelegate cannot be cast to org.eclipse.debug.core.model.IWatchExpressionDelegate
    at org.eclipse.debug.internal.core.ExpressionManager.newWatchExpressionDelegate(ExpressionManager.java:129)
    at org.eclipse.debug.internal.core.WatchExpression.evaluate(WatchExpression.java:80)
    at org.eclipse.debug.internal.core.WatchExpression.setExpressionContext(WatchExpression.java:118)
    at org.eclipse.debug.internal.ui.viewers.update.DefaultWatchExpressionModelProxy.contextActivated(DefaultWatchExpressionModelProxy.java:120)
    at org.eclipse.debug.internal.ui.viewers.update.DefaultWatchExpressionModelProxy$$1.runInUIThread(DefaultWatchExpressionModelProxy.java:72)
    at org.eclipse.ui.progress.UIJob$$1.run(UIJob.java:94)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
    ... 22 more
@scabug
Copy link
Author

scabug commented Aug 17, 2008

Imported From: https://issues.scala-lang.org/browse/SI-1234?orig=1
Reporter: @ijuma

@scabug
Copy link
Author

scabug commented Aug 26, 2008

@milessabin said:
Fixed in r15932.

@scabug
Copy link
Author

scabug commented Aug 28, 2008

@ijuma said:
Miles forgot to actually close the bug, so doing it for him. :)

@scabug scabug closed this as completed May 18, 2011
@scabug scabug added this to the 2.7.2 milestone Apr 6, 2017
hrhino added a commit to hrhino/scala that referenced this issue Dec 31, 2017
- Cmd-click (Ctrl-click) on scala/bug#1234 goes to that issue page on GitHub.
- SD-1234 ticket references changed to scala/scala-dev#1234.
          9acab45 normalized all bug references to this form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants