-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start LSP Server #1485
Comments
Can you provide more context? Do you have the |
@vinistock I already install |
We currently only support The LSP should work properly once the issue is completed. |
EDIT: It seems auto-completion isn't supported without Sorbet: #61 And I'm guessing the same is true for documentation pop-ups on hover, etc. Code formatting and diagnostics (e.g. syntax errors) are working though! Leaving my original comment in case it helps anyone else that ends up here via their favorite search engine: @vinistock In the interim, could you provide some guidance on what's required in the (provide "ruby" "2.7.5")
(when-let ((ruby-root (env/get "RUBY_ROOT")))
(env/remove-from-pathlist "PATH" (path-concat ruby-root "bin"))
(when-let ((gem-root (env/get "GEM_ROOT")))
(env/remove-from-pathlist "PATH" (path-concat gem-root "bin")))
(when-let ((gem-home (env/get "GEM_HOME")))
(env/remove-from-pathlist "PATH" (path-concat gem-home "bin"))))
(env/set "GEM_PATH" ())
(env/set "GEM_HOME" ())
(env/set "RUBYOPT" ())
(env/set "RUBY_ROOT" (path-concat (env/get "HOME") ".rvm/rubies/ruby-2.7.5"))
(env/prepend-to-pathlist "PATH" (path-concat (env/get "RUBY_ROOT") "bin"))
(env/set "RUBY_ENGINE" "ruby")
(env/set "RUBY_VERSION" "2.7.5")
(env/set "GEM_ROOT" (path-concat (env/get "HOME") ".rvm/rubies/ruby-2.7.5/lib/ruby/gems/2.7.0"))
(when-let ((gem-root (env/get "GEM_ROOT")))
(env/prepend-to-pathlist "GEM_PATH" gem-root)
(env/prepend-to-pathlist "PATH" (path-concat gem-root "bin")))
(let ((gem-home
(path-concat (env/get "HOME") ".rvm/gems/ruby-2.7.5@recommendation-service")))
(do
(env/set "GEM_HOME" gem-home)
(env/prepend-to-pathlist "GEM_PATH" gem-home)
(env/prepend-to-pathlist "PATH" (path-concat gem-home "bin")))) And the The only messages I see in VSCode's "Ruby LSP" OUTPUT tab is:
|
@cstrahan-blueshift indeed the features you mentioned aren't supported without Sorbet. Implementing them accurately requires type checking, which the Ruby LSP does not do. Based on the output in VS Code, the Ruby LSP seems to be working properly. We have ideas on how to implement a more naive approach to things like go to definition, hover, signature help and autocompletion, based on simple indexing and name matching, but we haven't gotten to explore them yet. The issues are in our roadmap. |
@cstrahan-blueshift How to install shadowenv on windows? |
Include the last line in folding ranges
"> Ruby LSP: Start"
The text was updated successfully, but these errors were encountered: