Skip to content
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: "couldn't create connection to server" (EPIPE, -32099) #3614

Open
zenki209 opened this issue Nov 23, 2024 · 1 comment
Open

gopls: "couldn't create connection to server" (EPIPE, -32099) #3614

zenki209 opened this issue Nov 23, 2024 · 1 comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@zenki209
Copy link

gopls version: v0.16.2/go1.22.2
gopls flags:
update flags: proxy
extension version: 0.42.1
environment: Visual Studio Code win32
initialization error: Error: write EPIPE
issue timestamp: Sat, 23 Nov 2024 17:50:32 GMT
restart history:
Sat, 23 Nov 2024 17:50:29 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

gopls client: couldn't create connection to server.
  Message: write EPIPE
  Code: -32099 
gopls stats -anon { "DirStats": { "Files": 196862, "TestdataFiles": 9, "GoFiles": 296, "ModFiles": 78, "Dirs": 34881 }, "GOARCH": "amd64", "GOOS": "windows", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.2", "GoplsVersion": "v0.16.2", "InitialWorkspaceLoadDuration": "247.633ms", "MemStats": { "HeapAlloc": 1744400, "HeapInUse": 3694592, "TotalAlloc": 5620760 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.2", "AllPackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "WorkspacePackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "Diagnostics": 0 } ] } }

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>

@gopherbot gopherbot added this to the Untriaged milestone Nov 23, 2024
@adonovan
Copy link
Member

JSONRPC code 32099 denotes an implementation-defined server error, but I don't think gopls actually ever returns this code. (See gopls/internal/jsonrpc2/wire.go for the ones that it does use.) In any case, if the client failed to connect to the server due to EPIPE, it suggests that the server process crashed.

Did this problem happen more than once? Is it reproducible? If so, next time it happens, could you please share the log you see in the gopls output channel and tell us when you observed this popup (e.g. I was updating gopls, I just opened the vscode, I did refactoring, ...)?
Screen Shot 2021-01-27 at 2 53 49 PM

Thanks.

@adonovan adonovan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Nov 25, 2024
@adonovan adonovan changed the title gopls: automated issue report (initialization) gopls: "couldn't create connection to server" (EPIPE, -32099) Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants