Hi
The updated TODO works very nicely on osX 10.4 (my computer at home). However, at work im using osX 10.3.9 (still waiting for the upgrade!). I updated the bundles this morning and now when I run TODO I get:
/Library/Application Support/TextMate/Support/lib/textmate.rb:3:in `require': No such file to load -- set (LoadError) from /Library/Application Support/TextMate/Support/lib/textmate.rb:3 from /tmp/ temp_textmate.3IDEea:3:in `require' from /tmp/temp_textmate.3IDEea:3
Anyone got any ideas?
Stephen
On 27/2/2006, at 14:32, stephen hamilton wrote:
However, at work im using osX 10.3.9 (still waiting for the upgrade!). I updated the bundles this morning and now when I run TODO I get: [...]
I forgot to make the code Ruby 1.6 safe (it calls match on string) -- but the error quoted sounds like there is (also) no Set in Ruby 1.6, could you try this from the shell:
ruby -rset -e 'p :dummy'
And tell if it gives an error?
Allan Odgaard <throw-away-1@...> writes:
I forgot to make the code Ruby 1.6 safe (it calls match on string) -- but the error quoted sounds like there is (also) no Set in Ruby 1.6, could you try this from the shell:
ruby -rset -e 'p :dummy'
And tell if it gives an error?
Hi Allan
I actually remembered having a ruby problem with diff a few months back and so had already upgraded ruby via darwinports. I'm now runing ruby @1.8.4_1.
I tried your suggestion (ruby -rset -e 'p :dummy') and got:
ruby: No such file to load -- set (LoadError)
Does this help?
On 27/2/2006, at 15:22, Stephen Hamilton wrote:
I actually remembered having a ruby problem with diff a few months back and so had already upgraded ruby via darwinports. I'm now runing ruby @1.8.4_1.
One thing is to install Ruby 1.8, another is to setup the PATH so that the system will find 1.8 first.
When running scripts via shebang, TM uses the PATH inherited from Finder, which won’t include where DP store binaries. For these to use 1.8 you will need to edit the ~/.MacOSX/environment.plist file as described in [1] (and put the DP location first).
However, we generally try to make the commands work with Ruby 1.6. I updated the command to not make use of the Set class and also do regexp matching differently, which should hopefully make it work for 1.6.
Let me know if you continue to have a problem.
[1] http://macromates.com/textmate/manual/shell_commands#search_path
Allan Odgaard <throw-away-1@...> writes:
< snip>
However, we generally try to make the commands work with Ruby 1.6. I updated the command to not make use of the Set class and also do regexp matching differently, which should hopefully make it work for 1.6.
Let me know if you continue to have a problem. [1] http://macromates.com/textmate/manual/shell_commands#search_path
Hi Allan
Sorry I haven't got back sooner - deadlines looming at work and had to ignore this. I deactivated ruby 1.8. (haven't got time to fiddle around with ~/.MacOSX/environment.plist)
$Path seems fine. In textmate I get: ruby --version ruby 1.6.8 (2002-12-24) [powerpc-darwin7.0]
However, your suggestion still gives: ruby -rset -e 'p :dummy' ruby: No such file to load -- set (LoadError)
The TODO error is slightly different now:
/tmp/temp_textmate.FmPAB0:4:in `require': No such file to load -- erb (LoadError) from /tmp/temp_textmate.FmPAB0:4
On 28/2/2006, at 18:38, Stephen Hamilton wrote:
However, your suggestion still gives: ruby -rset -e 'p :dummy' ruby: No such file to load -- set (LoadError)
This one should fail -- set isn’t included with Ruby 1.6, so I had to rewrite the code to not use set.
The TODO error is slightly different now:
/tmp/temp_textmate.FmPAB0:4:in `require': No such file to load -- erb (LoadError) from /tmp/temp_textmate.FmPAB0:4
Arg… and it would seem erb is also not part of Ruby 1.6.
Well, I am afraid the TODO will have to be Ruby 1.8 (i.e. Tiger or custom install of Ruby), cause this isn’t easy to replace -- easiest would be just to include erb in the Support/lib folder, but I don’t know how much is to erb though.
Well, I am afraid the TODO will have to be Ruby 1.8 (i.e. Tiger or custom install of Ruby), cause this isn’t easy to replace -- easiest would be just to include erb in the Support/lib folder, but I don’t know how much is to erb though.
Oh, I'm sorry for this. This was actually one of the first things I have done with ruby and when I discussed it with Allan shortly in IRC using ERB seemed a good idea because it separated the html template from the actual source.
If you delete the bundle by hand though (and ignore it at svn checkouts) you can still use the old command which is included in TextMate 1.5
Soryu.
Allan Odgaard <throw-away-1@...> writes: Arg… and it would seem erb is also not part of Ruby 1.6.
Well, I am afraid the TODO will have to be Ruby 1.8 (i.e. Tiger or custom install of Ruby), cause this isn’t easy to replace -- easiest would be just to include erb in the Support/lib folder, but I don’t know how much is to erb though.
Thanks Allan
ReActivated Ruby Via terminal created ~/.MacOSX With PropertyListEditor created environment.plist
Root - Dictionary - 1 key/value pair PATH - String - /opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Copied to .MacOSX. Re-logged in to user account. And it works like a charm. I'm just posting this incase anyone else has same problem. Info here:
[1] http://macromates.com/textmate/manual/shell_commands#search_path