Community
Participate
Working Groups
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)?
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.
(In reply to comment #1) > the markers toggle on and off on successive edits This part at least appears to be my fault.
(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.
Possibly duplicated by Bug 402659.
This seems to be fixed in Xtext 2.4.
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.
Requested via bug 522520. -M.