Exceptions when opening linked resource [message #758552] |
Wed, 23 November 2011 16:13 |
John J. Camilleri Messages: 33 Registered: November 2011 Location: Göteborg |
Member |
|
|
My DSL extension is .gf
I want to open a .gf file which is external to the workspace in my plugin. When I try this naively via the File -> Open menu I get the following:
!ENTRY org.apache.log4j 4 0 2011-11-23 09:52:18.914
!MESSAGE org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback - Was configured with another client or not configured at all.
!STACK 0
java.lang.IllegalStateException: Was configured with another client or not configured at all.
at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport.removeDirtyStateSupport(DirtyStateEditorSupport.java:318)
...(trimmed)...
I managed to partially get around the problem by creating resource links within my project to these external resources, as explained here in the Eclipse documentation.
This works pretty well, the external files are opened, syntax highlighting works and the LanguageSpecificURIEditorOpener.selectAndReveal() method even correctly highlights the referenced identifier.
However I keep getting the following exception which annoying pops up in the client application each time one of these linked files is opened:
!ENTRY org.eclipse.core.jobs 4 2 2011-11-23 16:50:39.343
!MESSAGE An internal error occurred during: "Xtext validation".
!STACK 0
java.lang.NullPointerException
at org.eclipse.xtext.ui.editor.validation.AddMarkersOperation.execute(AddMarkersOperation.java:84)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.xtext.ui.editor.validation.MarkerIssueProcessor.processIssues(MarkerIssueProcessor.java:43)
at org.eclipse.xtext.ui.editor.validation.ValidationJob.run(ValidationJob.java:67)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
From my understanding this case is simply not handled. All I really want to do is suppress the exception but I'm not ever sure where I would be able to do this.
Any ideas how I could overcome this?
[Updated on: Thu, 24 November 2011 10:59] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02959 seconds