Spoofax: org.metaborg.spoofax.eclipse
System: Linux amd64 3.16.0-34-generic

If I have a valid program (not an empty text file) and I try to insert a character at the beginning of the file, then most of the times it throws the following exception and the editor will hang:

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
        at org.eclipse.swt.SWT.error(
        at org.eclipse.swt.SWT.error(
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
        at org.eclipse.swt.widgets.Display.runAsyncMessages(
        at org.eclipse.swt.widgets.Display.readAndDispatch(
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
        at org.eclipse.ui.internal.Workbench$
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.eclipse.equinox.launcher.Main.invokeFramework(
        at org.eclipse.equinox.launcher.Main.basicRun(
        at org.eclipse.equinox.launcher.Main.main(
    Caused by: java.lang.IllegalArgumentException: Argument not valid
        at org.eclipse.swt.SWT.error(
        at org.eclipse.swt.SWT.error(
        at org.eclipse.swt.SWT.error(
        at org.eclipse.swt.custom.StyledText.setStyleRanges(
        at org.eclipse.swt.custom.StyledText.setStyleRange(
        at org.eclipse.jface.text.TextViewer.addPresentation(
        at org.eclipse.jface.text.TextViewer.changeTextPresentation(
        at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob$
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
        ... 24 more
Submitted by Oskar van Rest on 23 April 2015 at 16:58

On 23 April 2015 at 17:04 Oskar van Rest commented:

This happens when inserting, for example, a new line or a space (i.e. the resulting program is still valid) or when inserting a random symbol (i.e. the resulting program is invalid).

On 23 April 2015 at 17:44 Gabriël Konat tagged major

On 23 April 2015 at 17:44 Gabriël Konat tagged style

On 23 April 2015 at 17:44 Gabriël Konat tagged alpha2

On 13 August 2015 at 22:32 Gabriël Konat removed tag alpha2

On 29 October 2015 at 11:09 Gabriël Konat commented:


On 29 October 2015 at 11:09 Gabriël Konat closed this issue.

Log in to post comments