Skip to content
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 failed to initialize #546

Open
Anirudh2011 opened this issue Dec 13, 2024 · 0 comments
Open

Ruby Lsp failed to initialize #546

Anirudh2011 opened this issue Dec 13, 2024 · 0 comments

Comments

@Anirudh2011
Copy link

I'm using ruby 3.2.1 in my project and ruby-lsp fails to initialize

In my Gemfile

gem 'sorbet-runtime', '~> 0.5.11691'
gem 'ruby-lsp'
gem 'ruby-lsp-rails', '~> 0.3.26'

but when I run ruby-lsp on terminal, the error I'm getting is

<internal:/Users/anirudh/.rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- sorbet-runtime (LoadError)
        from <internal:/Users/anirudh/.rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from /Users/anirudh/.rvm/gems/ruby-3.2.1@rails-backend-server/gems/ruby-lsp-0.22.1/lib/ruby_lsp/setup_bundler.rb:4:in `<top (required)>'
        from /Users/anirudh/.rvm/gems/ruby-3.2.1@rails-backend-server/gems/ruby-lsp-0.22.1/exe/ruby-lsp:72:in `require_relative'
        from /Users/anirudh/.rvm/gems/ruby-3.2.1@rails-backend-server/gems/ruby-lsp-0.22.1/exe/ruby-lsp:72:in `<top (required)>'
        from /Users/anirudh/.rvm/gems/ruby-3.2.1@rails-backend-server/bin/ruby-lsp:25:in `load'
        from /Users/anirudh/.rvm/gems/ruby-3.2.1@rails-backend-server/bin/ruby-lsp:25:in `<main>'
        from /Users/anirudh/.rvm/gems/ruby-3.2.1@rails-backend-server/bin/ruby_executable_hooks:22:in `eval'
        from /Users/anirudh/.rvm/gems/ruby-3.2.1@rails-backend-server/bin/ruby_executable_hooks:22:in `<main>'

Can anyone help with this please, I'm not able to navigate and use git in my project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant