Closed planarian closed 10 years ago
Hi,
I guess the process of discovering your ruby version couldnt be executed, since it found that you have ruby version '' (empty string).
If you will take a look at the file 'ruby_debugger_connector.py' it is trying to run the following command:
[[ -s \"$HOME/.rvm/scripts/rvm\" ]] 2> /dev/null ; source \"$HOME/.rvm/scripts/rvm\" 2> /dev/null; ruby "<sublime.packages_path()>/Ruby Debugger/ruby_version_discoverer.rb"
Try run this command at the terminal, but before you do it evaluate in the sublime command window your packages path (sumblibe.packages_path()).
Moreover can you please add here you edited ruby_version_discoverer.rb file?
Shuky
Hi Shuky,
Thank you for your prompt reply. I just realized that I'm using rbenv instead of rvm. For the ruby_version_discoverer.rb I simply filled in the version number:
puts 2.0.0p0
Is there a way I can tell your debugger to use rbenv instead?
Regards,
Jay
Actually I do support it, but it seems to have a tiny bug. If you take a look at the settings file, theres an option for giving the path to ruby executable, or choosing rvm/rbenv which automatically find the correct path.
The problem is that this settings does not apply for the ruby version checking, so I need to modify it.
I guess I will do it today, but you are more then welcome to pull request with this fix (the file name is ruby_debugger_connector).
I'd love to help, but after looking through ruby_debugger_connector.py it's clear that I don't have the skills. I will wait patiently :)
I committed a few minutes ago, it should be updated on Package Manger in a few hours, you can download menually from this repository (as described in the README).
Shuky
It works! I'm so happy, thank you!
On 10/20/2014 10:36 AM, Shuky Chen wrote:
I committed a few minutes ago, it should be updated on Package Manger in a few hours, you can download menually from this repository (as described in the README).
Shuky
— Reply to this email directly or view it on GitHub https://github.com/shuky19/sublime_debugger/issues/36#issuecomment-59767398.
I've just installed your Ruby debugger (in Sublime 3 on Linux) along with the debugger and byebug gems, and even though I'm running Ruby 2.0.0p0, it says "Ruby version: is not supported." Do you have any idea what might be wrong?
(I've tried editing ruby_version_discoverer.rb and also the package settings within Sublime)