[TxMt] Ruby 1.9

Rick DeNatale rick.denatale at gmail.com
Wed Dec 26 23:14:18 UTC 2007

On Dec 26, 2007 3:35 PM, Jeff LaMarche <jeff_lamarche at mac.com> wrote:
> Greetings all. Been using TextMate for quite some time, but never had
> a problem before now. Allan Odgaard suggested I post this to the list.
> I installed Ruby 1.9 this morning by doing a source install from the
> release tarball. I had to manually update the readline library and I
> also had to change my path so that /usr/local/lib is read before /usr/
> lib because of the libreadline.dylib that is contained there.
> I can run Ruby 1.9 programs from the command line just fine, but if I
> try to use command-R to run them from inside TextMate, I get:
> ------------------ BEGIN ERROR MESSAGE -----------------
> /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> scriptmate.rb:4:in `require': /Applications/TextMate.app/Contents/
> SharedSupport/Support/lib/io.rb:40: syntax error, unexpected ':',
> expecting keyword_then or ',' or ';' or '\n' (SyntaxError) when 1:

Ruby 1.9 is really a new language and is NOT a drop-in replacement for Ruby 1.8.

There are some incompatibilities in syntax, and you are running into
one of those.

You need to get your 1.8 installation back, and install 1.9 after
giving it a name suffix, e.g.

$ ./configure --program-suffix=1.9

to generate a make file which will give you executables with names
like ruby1.9 irb1.9 etc.

That will let you have Ruby 1.9 installed and still let Textmate work
when it uses internal ruby code.

Getting Ruby1.9 to execute under TextMate is another story.

I'm sure that it won't be long before James Gray or someone with more
textmate knowledge than I starts working on proper textmate support
for 1.9.

Rick DeNatale

My blog on Ruby

More information about the textmate mailing list