Vscode-ruby: Ruby usually missing from debug add configuration

Created on 19 Jan 2019  路  4Comments  路  Source: rubyide/vscode-ruby

Your environment

  • vscode-ruby version: 0.19.1
  • Ruby version: 2.6.0
  • Ruby version manager (if any): chruby 0.3.9
  • VS Code version: 1.30.2
  • Operating System: Ubuntu 18.10
  • Using language server? yes

Expected behavior

When I open the debugger sidebar and select "add configuration" "Ruby" should be a listed as an option.

Actual behavior

When I go to add a configuration, "ruby" is not a listed environment. I've seen "Ruby" as an available selection for a few minutes earlier today and it's been there in previous weeks. I opened Code's developer tools and I didn't see any errors that looked related (there are errors from git and setting sync sometimes).

screenshot from 2019-01-19 13-08-59

stale

Most helpful comment

I just had this problem, but it was (my) own user error. I didn't have a ruby file open in the editor, and unless I did it wouldn't show the ruby environment. Maybe this helps someone else.

All 4 comments

I have the same problem but I haven't seen Ruby as available environment at all since installing it in VS Code. Again there are no errors in Problems window.
Windows 10 1809
Ruby 2.6.0p0 (2018-12-25 revision 66547) [x64-mingw32]
VS Code 1.30.2

Same issue, ruby not showing. Though got it working... see below

image

Hit "more" and takes me to an Extensions Marketplace panel with "tag:debuggers @sort:installs" preset.... but I have Ruby extension installed.
image

Uninstalled all extensions locally except "Remote - WSL". Then re-added extensions required (see https://www.endpoint.com/blog/2019/04/04/rails-development-in-windows-10-pro-with-visual-studio-code-and-wsl)... at least Ruby... but made sure I selected "install WSL Remote" button, not "Install". Did the reloads, but didn't help. Rebooted machine, then reopened VSCode and found the "Ruby" option shows in the New Configuration options.
Hope that helps.

I just had this problem, but it was (my) own user error. I didn't have a ruby file open in the editor, and unless I did it wouldn't show the ruby environment. Maybe this helps someone else.

This issue has not had activity for 30 days. It will be automatically closed in 7 days.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ckruse picture ckruse  路  5Comments

ecbrodie picture ecbrodie  路  5Comments

resistorsoftware picture resistorsoftware  路  3Comments

pelletencate picture pelletencate  路  5Comments

epk picture epk  路  5Comments