Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsError annotations lost in reconciler
https://www.eclipse.org/forums/index.php/mv/msg/378846/916933/#msg_916933
I have a custom editor and I implemented 'report errors as you type', but every now and then my error squigglies (using JFace annotations) are not shown or linger after they should be removed.
I am using `MonoReconciler` with my implementation of `IReconcilingStrategy`. During the `reconcile` step I call `annotationModel.replaceAnnotations` to remove the old errors and add the new ones. Most of the times this works ok. Every now and then the updates are lost, and I notice the following:
- the red stamp on the left ruler disappears, but the red underlines stay
- on the next character I type, the underline disappears
I verified in the debugger that the annotations are correctly calculated. The underline disappear immediately after typing a character, and *not* after the 500ms of the reconciler. It looks like a lost UI update/redraw.
There must be a race condition somewhere (the reconciler runs in its own thread). Is there any documentation or hint about what am I doing wrong?]]>Iulian Dragos2012-09-19T16:55:42-00:00