efm-langserver
efm-langserver copied to clipboard
Improve doc for installation; the one-line go command doesn't work for me
I ran the command go install github.com/mattn/efm-langserver@latest
but I can't get it to work: there is no output and error. I'm not familiar with Go at all. Eventually I figured out a way to install it:
-
git clone https://github.com/mattn/efm-langserver.git
-
cd efm-langserver
-
make build
- move the bin
efm-langserver
to/usr/local
- the command
efm-langserver
should now work
Is this the only way to install it? If yes, I'll create a pull request to update the doc.
I had a similar problem because I installed go with asdf.
Alternative way is to download binary from releases and place it somewhere in the $PATH
. For example ~/.local/bin
is a good place. But again, make sure that ~/.local/bin
is in your $PATH
.
I believe on Windows/Mac it's the same story.
i use asdf
and i have go1.19.4 linux/amd64
go install github.com/mattn/efm-langserver@latest
does work in this version of go golang changes a lot between versions :thinking:
You need add ~/go/bin to the PATH environment variable.