-
Notifications
You must be signed in to change notification settings - Fork 18k
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: keeps crashing in VSCode on fresh go installation #66028
Comments
What version of gopls are you experiencing this issue with? |
gopls v0.15.1 |
@mindbodycode could you look in |
@findleyr today I reinstalled and updated it once again. Finally gopls stopped crushing. Now when running my first hello world it doesn't run and I get: "fork/exec C:\Users\skejl\AppData\Local\Temp\go-build351412623\b001\exe\main.exe: The parameter is incorrect." |
Happy to hear reinstalling fixed the problem. Regarding the second issue, could you describe the steps you took? (It looks like you ran "go run", perhaps?) That error message ("the parameter is incorrect") is strange: as far as I can tell, it is most commonly associated with external storage devices. Do you have any anti-virus software installed? They can often modify the behavior of the file system. |
@adonovan thank you for pointing me into right direction. Finally it works correctly. What helped in my case:
Thank you everyone for your support! |
I'm curious to know whether removing the antivirus exceptions causes the original bug to recur. Glad you got things working! |
Go version
go1.22.0 windows/amd64, vscode 1.87.0
Output of
go env
in your module/workspace:What did you do?
Starting my adventure with GO.
Steps taken:
"gopls client: couldn't create connection to server."
"gopls has crashed, but you are using an outdated version. Please update to the latest version of gopls." - even though it has been freshly updated
{
"go.toolsManagement.autoUpdate": true
}
The issue remains.
What did you see happen?
[Error - 10:54:58 AM]
[Error - 10:54:58 AM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at GoLanguageClient.shutdown (c:\Users\skejl.vscode\extensions\golang.go-0.41.1\dist\goMain.js:21886:17)
at GoLanguageClient.stop (c:\Users\skejl.vscode\extensions\golang.go-0.41.1\dist\goMain.js:21863:21)
at GoLanguageClient.stop (c:\Users\skejl.vscode\extensions\golang.go-0.41.1\dist\goMain.js:22699:22)
at GoLanguageClient.handleConnectionError (c:\Users\skejl.vscode\extensions\golang.go-0.41.1\dist\goMain.js:22104:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 10:54:58 AM] gopls client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
Error starting language server: Error: write EPIPE[Error - 10:54:59 AM]
What did you expect to see?
I expected to run first "Hello World"
The text was updated successfully, but these errors were encountered: