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

Bug 367777

Summary: Validate does not refresh
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: btickets, sebastian.zarnekow, serano, sven.efftinge
Version: 2.2.1Flags: sven.efftinge: kepler+
Target Milestone: M6   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2012-01-03 11:58:58 EST
I've added some EXPENSIVE validation code for use by the generated Xtext editor Validate action.

I find that the first time I use Validate it works fine.

Thereafter invoking Validate correctly updates the Problem View, but the Editor pane is not updated till some character edit occurs.

Should I be forcing a screen refresh or is this an Xtext UI bug (in 2.2.1)?
Comment 1 Ed Willink CLA 2012-01-19 13:50:24 EST
Once validation warnings are displayed, the markers toggle on and off on successive edits, regardless of the subsequent validity.

If the validation problem is cured and the file saved, the problem markers are not removed from the Problems View.
Comment 2 Ed Willink CLA 2012-01-19 17:07:42 EST
(In reply to comment #1)
> the markers toggle on and off on successive edits

This part at least appears to be my fault.
Comment 3 Ed Willink CLA 2012-01-20 14:58:38 EST
(In reply to comment #2)
> (In reply to comment #1)
> > the markers toggle on and off on successive edits
> 
> This part at least appears to be my fault.

Confirmed: please ignore comments 1 and 2.

An EXPENSIVE validate correctly updates the problem view for new and cured problems. However an edit is required to refresh the editor markers.
Comment 4 Ed Willink CLA 2013-03-08 11:54:33 EST
Possibly duplicated by Bug 402659.
Comment 5 Ed Willink CLA 2013-03-22 08:42:13 EDT
This seems to be fixed in Xtext 2.4.
Comment 6 Sebastian Zarnekow CLA 2013-03-22 08:43:33 EDT
Thanks for coming back to this one. I'll mark it as resolved. Please don't hesitate to file a new ticket or reopen this one if other problems arise.
Comment 7 Eclipse Webmaster CLA 2017-10-31 11:08:00 EDT
Requested via bug 522520.

-M.
Comment 8 Eclipse Webmaster CLA 2017-10-31 11:19:33 EDT
Requested via bug 522520.

-M.