11 comments
Official comment

Hi, Andrew,

Currently, I cannot reproduce the issue.

1. What OS are you using?

2. Have you tried to just use predefined "gomatalinter" template, not manually setting it? (Preferences > Tools > File Watchers > '+' > gometalinter)?

3. Is this project inside GOPATH?

>>1. What OS are you using?

mac os 10.12.6

>>2. Have you tried to just use predefined "gomatalinter" template, not manually setting it? (Preferences > Tools > File Watchers > '+' > gometalinter)?

this method is work. 

>>3. Is this project inside GOPATH?

yes. 

 

 

0

>> this method is work. 

Does this mean that using predefined template solves your problem and with it file links become clickable?

0

Yes,

When used File Watchers with "gometalinter" logs is clickable  

0

When run   "gometalinter"  from tools/external tools 

logs is not clickable

0

Currently, external tools cannot handle relative paths, only the absolute ones:
https://youtrack.jetbrains.com/issue/IDEA-48163
Gomatalinter reports relative path by default. To make it output absolute paths, add the following flag:

--format="{{.Path.Abs}}:{{.Line}}:{{if .Col}}{{.Col}}{{end}}:{{.Severity}}: {{.Message}} ({{.Linter}})"

(it differs from default value by {{.Path.Abs}} instead of {{.Path}}). 

0

I know about relative paths.

I tried by you method or  config gometalinter.json 

But logs is not clickable

0

Can you give me a screenshot of your external tool settings (with "Advanced Options" unfolded)? 
Preferences > Tools > External Tools > Click "edit" on the tool you created and screen the dialog.

0

You need to add $FILE_PATH$:$LINE$ to "Output filters" field and everything should work (this is described in the article you mentioned in the problem description). Output filters are used to parse output of the executed tool.

0

Thanks

this option works

0

Please sign in to leave a comment.