Problems Launching Language Server #517
Replies: 2 comments 3 replies
-
Are you on a Mac? From the manual:
Otherwise using the full path to the |
Beta Was this translation helpful? Give feedback.
-
You can use something like See if ruby-lsp has a log file somewhere. That might shed light on why it's not starting up if Textadept can see it. |
Beta Was this translation helpful? Give feedback.
-
I'm attempting to try out the newish lsp functionality in Textadept but having problems getting it to launch the LSP. I'm specifically looking to use the
ruby-lsp
.My first (probably naive) attempt is:
When I review the LSP logs I see:
From this discussion this maybe means it didn't boot the LSP server.
I'm not really sure the best way to debug this, but my hunch is because
ruby-lsp
is not globally installed. I use asdf to manage various languages and language versions so there isn't a global installation of Ruby. There are many installations of Ruby and my shell switches between them based on the current working directory, etc. So my next thought was to try running it through the shell updating my config to look like:No luck.
Thought maybe it needs the
-i
flag to force it to be interactive so that.zshrc
is read and asdf is setup so also tried:Still no luck. Any suggestions on how to resolve this. I'm not even 100% sure it due to asdf but it's my best guess.
Followup. I am getting luck with solargraph, an older Ruby LSP. This probably means the asdf is a red herring since I just booted solargraph with
solargraph stdio
as the command (no zsh wrap or anything). Still doesn't tell me why ruby_lsp doesn't work. I saw you only support stdio but then verified that ruby_lsp is build on a library that also only supports stdio so that should not be the problem.Beta Was this translation helpful? Give feedback.
All reactions