Open rnorbauer opened 1 year ago
I am, incidentally, running everything on Github Codespaces and attaching to it remotely in desktop VS Code. If I run the "Debug the current file with rdbg" config instead and type bin rails s at the command line, everything works and I don't see this dialog.
Sorry I don't know "Github Codespaces" well. Could you tell me your environments? My understanding is "Github Codespaces" is computing environment with IDE on the cloud. You wrote "remotely in desktop VS Code" so it seems you are running VSCode on your local computer.
My understanding:
Do you install Ruby binaries on your local side?
Hi there. I'm having the same problem.
It seems to me that VSCode is simply acting as a client, and all the actual execution of terminals and such is done on the remote side, so not having Ruby installed on the local side shouldn't be a problem.
@ryush00 ➜ /workspace (ruby-3.1-upgrade) $ which ruby
/usr/local/bin/ruby
Typically, Ruby development in Codespaces uses this docker devcontainer ruby image.
https://mcr.microsoft.com/en-us/product/devcontainers/ruby/about
This image has Ruby installed by default in /user/local/bin/ruby, and not via rbenv.
@ryush00 ➜ /workspace (ruby-3.1-upgrade) $ rbenv versions
rbenv: version `3.1.4' is not installed (set by /workspace/.ruby-version)
system
@ryush00 ➜ /workspace (ruby-3.1-upgrade) $ ruby -v
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]
So running the line below seems to cause that error.
https://github.com/ruby/vscode-rdbg/blob/master/src/extension.ts#L382
I am using the standard
launch.json
With this first line in my
Procfile.dev
(loaded bybin/dev
)When I run![image](https://user-images.githubusercontent.com/86281/206055844-01d50a77-2f46-4089-8c6f-c21bf219639d.png)
bin/dev
, hit a breakpoint, and attempt to attach, however, I get this error:Is this dialog being generated by the vscode-rdbg plugin or being passed along from some underlying other utility?
This value appears to be come directly from
.ruby-version
at my root directory, since if I change that file's value then whatever is set there is the version that the dialog box will mention and say it can't find.The issue, of course, is that I do indeed have 3.1.3 installed.![image](https://user-images.githubusercontent.com/86281/206056260-dac6ff9f-0eb7-4056-8c10-3553c1f3d8e7.png)
I am, incidentally, running everything on Github Codespaces and attaching to it remotely in desktop VS Code. If I run the "Debug the current file with rdbg" config instead and type
bin rails s
at the command line, everything works and I don't see this dialog.So I'm not sure how to go about addressing this issue. Any help would be greatly appreciated.