-
Notifications
You must be signed in to change notification settings - Fork 770
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
gopls: automated issue report (crash) [panic: slice out of bounds, v0.15.3/go1.22.2] #3352
Comments
Probably this should have been opened in gopls issues, but I blame extension for opening this page when I pressed "report"! |
I have tested with the previous versions, here are my results:
GoPLS v0.14.2 output (that did not crash):
|
Thank you for the reproducer and detailed report. This looks like a dupe of golang/go#66875, so I'll close it in favor of that issue. The reproducer will make this much easier to fix. |
Hey team, I tried to add as much information as I could, but please let me know if any additional diag is needed.
Reproduce
Install goyacc
Run the following command to generate y.go and y.output
Open "y.go" file in VSCode.
Observe the Gopls crash.
To confirm:
Notes
slacktime.y
is C version of the grammar file, so "y.go" will not work straight away. I was just planning to adapt it to Goyacc, but ran into this issue. I suspect it is similar to #3351 which was recently opened as well.I'm attaching an archive of the project files. There's no sensitive information, it's just an experimental code.
gopls.log
.generate-y.go.sh
contains the command to generate y.go, should it be required.HERE WE GO:
gopls-issue-project.tar.gz
Thank you, and please let me know if anything else is required?
Orignial Report
gopls version: v0.15.3/go1.22.2
gopls flags:
update flags: proxy
extension version: 0.41.2
environment: Visual Studio Code darwin
initialization error: undefined
issue timestamp: Sat, 20 Apr 2024 04:36:43 GMT
restart history:
Sat, 20 Apr 2024 04:35:52 GMT: activation (enabled: true)
Sat, 20 Apr 2024 04:36:42 GMT: installation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
Important
I have opened the y.go file from the attached archive. Y.go file is the go file generated by goyacc tool. See Reproduce above.
gopls stats -anon
gopls stats -anon failed after 136 ms. Please check if gopls is killed by OS.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.
The text was updated successfully, but these errors were encountered: