x/tools/gopls: "无法计算%v的位置范围: %v"的bug(由遥测报告)

cgvd09ve  于 6个月前  发布在  Go
关注(0)|答案(2)|浏览(50)

这个堆栈 q8FyvQreported by telemetry :

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)

由 golang.org/x/tools/gopls/internal/telemetry/cmd/stacks 创建的问题。
重复项: rnoW6w

kx5bkwkv

kx5bkwkv1#

https://go.dev/cl/567416提到了这个问题:gopls/internal/cache: add debug assertions for bug report

h5qlskok

h5qlskok2#

此堆栈 rnoW6w 的状态为 reported by telemetry :

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:+122
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.3 go1.22.2 windows/amd64 vscode (1)

由 golang.org/x/tools/gopls/internal/telemetry/cmd/stacks 创建的问题。

相关问题