Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
Hi,

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

Alex
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
Eclipse UserFriend
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
Eclipse UserFriend
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
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 22 22:43:26 EDT 2025

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

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

Back to the top