Skip to content

File names in GoMetalinter output are not recognized by vim when g:go_metalinter_command is a full commandline #2707

@orlangure

Description

@orlangure

When I run gometalinter, the warnings are put into quickfix list, but the file 6s are not recognized by vim, preventing me from being able to jump to the problematic spot.

Any warning reproduces the issue with the following configuration:

  let g:go_metalinter_command='golangci-lint run
              \ --enable-all
              \ -D dupl
              \ -D gomnd
              \ ./...'
|| compress.go:29:2: only one cuddle assignment allowed before if statement (wsl)
|| 	if err != nil {
|| 	^

I believe this is because of my custom configuration which enables all linters except gomnd and dupl, and runs everything on all child packages.

I use Go 1.13.6, and latest vim-go, gopls and golangci-lint versions (from master).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions