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

Improve doc for installation; the one-line go command doesn't work for me

Open kohane27 opened this issue 2 years ago • 3 comments

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:

  1. git clone https://github.com/mattn/efm-langserver.git
  2. cd efm-langserver
  3. make build
  4. move the bin efm-langserver to /usr/local
  5. 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.

kohane27 avatar Apr 28 '22 09:04 kohane27

I had a similar problem because I installed go with asdf.

luisfscoelho avatar May 03 '22 18:05 luisfscoelho

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.

dzintars avatar May 31 '22 20:05 dzintars

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:

zachliu avatar Dec 12 '22 22:12 zachliu

You need add ~/go/bin to the PATH environment variable.

mattn avatar Mar 18 '24 14:03 mattn