Skip to content

x/tools/gopls: NarrowestMetadataForFile bug reported by telemetry #64233

Closed
@adonovan

Description

@adonovan

This stack IsVbqA was reported by telemetry:

cache.(*snapshot).load:118 is

	if standalone && len(pkgs) > 1 {
		return bug.Errorf("internal error: go/packages returned multiple packages for standalone file")
	}
gopls/bug
golang.org/x/tools/gopls/internal/bug.report:35
golang.org/x/tools/gopls/internal/bug.Errorf:2
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).load:118
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).MetadataForFile:36
golang.org/x/tools/gopls/internal/lsp/source.NarrowestMetadataForFile:1
golang.org/x/tools/gopls/internal/lsp.(*Server).diagnoseChangedFiles:28
golang.org/x/tools/gopls/internal/lsp.(*Server).diagnoseSnapshot:25
golang.org/x/tools/gopls/internal/lsp.(*Server).diagnoseSnapshots.func1:2
runtime.goexit:0
golang.org/x/tools/gopls@v0.14.1 go1.21.3 darwin/arm64 (1)

Reported using golang.org/x/tools/gopls/internal/telemetry/cmd/stacks.

Activity

added
ToolsThis label describes issues relating to any tools in the x/tools repository.
goplsIssues related to the Go language server, gopls.
on Nov 17, 2023
added this to the Unreleased milestone on Nov 17, 2023
added
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
on Nov 17, 2023
changed the title [-]x/tools/gopls: NarrowestMetadataForFile bug reported by telemetry [IsVbqA][/-] [+]x/tools/gopls: NarrowestMetadataForFile bug reported by telemetry[/+] on Nov 17, 2023
self-assigned this
on Jan 22, 2024
gopherbot

gopherbot commented on Jan 22, 2024

@gopherbot
Contributor

Change https://go.dev/cl/557635 mentions this issue: gopls/internal/lsp/cache: don't report a bug for standalone test files

added a commit that references this issue on Jan 28, 2024
4c53267
locked and limited conversation to collaborators on Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/telemetry-wins

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @adonovan@gopherbot@findleyr

      Issue actions

        x/tools/gopls: NarrowestMetadataForFile bug reported by telemetry · Issue #64233 · golang/go