-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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/internal/lsp/template: panic - slice bounds out of range (crash) #57621
Comments
CC @pjweinb |
CC @pjweinb |
I'm not at all familiar with the internal/lsp/template package, but from the crash information we can tell that the failure is below in completion.go, and that the cause is that c.offset is greater than start (39 > 37) but start itself is within bounds (since the error didn't mention "with capacity").
Reading a little more, we can tell that:
I just tried creating a new template file in VSCode, inserting |
This seems like it's not getting fixed for v0.12.0. That's ok. It was marked as a release blocker because it is a crasher, but I don't think the template feature should block the release. Moving to v0.13.0. |
gopls version: v0.11.0 (go1.19.3)
gopls flags:
update flags: proxy
extension version: 0.37.0
go version: 1.19.3
environment: Visual Studio Code win32
initialization error: undefined
issue timestamp: Tue, 20 Dec 2022 12:17:00 GMT
restart history:
Tue, 20 Dec 2022 09:27:58 GMT: activation (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: