Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to a newer ruby/debug is failing without a clear error message #6

Open
eirvandelden opened this issue Apr 17, 2024 · 2 comments · May be fixed by #7
Open

Connecting to a newer ruby/debug is failing without a clear error message #6

eirvandelden opened this issue Apr 17, 2024 · 2 comments · May be fixed by #7

Comments

@eirvandelden
Copy link

eirvandelden commented Apr 17, 2024

Using nova-ruby/debug with Nova 11 appears to be broken.

Setup:

  • chruby as ruby version manager
  • ruby 3.3.0
  • Nova 11.9
  • rdbg 1.9.2
  • using Remote debugger task

Trying to connect to an open / listening rdbg session receives a The extension “Ruby Debug” experienced an error.
It works when connecting manually via rdbg -a.

I've already tried to use different versions of Nova, it does not appear to be an issue with the Nova version, but with a newer rdbg version?

@eirvandelden
Copy link
Author

eirvandelden commented Apr 19, 2024

Update; debugging using the source of this extensions led me to:

  • it is failing while verifying if there are any open sockets (helpers.js in resolveRubyDebugSocketPath). rdbg is failing with exit code 1, but without any message.
  • changing resolveRubyDebugSocketPath to args: ["ruby", "-v"], also fails with exit code 1
    • changing resolveRubyDebugSocketPath to args: ["which", "rdbg"], succeeds and outputs the path to stdOut.

@eirvandelden
Copy link
Author

eirvandelden commented Apr 19, 2024

Update:
If I change resolveRubyDebugSocketPath to not use a shell, (i.e. shell: false) it works again :O

@eirvandelden eirvandelden linked a pull request Apr 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant