Has anyone experienced this. Im running Textmate 1.5 (v906) with rev 2643 checkout of bundles. Tidy used to work fine but I now get:
-e:5: undefined method `match' for #String:0xc5dd0 (NameError)
when I use it. Anyone got any ideas?
TIA
Stephen
On 1/2/2006, at 11:44, stephen hamilton wrote:
Has anyone experienced this. Im running Textmate 1.5 (v906) with rev 2643 checkout of bundles. Tidy used to work fine but I now get:
-e:5: undefined method `match' for #String:0xc5dd0 (NameError)
when I use it. Anyone got any ideas?
This is from the (ruby) post-processing (to convert spaces back to tabs, except for pre blocks).
Are you on Tiger or Panther (i.e. Ruby 1.8/1.6)? And does this happen for all documents? e.g. try New Document, change language to HTML, type a word and ctrl-shift H (for Tidy).
On 01/02/2006, at 15:24, Allan Odgaard wrote:
On 1/2/2006, at 11:44, stephen hamilton wrote:
Has anyone experienced this. Im running Textmate 1.5 (v906) with rev 2643 checkout of bundles. Tidy used to work fine but I now get:
-e:5: undefined method `match' for #String:0xc5dd0 (NameError)
when I use it. Anyone got any ideas?
This is from the (ruby) post-processing (to convert spaces back to tabs, except for pre blocks). Are you on Tiger or Panther (i.e. Ruby 1.8/1.6)? And does this happen for all documents? e.g. try New Document, change language to HTML, type a word and ctrl-shift H (for Tidy).
Yes, because String::match is a ruby 1.8 method. " str.match(xxx) " can be changed to the 1.6-safe " Regex.new(str).match(xxx) " (or / str/.match(xxx) if str is a constant).
-- Sune.
You are a star - that fixes it :-D
I'm on Panther at work btw - still waiting for accounts to sort out the Tiger upgrade for our department.
On 01/02/06, Allan Odgaard throw-away-1@macromates.com wrote:
I made the change -- let me know if it still fails (Stephen).