Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321500 - [Editor] Editor does not revalidate after resource change
Summary: [Editor] Editor does not revalidate after resource change
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-02 08:51 EDT by Sebastian Zarnekow CLA
Modified: 2017-09-19 15:58 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: helios+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.