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

Failed to activate rvm environment #1862

Open
onwardmk opened this issue Apr 2, 2024 · 1 comment
Open

Failed to activate rvm environment #1862

onwardmk opened this issue Apr 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@onwardmk
Copy link

onwardmk commented Apr 2, 2024

Description

I've been using the Ruby LSP vscode extension for about a year without any issues.

Today I started seeing the error message below when I launch vscode. I'm launching vscode from the terminal with the code . command.

Failed to activate rvm environment: Command failed: /home/onwardmk/.rvm/bin/rvm-auto-ruby -W0 -rjson -e 'STDERR.print({yjit:!!defined?(RubyVM::YJIT),version:RUBY_VERSION,home:Gem.user_dir,default:Gem.default_dir,ruby:RbConfig.ruby}.to_json)' /bin/sh: 1: /home/onwardmk/.rvm/bin/rvm-auto-ruby: not found

Based on the error message, the problem appears to be that it's looking for rvm in my home folder, but rvm is installed in /usr/share/rvm on my machine. I don't see a vscode setting to specify the path.

vscode version: 1.87.2
Ruby LSP version: v0.5.16
rvm version: 1.29.12

@onwardmk onwardmk added the bug Something isn't working label Apr 2, 2024
@joennlae
Copy link

joennlae commented Apr 2, 2024

I have the same issue +1

Reference here:

`${path.join(os.homedir(), ".rvm", "bin", "rvm-auto-ruby")} -W0 -rjson -e '${activationScript}'`,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants