Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Validation on a DSL file from outside the workspace
Validation on a DSL file from outside the workspace [message #1220642] Thu, 12 December 2013 19:36
Erick Fonseca is currently offline Erick FonsecaFriend
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?
Previous Topic:Update from 2.3 to 2.5: Old 64b problem occurs again
Next Topic:Class / Method Resolution Issue
Goto Forum:
  


Current Time: Mon Nov 30 18:40:53 GMT 2020

Powered by FUDForum. Page generated in 0.01747 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top