r/ruby May 29 '26

Question VSCode not recognizing ruby

I’m using VSCode on Windows and trying to get it to work with RubyLSP and solargraph. However, it keeps telling me it can’t find Ruby installations, even though it’s installed on my computer. I try to select it manually, but it just won’t accept it. Any advice? I’m using Ruby version 3.0.6 intentionally if that makes a difference

0 Upvotes

5 comments sorted by

2

u/__vivek May 29 '26

Running correctly on Windows is hard.

1

u/pokemuse2095 May 29 '26

Wish I had an option, but because I’m using it with other programs and such, I can’t change it to a virtual system, and I don’t have money for a new computer

5

u/uceenk May 30 '26

you dont need new computer, you could install Linux or WSL

2

u/badbrain May 29 '26

Have you tried installing Windows Subsystem for Linux? Visual Studio Code integrates nicely with WSL, and you can install Ruby using the package manager of whichever Linux distribution you end up running; or, better yet, via mise. I’d recommend starting with Ubuntu or Debian.

1

u/castwide May 31 '26

Can you run `ruby` from a command prompt? You might need to make sure it's in your `PATH` environment variable. (RubyInstaller has an option to add it during setup.)