When ever I try to run a Ruby script that uses:
gets.chomp
RubyMate gives me the error:
NoMethodError: private method â??chompâ?? called for [“test”]:Array
I can run this script when I go directly from the command line. It
justs seems that RubyMate has trouble accepting input.
On Aug 21, 2006, at 11:19 AM, He Fa wrote:
When ever I try to run a Ruby script that uses:
gets.chomp
RubyMate gives me the error:
NoMethodError: private method ?chomp? called for [“test”]:Array
I can run this script when I go directly from the command line. It
justs seems that RubyMate has trouble accepting input.
This was a bug in the dialog.rb support library used by RubyMate in
an older version of the command. It’s definitely fixed now, but I’m
not sure which versions of TextMate were affected.
If you are not using the latest version, try an upgrade first. If
that doesn’t work, you can checkout the current bundles from
Subversion to fix this:
http://macromates.com/textmate/manual/bundles#getting_more_bundles
James Edward G. II
Thanks, they must have removed the latest version. I had 1.5.3 and now
it’s down to 1.5.2
I know this is a bit old, but here’s a quick way I found on the TextMate
mailing list to re-enable this from inside TextMate:
http://lists.macromates.com/textmate/2010-November/031673.html
"Open a new TextMate document (⌘N) and paste in this line:
svn export
http://svn.textmate.org/trunk/Support/lib/tm_interactive_input.dylib
“$TM_SUPPORT_PATH/lib/tm_interactive_input.dylib”
With the caret on that line press ⌃R (Execute Line).
This will give you back the desired feature."