]
Daniel Dekany updated JBIDE-22659:
----------------------------------
Summary: Error marker information should come from the reconciler thread (was: Error
marker information should comre from the reconciler thread)
Error marker information should come from the reconciler thread
---------------------------------------------------------------
Key: JBIDE-22659
URL:
https://issues.jboss.org/browse/JBIDE-22659
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: freemarker
Reporter: Daniel Dekany
The template is parsed with the actual FreeMarker parser, and the resulting exception (if
any) is translated to an Eclipse error marker. The parsing happens asynchronously. This is
fine so far. What's strange is that instead of relying on the standard reconciler
mechanism, {{org.jboss.ide.eclipse.freemarker.editor.Editor}} tries to figure out when
that information needs to be recalculated by examining the keydown events, instead of real
change events. Thus it doesn't work if you are inserting text solely with mouse for
example. Also the {{Editor}} tries to do this after each key stroke (unlike the reconciler
mechanism, which waits until you stop typing for a moment). Also the asynchronous task
execution it does has a flaw because of which sometimes ignores the last few changes.