Single-line comment broken in plugin
Migrated from http://lampsvn.epfl.ch/trac/scala/ticket/115
Reporter maier
Editor (and sometimes whole workbench) messes up when playing with the double slash in:
Reporter maier
Editor (and sometimes whole workbench) messes up when playing with the double slash in:
package test
object Comment {
//def f = 0
}
Sometimes it appears right after typing the slashes, sometimes after deleting one. The error log spawns lots of errors, e.g.:java.lang.Error
at lampion.core.Nodes$class.assert(Nodes.scala:19)
at scala.tools.eclipse.Driver$Project.assert(Driver.scala:10)
at lampion.core.Positions$FileImpl$PositionBank$cursor$.seek(Positions.scala:177)
at lampion.core.Positions$FileImpl$PositionBank$class.lampion$core$Positions$FileImpl$PositionBank$$destroy(Positions.scala:37)
at lampion.core.Positions$FileImpl$PositionBank$PositionImpl$class.destroy(Positions.scala:235)
at lampion.compiler.NewMatchers$FileImpl$openMatches$Position.destroy(NewMatchers.scala:437)
at lampion.compiler.NewMatchers$FileImpl$$anonfun$8.apply(NewMatchers.scala:211)
at lampion.compiler.NewMatchers$FileImpl$$anonfun$8.apply(NewMatchers.scala:211)
at scala.List.foreach(List.scala:730)
at lampion.compiler.NewMatchers$FileImpl$class.repair0(NewMatchers.scala:211)
at lampion.compiler.NewMatchers$FileImpl$class.repair(NewMatchers.scala:15)
at scala.tools.eclipse.Driver$Project$File.scala$tools$editor$Tokenizers$FileImpl$$super$repair(Driver.scala:13)
at scala.tools.editor.Tokenizers$FileImpl$class.repair(Tokenizers.scala:27)
at scala.tools.eclipse.Driver$Project$File.repair(Driver.scala:13)
at lampion.eclipse.Editor$documentListener$.documentChanged(Editor.scala:160)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:700)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:673)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:658)
at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:723)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1081)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1091)
at org.eclipse.jface.text.projection.ProjectionTextStore.replace(ProjectionTextStore.java:111)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1074)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1091)
at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:618)
at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5757)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6500)
at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2111)
at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5645)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5033)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5054)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4800)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:663)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2533)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:679)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5593)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1487)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2969)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
java.lang.IllegalStateException
at org.eclipse.jface.text.projection.ProjectionTextStore.internalError(ProjectionTextStore.java:85)
at org.eclipse.jface.text.projection.ProjectionTextStore.get(ProjectionTextStore.java:152)
at org.eclipse.jface.text.AbstractDocument.get(AbstractDocument.java:966)
at org.eclipse.jface.text.DefaultDocumentAdapter.doGetLine(DefaultDocumentAdapter.java:150)
at org.eclipse.jface.text.DefaultDocumentAdapter.getLine(DefaultDocumentAdapter.java:173)
at org.eclipse.swt.custom.StyledTextRenderer.drawLine(StyledTextRenderer.java:355)
at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java:5194)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4805)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.java:2475)
at org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite.java:647)
at org.eclipse.swt.widgets.Canvas.gtk_expose_event(Canvas.java:133)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1482)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5593)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
at org.eclipse.swt.internal.gtk.OS._gdk_window_process_all_updates(Native Method)
at org.eclipse.swt.internal.gtk.OS.gdk_window_process_all_updates(OS.java:3550)
at org.eclipse.swt.widgets.Display.update(Display.java:3928)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.pde.internal.runtime.logview.EventDetailsDialog.open(EventDetailsDialog.java:184)
at org.eclipse.pde.internal.runtime.logview.EventDetailsDialogAction.run(EventDetailsDialogAction.java:91)
at org.eclipse.pde.internal.runtime.logview.LogView$12.doubleClick(LogView.java:394)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:799)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:797)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1384)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1173)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:237)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:295)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Leave a comment
on 2007-09-20 08:24 *
By tracImporter
Trac author: mcdirmid
Ya, single line comments are a pain to get right. I'll look at them more closely.
Ya, single line comments are a pain to get right. I'll look at them more closely.
Trac author: mcdirmid
Will be fixed in 2.6.1.B3
Will be fixed in 2.6.1.B3
on 2008-04-08 15:50 *
By tracImporter
Closed As: fixed