mattn / efm-langserver

General purpose Language Server
MIT License
1.34k stars 61 forks source link

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

Open seriiserii825 opened 2 years ago

seriiserii825 commented 2 years ago

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](https://www.foxinfotech.in/2022/04/compare-text-online-compare-and-merge-text-online.html)

ascandella commented 2 years ago

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

TamaMcGlinn commented 2 years ago

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.