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: 33
Registered: March 2012
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: 1151
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: 33
Registered: March 2012
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: 1151
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 messageGo to next message
Ankit Agarwal is currently offline Ankit Agarwal
Messages: 33
Registered: March 2012
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 {}

}
Re: Xtext Problem View Not getting updated [message #1062846 is a reply to message #1016654] Tue, 11 June 2013 01:47 Go to previous messageGo to next message
Ankit Agarwal is currently offline Ankit Agarwal
Messages: 33
Registered: March 2012
Member
HI.. I am still facing this issue....Can anyone help me in resolving this issue.
Re: Xtext Problem View Not getting updated [message #1062849 is a reply to message #1062846] Tue, 11 June 2013 01:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6230
Registered: July 2009
Senior Member
Make sure

- builder integration fragment is on
- plugin.xml-gen is merged to plugin.XML in ui project
- build automatically is on in the runtime application workspace
- the project containing the model file has Xtext nature

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: Xtext Problem View Not getting updated [message #1062858 is a reply to message #1062849] Tue, 11 June 2013 02:51 Go to previous messageGo to next message
Ankit Agarwal is currently offline Ankit Agarwal
Messages: 33
Registered: March 2012
Member
Hi Christian,

I have verified all the points mentioned by you.
My plugin_gen.xml was not merged to plugin.xml. But after merging the problem increases.
Till now i used to right click on the Editor and select validate to remove all the greyed out error symbol. This would remove all the errors. But after merging even validating manually is not working. There are no active errors but the greyed out errors marks remains even after validating manually.
Re: Xtext Problem View Not getting updated [message #1062859 is a reply to message #1062858] Tue, 11 June 2013 03:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6230
Registered: July 2009
Senior Member
Can you please try a brand new project

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: Xtext Problem View Not getting updated [message #1062895 is a reply to message #1062859] Tue, 11 June 2013 05:31 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4035
Registered: July 2009
Senior Member
Hi

Might be https://bugs.eclipse.org/bugs/show_bug.cgi?id=367777 that went
away after M6.

Regards

Ed Willink


On 11/06/2013 08:09, Christian Dietrich wrote:
> Can you please try a brand new project
>
Previous Topic:how2 specify some freetext block
Next Topic:Update of resource description
Goto Forum:
  


Current Time: Thu Aug 28 21:35:59 EDT 2014

Powered by FUDForum. Page generated in 0.08492 seconds