Skip to content

golangci-lint run missing print-issued-lines (gopls/vscode) #5616

Closed
@elszon

Description

@elszon

Welcome

  • Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've read the typecheck section of the FAQ.
  • Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
  • I agree to follow this project's Code of Conduct

How did you install golangci-lint?

I don't know

Description of the problem

The golangci-lint run lacks the print-issued-lines option used by the gopls to find issues. The gopls is also used by the VS Code.

Version of golangci-lint

The gopls debug output from the VS Code:

2025-03-25 08:00:51.541 [error] Error while running tool: ~/go/bin/golangci-lint run --print-issued-lines=false --out-format=colored-line-number --issues-exit-code=0
2025-03-25 08:00:51.541 [error] Error: unknown flag: --print-issued-lines
Failed executing command with error: unknown flag: --print-issued-lines
$ golangci-lint --version
golangci-lint has version v2.0.1 built with go1.24.1 from (unknown, modified: ?, mod sum: "h1:fNxppSstN0Rl5eDNRqMqdoH+/c2cr02zM8gEbhU12XQ=") on (unknown)

Configuration

# paste configuration file or CLI flags here

Go environment

$ go version && go env
go version go1.24.1 darwin/arm64

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here

A minimal reproducible example or link to a public repository

// add your code here

Validation

  • Yes, I've included all information above (version, config, etc.).

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: integrationsRelated to integrations and IDEsquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions