-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/gopls: crash when renaming in a package using builtins with type parameters #52940
Comments
It looks like CC @adonovan |
It looks like there's a fair bit of work to be done in the satisfaction checker, and we'll need an implementation of the core type algorithm. I believe @timothy-king has this on a branch. Tim, would you mind upstreaming your implementation of coreType into the x/tools/internal/typeparams package (or would you mind if I did it)? |
I can upstream an initial version. May need some additional polish as a follow-up. |
@timothy-king that would be great. We can get some experience with it. Thanks! |
Change https://go.dev/cl/406838 mentions this issue: |
Adds a function for computing the core type of a type for use within x/tools. Updates golang/go#52940 Change-Id: I91645c0b27031506be51a5f9d53b3e125e6fd1c2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/406838 Run-TryBot: Tim King <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
Change https://go.dev/cl/413682 mentions this issue: |
Change https://go.dev/cl/413690 mentions this issue: |
Adds a function for computing the core type of a type for use within x/tools. Updates golang/go#52940 Change-Id: I91645c0b27031506be51a5f9d53b3e125e6fd1c2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/406838 Run-TryBot: Tim King <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
gopls version: v0.8.3 (go1.18)
gopls flags:
update flags: proxy
extension version: 0.33.0
go version: 1.18
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Tue, 17 May 2022 09:09:54 GMT
restart history:
Mon, 16 May 2022 05:09:54 GMT: activation (enabled: true)
Tue, 17 May 2022 08:52:58 GMT: manual (enabled: true)
Tue, 17 May 2022 09:03:47 GMT: manual (enabled: true)
Tue, 17 May 2022 09:09:14 GMT: manual (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.
NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.
<OPTIONAL: ATTACH LOGS HERE>
The text was updated successfully, but these errors were encountered: