Search code examples
rubyvisual-studio-code

Ruby in VSCode, Couldn't find a workspace


I've started to learn how to use Ruby on VSCode, but I've never used VSCode before, I find it struggle to setup things Everytime I try to debug my code, there always will be an error "Couldn't find a workspace for URI: file:///c%3A/Users/Admin/Desktop/Ruby/RubyWS or editor: [object Object]" can someone help, thank you!

Learn how to use VSCode properly!


Solution

  • You need to make the ruby environment available in your local machine. Then you need to run the ruby. Also, you are trying to run the ruby by using the extension. which is not a good practise - not possible.