Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Problem View Not getting updated
Xtext Problem View Not getting updated [message #1016593] Wed, 06 March 2013 22:54 Go to next message
Ankit Agarwal is currently offline Ankit Agarwal
Messages: 28
Registered: March 2012
Junior Member
I have a Editor and a few validations on it.My Validation class extends AbstractDeclarativeValidator and i have made validations using @Check (Checktype.FAST) annotation. After the error is shown in Editor (If Any), and i correct it, the Error mark turns grey, but is not removed from the Editor and the problem view also is not getting refreshed. Once i manually right click on the editor and click on validate, the errors are gone. Is there a way to rectify this?

[Updated on: Wed, 06 March 2013 22:59]

Report message to a moderator

Re: Xtext Problem View Not getting updated [message #1016612 is a reply to message #1016593] Thu, 07 March 2013 02:06 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander Nittka
Messages: 1075
Registered: July 2009
Senior Member
Hi,

the problems view gets updated on "save". It does not represent the dirty editor state.

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Xtext Problem View Not getting updated [message #1016624 is a reply to message #1016612] Thu, 07 March 2013 03:08 Go to previous messageGo to next message
Ankit Agarwal is currently offline Ankit Agarwal
Messages: 28
Registered: March 2012
Junior Member
It is not even updating on Save. After saving, the editor error symbols turn grey (Not gone) and the problem view still has the error. Only once i right click on the editor and click on validate then the errors disappear from Editor and the problems view.
Re: Xtext Problem View Not getting updated [message #1016636 is a reply to message #1016624] Thu, 07 March 2013 03:36 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander Nittka
Messages: 1075
Registered: July 2009
Senior Member
Have you made changes in the workflow for generating the language infrastructure. I am not sure, but I think the builder integration fragment is necessary for updating the markers.

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Xtext Problem View Not getting updated [message #1016654 is a reply to message #1016636] Thu, 07 March 2013 04:26 Go to previous message
Ankit Agarwal is currently offline Ankit Agarwal
Messages: 28
Registered: March 2012
Junior Member
My Workflow looks like :


language = {
uri = grammarURI
fileExtensions = file.extensions

fragment = grammarAccess.GrammarAccessFragment {}
fragment =ecore.EcoreGeneratorFragment { }
fragment = parseTreeConstructor.ParseTreeConstructorFragment {}
fragment = resourceFactory.ResourceFactoryFragment {
fileExtensions = file.extensions
}
fragment = parser.antlr.XtextAntlrGeneratorFragment {}
fragment = validation.JavaValidatorFragment {
composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
}
fragment = scoping.ImportURIScopingFragment {}
fragment = exporting.QualifiedNamesFragment {}
fragment = builder.BuilderIntegrationFragment {}
fragment = formatting.FormatterFragment {}
fragment = labeling.LabelProviderFragment {}
fragment = outline.OutlineTreeProviderFragment {}
fragment = outline.QuickOutlineFragment {}
fragment = quickfix.QuickfixProviderFragment {}
fragment = contentAssist.JavaBasedContentAssistFragment {}
fragment = parser.antlr.XtextAntlrUiGeneratorFragment {}

}
Previous Topic:Another cross-referencing question
Next Topic:Is Xtext right for me?
Goto Forum:
  


Current Time: Wed May 22 15:20:56 EDT 2013

Powered by FUDForum. Page generated in 0.08316 seconds