Skip to content

x/tools/gopls: vulncheck "unsaved files" check is not working reliably #76342

@adonovan

Description

@adonovan

Running the latest gopls with VS Code, I notice that invoking the "Run vulncheck" code lens attached to the module declaration of gopls/go.mod, while gopls/main.go has unsaved edits, does not reliably cause the server to report an "All files must be saved first" error, despite the appearance of correct logic to this end in server.commandHandler.run. We should investigate.

(I found this while investigating a different bug, in which I saw the "unsaved" error in VS Code, saved the main.go file, then re-ran the code lens command, only to see a "Vulncheck is already running bug". But now I can't reproduce that bug because I don't get the "unsaved" error at all.)

cc: @ethanalee-work

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions