golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.8k stars 730 forks source link

fails to install gopls due to missing xcrun (xcode) installation #3103

Closed poembro closed 6 months ago

poembro commented 6 months ago
1 tools failed to install.

gopls: failed to install gopls(golang.org/x/tools/gopls@latest): Error: Command failed: /usr/local/go/bin/go install -v golang.org/x/tools/gopls@latest
runtime/cgo
# runtime/cgo
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
hyangah commented 6 months ago

The next version of gopls (v0.15, to be released next year) will not have the cgo dependency. Actually, the cgo dependency is already removed in the dev version of gopls. Can you try the unstable version?

git clone https://go.googlesource.com/tools
cd tools/gopls
go install
ansaba commented 6 months ago

Closing it. It will be fixed with next gopls v0.15.0