Java file name in Make output when using JavaSourceTransformingCompiler

Hi,
I use JavaSourceTransformingCompiler to transform java sources before compilation.
When the file has errors or warnings the actual java compiler reports them for transformed file paths, not the original ones. (ie /private/tmp/project21063project/File.java instead of /Users/user/project/src/File.java)
As the result I cannot click on the error or use F4 to navigate to error's position.

Is there any way to inform the compiler what the original file was?
Some CompileContext magic?

Or is it an IDEA bug I can do nothing about in my plugin?

Regards,
Slawek

1 comment
Comment actions Permalink

Hello Slawomir,

I use JavaSourceTransformingCompiler to transform java sources before
compilation.

When the file has errors or warnings the actual java compiler reports
them for transformed file paths, not the original ones. (ie
/private/tmp/project21063project/File.java instead of
/Users/user/project/src/File.java)

As the result I cannot click on the error or use F4 to navigate to
error's position.

Is there any way to inform the compiler what the original file was?
Some CompileContext magic?

Or is it an IDEA bug I can do nothing about in my plugin?


This is indeed a deficiency in our compiler subsystem, and it looks like
it can't really be worked around by a third-party plugin. I've filed a JIRA
issue for the fix in IDEA core:
http://www.jetbrains.net/jira/browse/IDEADEV-28565

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.