Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321500

Summary: [Editor] Editor does not revalidate after resource change
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: stephane
Version: 1.0.0Flags: sebastian.zarnekow: helios+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2010-08-02 08:51:18 EDT
Steps to reproduce (assuming you have a langauge with customizable severities for validation rules):

1) Open editor for the language.
2) Ensure the editor contains error markers.
3) Close the editor.
4) Disable the validation rules. -> This should trigger a rebuild.
5) Reopen the editor -> no error markers.
6) Insert a space and save the editor.
7) Change the validation settings and reenable the constraints. -> Rebuild is triggered.
8) The editor will contain "deleted" annotations for the newly created error markers. 

The annotations should not be flagged as deleted since a newly inserted space will recreate them anyway. The problem is not reproducable when step (6) is omitted.
Comment 1 Sebastian Zarnekow CLA 2010-08-12 05:18:09 EDT
As the markers are up to date after the builder created them, I guess Xtext does nothing fundamentally wrong. Clients with this special use case should extend the XtextDocumentProvider and register a Preference-listener that triggers the validation after the settings have been changed. Alternatively, validation should be triggered by means of IResource#touch through the builder infrastructure instead of custom marker creation.

Closed as won't fix.
Comment 2 Karsten Thoms CLA 2017-09-19 15:58:17 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.