Parse cache should be cleared after the language changes
Right now,
Submitted by Lennart Kats on 4 May 2010 at 11:58open-import
is used in languages like WebDSL, Stratego, and Mobl, and caches the ASTs of files. Once one of those languages changes, the old AST may no longer be well-formed. The least we could do is clear the parse cache with every deployed plugin update, so this issue won’t bother end programmers.
Issue Log
An implementation of this can be found in the WebDSL editor.
Yes, I’ve seen the approach used in the WebDSL editor. It would be nice to do something like that but then get the version number through the Eclipse API instead of an imported term.
See here for retrieving the plugins version from within Java.
Note also that the manifest of the plugin must include
Bundle-ActivationPolicy = lazy
as in this manifest, which tells Eclipse to start the Activator on first plugin class load.
Log in to post comments