Skip to content

x/tools/gopls: gopls generates errors for code in files that have been deleted #37049

Closed
@renthraysk

Description

@renthraysk

What version of Go are you using (go version)?

$ go version

go version go1.13.7 linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

Open a deleted file in VSCode's Source Control tab.
Depending on how much refactoring of the code as under gone, this can generate errors, but completely unhelpful as the code is defunct.

What did you expect to see?

No errors generated from deleted files.

What did you see instead?

Errors generated

Activity

added this to the Unreleased milestone on Feb 5, 2020
added
ToolsThis label describes issues relating to any tools in the x/tools repository.
goplsIssues related to the Go language server, gopls.
on Feb 5, 2020
gopherbot

gopherbot commented on Feb 5, 2020

@gopherbot
Contributor

Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here.

gopherbot

gopherbot commented on Feb 6, 2020

@gopherbot
Contributor

Change https://golang.org/cl/218278 mentions this issue: internal/lsp/lsprpc: add test for empty diagnostics in deleted files

gopherbot

gopherbot commented on Feb 19, 2020

@gopherbot
Contributor

Change https://golang.org/cl/220079 mentions this issue: internal/lsp: clear diagnostics for deleted files

locked and limited conversation to collaborators on Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis 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

        Participants

        @stamblerre@gopherbot@renthraysk

        Issue actions

          x/tools/gopls: gopls generates errors for code in files that have been deleted · Issue #37049 · golang/go