-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: cgocall analyzer: "token.Pos not within package" bug (reported by telemetry) #66911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No wonder cgocall shows up in so many of our gopls analyzer bug reports: it runs its own parsing and type checking steps (see https://go-review.googlesource.com/c/147317), so of course we won't find its token.Pos values within the analysis package's known Pos ranges! I'm not yet sure what the fix is, but at least now we have a theory for how to fix this issue and #64547, our most prolific generator of field reports. |
Change https://go.dev/cl/580836 mentions this issue: |
This stack
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks. |
This stack
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks. |
This stack
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks. |
This stack
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks. |
This stack
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks. |
This stack
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks. |
This stack
|
This stack
E4ACQw
was reported by telemetry:cache.(*action).exec.func2:+37 is:
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks.
Dups: 4azcCQ aXGmAg WeRHKw ADZ5pQ dTBLeg So3Cbg FbOG3A
The text was updated successfully, but these errors were encountered: