-
Notifications
You must be signed in to change notification settings - Fork 130
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
Problem running extension in devcontainer. #1552
Comments
If the extension couldn't find Ruby, then the version manager activation probably failed. Are you using any version managers? |
Hi thanks for the reply. On the host I'm using asdf, and have it configured in Ruby LSP as default. When opening project without devcontainer it works fine. EDIT: Added info in first post, that console output is from the container shell. |
I'm not exactly sure how devcontainers work. I believe what's happening is that the Ruby LSP is trying to use the configuration manager (asdf) in the devcontainer, but it's not available there and then it fails. Is Ruby available by default in the container's path? Maybe you can try to use |
Ruby is available in the containers path ( I'm using official Ruby Docker Image ). I'm using none as version manager already ( in remove devcontainer ). Vscode allows to set different settings for devcontainer. When I try to change to asdf, inside devcontainer I got other error. I will try to find some more info about devcontainers. |
I think the official Remote extension could potentially be what you're looking for. My understanding is that it allows connecting to a remote machine / devcontainer and then VS Code just works as if it were running inside the remote machine. |
From what I understand this remote extension works for ssh only. I've tested latest version 0.2.4 and now I've got one less error. I assume work around ruby activation when none package manager is chosen fixed this. Now I have the same error as here: #1572 . So I'm closing this hoping fixing linked issue will make everything working in my case also. |
Refactor code actions to use context instead of our own cache
Hi
I'm using devcontainer, with Ruby LSP extension version 0.2.2. When starting I get following error:
Failed to activate none environment: Command failed: ruby --disable-gems -e 'puts "#{RUBY_VERSION},#{defined?(RubyVM::YJIT)}"' /bin/sh: ruby: not found
When I run new terminal window, inside container via devcontainer, I can execute this command without problem:
How can i debug it further ?
The text was updated successfully, but these errors were encountered: