-
Notifications
You must be signed in to change notification settings - Fork 52
Conversation
This gets the initialization process further in, but it eventually fails with the following message in the developer console:
Most typical shells on Windows don't support the |
c098715
to
9eb2e21
Compare
@blm768 thank you for helping verify this. I appreciate the assistance! The latest commit moves |
That gets it into a new restart loop. It doesn't give much in the way of helpful error messages, but this might be relevant:
|
Windows doesn't play well with `ENV_VAR=123 command`. We should always prefer to pass the `env` key instead
9eb2e21
to
0290113
Compare
I think we're almost there. Thank you again for your assistance testing this out. If it reached the error restart loop, then it might be related to some of the recent bugs that are fixed in If it still doesn't work after the rebase, then could you please try to boot the server manually and report any issues? To do that
|
Looks like |
Thank you for testing it. I put up a PR to fix that and I hope that after shipping both PRs, it will work properly on Windows. |
Looks like after the other PR, I'm getting the following in the extension debugging host's Debug Console:
I then get a number of additional "Client is not running" errors with the state set to I'm not sure how we're getting into |
This PR also fixes the issues with spaces in the path to the Gemfile, I was trying to solve in #716. Just tested on macOS and it works as expected. |
Merging this as I believe these were the last bits from the extension. The rest of the work is on the server and ongoing. |
Motivation
Closes Shopify/ruby-lsp#1586
According to the explorations reported in the issue, Windows seems to need two things
shell: true
in the LSP executable. This doesn't seem to make any difference for MacOS or Linuxthis.shell
Implementation
Added
shell: true
and avoided adding the single quotes ifthis.shell
is not defined.Manual Tests
On Windows,
Run and Debug
and click the launch button)Output
tab in the window where the Ruby project is opened and check for aRuby LSP is ready
message