Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to get rid of obsolete validation errors?
How to get rid of obsolete validation errors? [message #989649] Fri, 07 December 2012 03:12 Go to previous message
Aaron Digulla is currently offline Aaron Digulla
Messages: 236
Registered: July 2009
Location: Switzerland
Senior Member
While developing a DSL, I often need to change my grammar. To make the unit tests pass, I need to update the test files.

Now I get validation errors because the version of the editor installed in another copy of Eclipse can't (yet) understand this new format. That's OK and expected.

Now I install the new version (with the new grammar) and restart. But the validation errors don't go away. That's bad.

How do I get rid of these obsolete errors?

I tried:

1. Restarting Eclipse
2. Forcing a rebuild
3. Select "Validate" in the project's context menu
4. Change and save each file

Of these, #2 and #4 work but both have drawbacks:

#4 is a lot of work because I have many files.

#2 triggers a bug in MercurialEclipse (https://bitbucket.org/mercurialeclipse/main/issue/351/files-under-version-control-get-deleted-by)

Questions:

1. Is there another way to handle this?

2. Why doesn't "Validate" clear the errors in the "Problems View"?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Which IValidationIssueProcessor should I use?
Next Topic:Maven Xtend compiler - file encoding
Goto Forum:
  


Current Time: Fri May 24 18:02:42 EDT 2013

Powered by FUDForum. Page generated in 0.01725 seconds