x/tools/gopls: crash in type checker with cgo #44397
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls version: v0.6.5
gopls flags:
extension version: 0.22.1
environment: Visual Studio Code darwin
initialization error: undefined
manual restart count: 0
total start count: 1
Describe what you observed.
I was editing a Go function when the crash notice showed up. I didn't notice any strange behavior or issues before the message.
The full log is huge (20k lines and 1 MiB) so I'll just provide the last few messages and the function I was working on at the time (seems relevant considering the stacktrace). However, I have the full log saved so feel free to ask for specific parts.
The same message appeared several times. This issue seems to occur whenever I change the C preamble and vanishes once I click the "Regenerate cgo definitions" action.
Here's the function I was working on. I just finished typing
C.GoStringN(
when the crash occured.The installed Go version is 1.15.8.
The text was updated successfully, but these errors were encountered: