VonHeikemen / lsp-zero.nvim

A starting point to setup some lsp related features in neovim.
https://lsp-zero.netlify.app/docs/
MIT License
3.78k stars 96 forks source link

error installing gopls(same thing happend with hls) #377

Closed Wordluc closed 7 months ago

Wordluc commented 7 months ago

gopls ▼ Displaying full log Installing go package golang.org/x/tools/gopls@v0.15.1… spawn: go failed with exit code - and signal -. go is not executable

VonHeikemen commented 7 months ago

The problem here is you don't have the tools necessary to download gopls. The message go is not executable is telling you the command go is not available in your system, or at the very least Neovim can't find it.

I'm assuming you are using mason.nvim to install these things. mason.nvim only automates the download of language servers (and other tools). For example, if you try to install intelephense mason.nvim will just try to execute the command npm install intelephense. Which is the same thing you would do on your terminal. That command will fail if npm is not available in your system.

Whatever tools you want to download, you need to make sure you meet their requirements.

Wordluc commented 7 months ago

thanks, i installed Go to resolve my problem