-
I've had Ruby 3.3.1 installed using other editors and decided to give Visual Studio Code a try. I installed the Ruby LSP extension but when I try to run/deug code it gives me this error: Couldn't find a workspace for URI: file:///c%3A/Users/me/nameoffolder or editor: [object Object] I have been trying to fix this for a while now and can't seem to get it to work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Does your project have a |
Beta Was this translation helpful? Give feedback.
-
The Ruby LSP currently only supports debugging files that are within a VS Code workspace folder. What that message says is that the document you are trying to debug couldn't be associated with any of the workspace folders currently opened in the editor. Is the file you want to debug an independent script? Where are you opening VS Code in respect to that file? |
Beta Was this translation helpful? Give feedback.
It turned out to be more than one thing. I wasn't opening the folder like you said -- I was opening the file directly. It also turned out that my gemfile had issues and needed to be rebuilt. Now it shows Ruby LSP is running in the lower right corner. Now I just need to figure out how to get it to run the script and see the output. Thanks for the help!