Skip to content

x/tools/gopls: "could not compute pos to range for %v: %v" bug (reported by telemetry) #65960

Open
@adonovan

Description

@adonovan
#!stacks
"bug.Reportf" &&
 "typeErrorsToDiagnostics.func1" && 
/* keep consistent with #66766, which claims these particular lines. */
 !("typeErrorsToDiagnostics.func1:+28" ||
  "typeErrorsToDiagnostics.func1:+34" ||
  "typeErrorsToDiagnostics.func1:+35" ||
  "typeErrorsToDiagnostics.func1:+37") && 
/* keep consistent with #66765, which claims these particular lines. */
 !("typeErrorsToDiagnostics.func1:+40" || 
   "typeErrorsToDiagnostics.func1:+46" ||
    "typeErrorsToDiagnostics.func1:+53")

This stack q8FyvQ was reported by telemetry:

Note variants:

  • bug.Reportf("TypeErrorEndPos returned invalid end: %v", err)
  • bug.Reportf("ReadGo116ErrorData returned invalid end: %v", err)
gopls/bug
golang.org/x/tools/gopls/internal/util/bug.report:+35
golang.org/x/tools/gopls/internal/util/bug.Reportf:+1
golang.org/x/tools/gopls/internal/cache.typeErrorsToDiagnostics.func1:+50
golang.org/x/tools/gopls/internal/cache.typeErrorsToDiagnostics:+119
golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).checkPackage:+127
golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).handleSyntaxPackage:+70
golang.org/x/tools/gopls/internal/cache.(*Snapshot).forEachPackageInternal.func2:+1
golang.org/x/sync/errgroup.(*Group).Go.func1:+3
runtime.goexit:+0
golang.org/x/tools/gopls@v0.15.0-pre.4 go1.21.5 darwin/amd64 vscode (1)

Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks.

Dups: rnoW6w 7zL2qQ pT-4Ug PDXPlA RejVIw CBGyxQ AG72cA Lf-3ww TXfuyw NpHz4A NUG3VA

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone 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

    Issue actions