[patch] "Only analyze open editors" leaves markers hanging
Brought to you by:
fabioz
To reproduce: Open a Pydev project that contains errors and "Only analyze open editors" is OFF. Close all editors. Go to Pydef preferences and turn ON "Only analyze open editors".
Observed behaviour: All markers remain. Markers remain even after project clean and (sometimes?) even after restart of Eclipse.
Expected behaviour: All PyDev-related markers should vanish, at least on project clean.
This bug causes a problem when the number of error markers is huge (due to, for example, a missing module that can not be immediately corrected). Then it is impossible to work with the project and this "Only analyze open editors" would be an excellent workaround (it the markers would vanish, that is).
My temporary solution
I have posted a patch with my temporary fix for the problem. The outline of the fix is: deletes all pydev markers before starting a full build.
I had to hard code the marker ID and I'm not sure if there are side effects under some conditions, but this works well for now on our site.