efm-langserver icon indicating copy to clipboard operation
efm-langserver copied to clipboard

Can only use path@version syntax with 'go get'?

Open seriiserii825 opened this issue 2 years ago • 2 comments

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?

Alt text

seriiserii825 avatar May 09 '22 06:05 seriiserii825

What version of Go are you on? I believe this error occurs for older installations. Try updating to 1.17 or later

ascandella avatar May 12 '22 00:05 ascandella

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.

TamaMcGlinn avatar Jul 15 '22 21:07 TamaMcGlinn