mattn / efm-langserver

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

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

Closed kohane27 closed 5 months ago

kohane27 commented 2 years ago

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.

luisfscoelho commented 2 years ago

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

dzintars commented 2 years ago

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.

zachliu commented 1 year ago

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:

mattn commented 5 months ago

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