Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsInvalid synchronization of resources
https://www.eclipse.org/forums/index.php/mv/msg/1085919/1760746/#msg_1760746
I have written a DSL with Xtext editor associated to.
Many times, I have the editor show up errors in my DSL code and the package explorer not.
When I type a space character in the editor, remove it and save the file (it means that no change was applied to the file content); the editor's markers are removed from the side of the editor. The error markers in the editor are now the consistent with the error markets in the package explorer.
I cannot provide a small project for reproducing and testing this issue because it appends unpredictably.
This issue exists since Xtext 2.6 (the first version we have used) and still valid with Xtet 2.11
Is someone has already encountered this issue?
Thank you in advance.
Stéphane.]]>Stéphane Galland2017-05-02T14:59:56-00:00Re: Invalid synchronization of resources
https://www.eclipse.org/forums/index.php/mv/msg/1085919/1760748/#msg_1760748
- which is the check type and kind of error this is about?
- is this about a single file a multiple dependent files in combination?]]>Christian Dietrich2017-05-02T15:02:44-00:00Re: Invalid synchronization of resources
https://www.eclipse.org/forums/index.php/mv/msg/1085919/1760752/#msg_1760752
IIRC I had this problem a few years ago and it was due to how the ValidationJob is run at editor start up. You need to make sure it runs and make sure that its issues are published.
Regards
Ed Willink]]>Ed Willink2017-05-02T15:44:15-00:00Re: Invalid synchronization of resources
https://www.eclipse.org/forums/index.php/mv/msg/1085919/1760753/#msg_1760753
This is why dirty editors might show different errors than the problems view. After a save both should be in sync again, though.]]>Sven Efftinge2017-05-02T15:44:31-00:00Re: Invalid synchronization of resources
https://www.eclipse.org/forums/index.php/mv/msg/1085919/1760884/#msg_1760884
Thank you for your replies. I will explore this issue according to your comments.
For giving an answer to your questions, examples of errors are:
"Type mismatch: cannot convert from boolean to boolean"
"The return type is incompatible with equals(Object)"
"&& cannot be resolved."
The compiled code is free of error. Closing the editor and opening it clear the error markings in the editor, of course.
The two screenshots below show up the incoherent error marking.
Please note that the editors are not "dirty". The invalid errors markers are usually displayed after a "save" action on either the erroneous editor or another one.
]]>Stéphane Galland2017-05-04T06:31:50-00:00Re: Invalid synchronization of resources
https://www.eclipse.org/forums/index.php/mv/msg/1085919/1760907/#msg_1760907
(error in the editor, no error on the file)
i have no clue where this come from and what causes this,
but it seems this effects all xbase languages.
=> can you please file a ticket.
unfortunately i have no idea how to investigate this.
=> if you are able to debug this it would be nice if you could debug into xbase scoping.
and see whats the problem there.]]>Christian Dietrich2017-05-04T09:11:59-00:00Re: Invalid synchronization of resources
https://www.eclipse.org/forums/index.php/mv/msg/1085919/1761039/#msg_1761039
I will investigate from my product. But because this issue appear randomly, it will be a long task.