Can I highlight in editor custom build errors?

Hello,

I have a custom build script that I want to run.  It has standard output of the form filename:line_number:err_msg similar to vim's errorfmt and the build succeeds if the script ends with error code zero.  I want to run this script and have the IDE put a red squiggly (or yellow) line at that file and line number with the stdout error message.

The context is I have a golang project with very specific build parameters and static analysis that isn't built in.  I want to see these issues in the IDE as I develope or at least before I do a git push.

Is this possible?  I've spent time looking at "external tools", but cannot figure out how to integrate them into the IDE.

Thanks!

3 comments
Comment actions Permalink

For the error coloring in the external tool output you should use stderr in your tool.

0
Comment actions Permalink

Hi,

It is my understanding stderr is for human readable text and stdout is for machine parsable text.  Does IntelliJ require using stderr for my external tool?

0
Comment actions Permalink

IDEA will color stdout and stderr differently out of the box, there is no other difference. It would be easier to spot errors in the external tool output.

0

Please sign in to leave a comment.