Validation on a DSL file from outside the workspace [message #1220642] |
Thu, 12 December 2013 19:36 |
Erick Fonseca Messages: 68 Registered: December 2011 |
Member |
|
|
I noticed that when I open a DSL file from outside the workspace, or from a closed project, I get an Xtext validation error:
java.lang.NullPointerException
at org.eclipse.xtext.ui.editor.validation.AddMarkersOperation.execute(AddMarkersOperation.java:94)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.xtext.ui.editor.validation.MarkerIssueProcessor.processIssues(MarkerIssueProcessor.java:58)
at org.eclipse.xtext.ui.editor.validation.ValidationJob.run(ValidationJob.java:67)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
I thought to manually catch this exception and deal more properly with it, but found no way to do so. The class AddMarkersOperation and its callers don't seem to be part of the public Xtext API.
Is there a way to deal with this situation?
|
|
|
Powered by
FUDForum. Page generated in 0.03274 seconds