efm-langserver
efm-langserver copied to clipboard
Can only use path@version syntax with 'go get'?
I tried to install them for vim syntax from documentation.
go install github.com/mattn/efm-langserver@latest
In terminal i got this error
can't load package: package github.com/mattn/efm-langserver@latest: can only use path@version syntax with 'go get'
I can replace install with get
But what to do after that?
What version of Go are you on? I believe this error occurs for older installations. Try updating to 1.17 or later
Ubuntu's most recently packaged version is golang-1.13 so that may be the problem. Instead of sudo apt install golang-go
use these instructions to unzip and add to path the prebuilt latest go (current 1.18). First do a sudo apt remove golang-go
if you have already installed via apt.