You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing the report, @idilhaq
This looks like a duplicate of golang/go#67704
which looks correlated with concurrent editing through the live share.
Do you remember how you triggered this crash?
Hi @hyangah , yup this was happening during a live share session.
I have been facing this issue few times this week.
It was just happening suddenly in the middle of the session. Probably connection issue?
It can be resolved by restarting(?) the extension at the bottom and check the item. Sometimes need to do this several times and it will be working again.
It's not a connection issue (though the crash will cause the server to disconnect). The investigation at golang/go#67704 identifies the culprit as an expression of the form x.Sel(...) that has a bad position, likely due to poor parser error recovery. If you are able to identify a sequence of keystrokes or edits that reproduces the crash, that would be very helpful information.
gopls version: v0.16.2/go1.21.0
gopls flags:
update flags: proxy
extension version: 0.42.0
environment: Visual Studio Code darwin
initialization error: undefined
issue timestamp: Fri, 06 Sep 2024 04:23:07 GMT
restart history:
Thu, 05 Sep 2024 23:09:52 GMT: activation (enabled: true)
Thu, 05 Sep 2024 23:58:08 GMT: installation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
gopls stats -anon
{ "DirStats": { "Files": 1799, "TestdataFiles": 0, "GoFiles": 387, "ModFiles": 1, "Dirs": 333 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.21.0", "GoplsVersion": "v0.16.2", "InitialWorkspaceLoadDuration": "2.179543917s", "MemStats": { "HeapAlloc": 86748648, "HeapInUse": 132972544, "TotalAlloc": 1005293960 }, "WorkspaceStats": { "Files": { "Total": 3817, "Largest": 663008, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.21.0", "AllPackages": { "Packages": 787, "LargestPackage": 140, "CompiledGoFiles": 3825, "Modules": 139 }, "WorkspacePackages": { "Packages": 65, "LargestPackage": 129, "CompiledGoFiles": 399, "Modules": 1 }, "Diagnostics": 1 } ] } }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: