x/tools/gopls: gopls and other tool installs fail on 2021 M1 Max Mac #66012
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.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
gopls version
latest
go env
What did you do?
I enabled the Go VS Code extension and I get errors that I have to install
gopls
and other tools, so when I try to install it, I keep getting an error, and I have no intellisense or any features in my editor.What did you see happen?
2024-02-28 16:51:25.923 [info] Tools environment: GOPATH=/Users/pseg/go
2024-02-28 16:51:25.923 [info] Installing 5 tools at /Users/pseg/go/bin
2024-02-28 16:51:25.923 [info] gopls
2024-02-28 16:51:25.923 [info] gotests
2024-02-28 16:51:25.923 [info] goplay
2024-02-28 16:51:25.923 [info] dlv
2024-02-28 16:51:25.923 [info] staticcheck
2024-02-28 16:51:25.923 [info]
2024-02-28 16:51:26.759 [info] Installing golang.org/x/tools/gopls@latest FAILED
2024-02-28 16:51:26.759 [info] {
"code": 1,
"killed": false,
"signal": null,
"cmd": "/usr/local/go/bin/go install -v golang.org/x/tools/gopls@latest",
"stdout": "",
"stderr": "# golang.org/x/tools/gopls\n/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1\nld: Undefined symbols:\n _darwin_arm_init_mach_exception_handler, referenced from:\n _x_cgo_init in 000005.o\n _darwin_arm_init_thread_exception_port, referenced from:\n _threadentry in 000005.o\n _x_cgo_init in 000005.o\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\n\n"
}
What did you expect to see?
Successful install
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: