[TxMt] GTDAlt bundle and Ruby errors on 10.5

Mark Sittig mpsittig at sfsu.edu
Thu Nov 8 02:28:14 UTC 2007


Hi all,

 From a previous e-mail, I wrote about my problems with the GTDAlt  
bundle. Specifically, I had an issue with dates being created properly  
since upgrading to OS X 10.5. It seems as though Ruby 1.8 (included  
with 10.5) included a slightly modified version of format.rb,  
resulting in the following error:

> --code--
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 
> 1.8/date/format.rb:230:in /bin/bash: -c: line 0: unexpected EOF  
> while looking for matching `''
> /bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
> 	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ 
> ruby/1.8/date/format.rb:201:in /bin/bash: -c: line 0: unexpected EOF  
> while looking for matching `''
> /bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
> 	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ 
> ruby/1.8/date.rb:1343:in
>
> --code--

The header of the Leopard version of format.rb reads as follows:

# format.rb: Written by Tadayoshi Funaba 1999-2007
# $Id: format.rb,v 2.30 2007-01-07 09:16:24+09 tadf Exp $


Whereas the version included with Tiger (10.4.10) reads:

# format.rb: Written by Tadayoshi Funaba 1999-2004
# $Id: format.rb,v 2.14 2004-11-06 10:58:40+09 tadf Exp $

I ended up replacing the newer format.rb with the older copy as I  
don't really do anything that requires the newest ruby. I thought this  
might be of interest to those using Leopard and the GTDAlt bundle.  
While this is certainly not a long-term fix, it may work for those who  
don't need the latest version of format.rb for their other projects.

Regards,
Mark



More information about the textmate mailing list