|Error annotations lost in reconciler [message #916933]
||Wed, 19 September 2012 16:55
| Iulian Dragos
Registered: July 2009
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?
Powered by FUDForum
. Page generated in 0.01590 seconds