-
Notifications
You must be signed in to change notification settings - Fork 26
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
Ruby LSP Rails failed to initialize server #452
Comments
Thank you for the bug report! The backtrace seems to be incomplete for whatever reason, so it's hard to tell what's going on without the error message. I do see that you're on v0.3.11 of |
Yeah the incompleteness is also what's throwing me off - I have no idea where to look for the problem. I've tried updating to the latest, but still getting the same error:
|
Yeah, it's really hard to tell without the full trace (and I'm not sure why it's only printed the partial trace). If you have time, trying to launch the runtime server manually might help us figure out what's wrong. Essentially, you just need to execute the server with rails runner, which should hopefully break in the same way and print the full trace:
bin/rails runner /path/to/gems/ruby-lsp-rails-0.3.15/lib/ruby_lsp/ruby_lsp_rails/server.rb start |
Hi, sorry it took a while to get back to this! I've tried your suggestions:
Probably doing something wrong, since I don't expect that to be the actual error. Posting here just in case it does explain something - but will revisit next week to try and actually run it to get logging/stacktrace of error. |
You need to specify the path to the bin/rails runner "/Users/steven/.asdf/installs/ruby/3.2.5/lib/ruby/gems/3.2.0/gems/ruby-lsp-rails-0.3.15/lib/ruby_lsp/ruby_lsp_rails/server.rb" start |
Sorry for not coming back to this - a colleague of mine went down the rabbithole and figured out that it was not starting properly due to customised rails bin stubs that we use. Apologies and thanks for the help! |
I've installed
ruby-lsp
and successfully using that using the Ruby LSP VSCode extension, however Ruby LSP Rails fails to initialize its server with the following error:Any ideas on why or what I could do to fix it?
The text was updated successfully, but these errors were encountered: