JavaSourceTransformingCompiler and code navigation

I implemented very dumb preprocessor plugin (it uses Antenna). It has some ugly side-effect which I ignored for some time, but now I would like to fix it: when I compile a code and there are errors, clicking on the link in the error message window (source file / line number) takes me to correct source file, but wrong line number. Also navigation using forward/backward usingCtrl-Alt-left/right arrow seems affected.

The plugin is a single component plugin, just with the implementation of JavaSourceTransformingCompiler. The preprocessor only comments out lines according to #ifdefs, so lines numbers does not change. Is there something else I need to take care of?

Thank you.

Btw I still use IDEA v6 (because I like its simplicity and performance) but I guess (and hope) it is ok.

Please sign in to leave a comment.