Reputation: 118271
I got a good link jugyo / SublimeRubyEval
to run the code in the editor itself like IRB
. I have installed "RubyEval" using the ST2 package manger.
In my Preferences.sublime-settings, I put:
"ruby_eval": {
// "ruby": "/usr/local/bin/ruby"
"ruby": "~/.rvm/bin/ruby"
}
Now when I tried to run the code using super+k
, nothing happened. Any one help me for the same?
I am on Ubuntu13.04
Upvotes: 1
Views: 194
Reputation: 2304
It's not work for me neither.
sublime version is 2.0.2
check console find out (ctrl + `):
Traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./RubyEval.py", line 69, in run
File "./RubyEval.py", line 50, in eval_as_ruby
TypeError: str() takes at most 1 argument (2 given)
If you have same problem check https://github.com/jugyo/SublimeRubyEval/pull/8
I fixed it. works for me.
BTW: Use jugyo / SublimeRubyEval is easiest way to genrate some text (like repeat html) in the sublime edit view. Other things like SublimeREPL those are too heavy to do that.
Upvotes: 1
Reputation: 102862
I'd highly recommend using SublimeREPL instead. It uses pry
instead of IRB
, but it has a ton of features, support for many languages, is actively under development, has a large userbase, and most importantly a responsive main developer. It's available through Package Control and is one of my favorite ST2 plugins. You can't go wrong with it!
And no, I'm not the dev...
Upvotes: 0