RubyMate (TextMate) issue

H

He Fa

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.
 
J

James Edward Gray II

When ever I try to run a Ruby script that uses:

gets.chomp

RubyMate gives me the error:

NoMethodError: private method =91chomp=92 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 =20
an older version of the command. It's definitely fixed now, but I'm =20
not sure which versions of TextMate were affected.

If you are not using the latest version, try an upgrade first. If =20
that doesn't work, you can checkout the current bundles from =20
Subversion to fix this:

http://macromates.com/textmate/manual/bundles#getting_more_bundles

James Edward Gray II
 
H

He Fa

Thanks, they must have removed the latest version. I had 1.5.3 and now
it's down to 1.5.2
 
M

Mike M.

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 (=E2=8C=98N) 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 =E2=8C=83R (Execute Line).

This will give you back the desired feature."

-- =

Posted via http://www.ruby-forum.com/.=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,365
Latest member
BurtonMeec

Latest Threads

Top