run make as an External Tool and link compile errors to source file lines?

已回答

I like to use make to build golang apps. When building stuff inside IDEA you typically get links in the compile output that links to the line of code and the file to fix the compile error quickly.

I've added make as an External Tool in IDEA so I can run make to build stuff which is great; however the output just shows stuff like...

pkg/watcher/watcher.go:297: too many arguments in call to util.Info

I'd like to make the text before the : a link to the line of code in the source file. Anyone figured out how to do that? I've tried googling a bit and not found anything yet - I seem to remember there being some way to configure compile error regex patterns or something?

I just raised this in case anyone had figured out in the golang IDE: https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2869

Thanks!

0

请先登录再写评论。