Currently the TODO Bundle is giving me this message. I've searched the list and tried solutions given on page:
http://manual.macromates.com/en/bundles#support_folder.html
but got stuck at par. 5.7.4
In Terminal:
echo "$TM_SUPPORT_PATH"
Doesn't give any result at all. Can anyone explain what I've done wrong?
Thanks, Gert
Ruby: 1.8.7. Textmate: 1.5.9 (1589) OS X: 10.6.2
On Nov 26, 2009, at 4:53 PM, Gert van Oss wrote:
In Terminal:
echo "$TM_SUPPORT_PATH"
Doesn't give any result at all. Can anyone explain what I've done wrong?
Generally speaking, TM_ variables only exist inside TextMate. Terminal sessions won’t have these. Paste that line into a blank document in TextMate and hit ⌃R to execute it. (Make sure the cursor is on the same line as the `echo` command.) You should see the path appear on the line below.
On 27 nov 2009, at 16:25, Rob McBroom wrote:
On Nov 26, 2009, at 4:53 PM, Gert van Oss wrote:
In Terminal:
echo "$TM_SUPPORT_PATH"
Doesn't give any result at all. Can anyone explain what I've done wrong?
Generally speaking, TM_ variables only exist inside TextMate. Terminal sessions won’t have these. Paste that line into a blank document in TextMate and hit ⌃R to execute it. (Make sure the cursor is on the same line as the `echo` command.) You should see the path appear on the line below.
-- Rob McBroom
This gives me:
$TM_SUPPORT_PATH /bin/bash: /Applications/TextMate.app/Contents/SharedSupport/Support: is a directory
On Nov 27, 2009, at 10:33 AM, Gert van Oss wrote:
This gives me:
$TM_SUPPORT_PATH /bin/bash: /Applications/TextMate.app/Contents/SharedSupport/Support: is a directory
You didn’t put `echo` before the variable name, so it was trying to “execute” the variable instead of displaying its value. But I suppose you have your answer either way: /Applications/TextMate.app/Contents/SharedSupport/Support
You didn’t put `echo` before the variable name, so it was trying to “execute” the variable instead of displaying its value. But I suppose you have your answer either way: /Applications/TextMate.app/Contents/SharedSupport/Support
-- Rob McBroom
ok, thanks I see. But reading the para. 5.4.7 on http://manual.macromates.com/en/bundles#support_folder.html it should be
/Library/Application Support/TextMate/Support
Or have I misunderstood. How to change this, if necesarry?
On 26 Nov 2009, at 22:53, Gert van Oss wrote:
Currently the TODO Bundle is giving me this message.
Is that all it gives you? No line number or anything?
I've searched the list and tried solutions given on page:
I am not sure how that is relevant, instead see the pages at http://wiki.macromates.com/Troubleshooting/
On 29 nov 2009, at 10:00, Allan Odgaard wrote:
On 26 Nov 2009, at 22:53, Gert van Oss wrote:
Currently the TODO Bundle is giving me this message.
Is that all it gives you? No line number or anything?
No indeed this is not all that appears. Maybe the info below (from CTRL-SHFT-T with active file saved on Desktop) can shine some light on the issue? Scanning directory: ~/Desktop
(erb):4: undefined method `+' for nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:99 from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/erb.rb:750:in `grep' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `each' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `grep' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77 from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76:in `open' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76 from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75:in `each' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75 from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:201:in `call' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:201:in `each_text_file' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:71
I've searched the list and tried solutions given on page:
I am not sure how that is relevant, instead see the pages at http://wiki.macromates.com/Troubleshooting/
I've tried many things including removing the Bundels folder /Library/Application Support/TextMate/Bundles. Choosing Bundles → Bundle Editor → Reload Bundles doesn't make the folder Bundles appear again. Though the Latex Bundle and many others work but not TODO.
Thanks, Gert
Hi,
sorry, I didn't follow the entire thread, but a colleague of mine has the same problem. I installed TODO from the GitHub (because it's newer), updated the Support Folder (both via GetBundles), and for me it works.
Since I have also some other problems with Ruby versions, I have two tiny questions:
1) Please type that line into a new and empty TM doc:
/usr/bin/env ruby -v;echo ":$RUBYLIB:";echo ":$TM_RUBY"
and leave the cursor in that line and press CTRL+R.
2) Please execute in the Terminal.app the following line: `which ruby` -v
What do you get?
Thanks in advance,
--Hans
PS: I get on MacOSX 10.6.2 & TM 1.5.9 (1589):
1) ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] :/Users/bibiko/Library/Application Support/TextMate/Pristine Copy/Support/lib: ::
2) ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
On 29 nov 2009, at 21:14, Hans-Jörg Bibiko wrote:
Hi,
sorry, I didn't follow the entire thread, but a colleague of mine has the same problem. I installed TODO from the GitHub (because it's newer), updated the Support Folder (both via GetBundles), and for me it works.
I'm not into Git (yet). Below the result of the commands.
Since I have also some other problems with Ruby versions, I have two tiny questions:
Please type that line into a new and empty TM doc:
/usr/bin/env ruby -v;echo ":$RUBYLIB:";echo ":$TM_RUBY"
/usr/bin/env ruby -v;echo ":$RUBYLIB:";echo ":$TM_RUBY" ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] :/Applications/TextMate.app/Contents/SharedSupport/Support/lib: :
Please execute in the Terminal.app the following line: `which ruby` -v
In Terminal, ruby -v or, `which ruby` -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
Thanks, Gert
On 29 Nov 2009, at 20:18, Gert van Oss wrote:
[...] No indeed this is not all that appears. Maybe the info below (from CTRL-SHFT-T with active file saved on Desktop) can shine some light on the issue?
It seems that you are on Tiger but have a custom install of ruby, correct?
The TODO bundle uses ERb which does not work by default on Tiger, so you need to set TM_RUBY (in Preferences → Advanced → Shell Variables) to the custom installed ruby version (where you should have ERb available).
On 30 nov 2009, at 00:02, Allan Odgaard wrote:
On 29 Nov 2009, at 20:18, Gert van Oss wrote:
[...] No indeed this is not all that appears. Maybe the info below (from CTRL-SHFT-T with active file saved on Desktop) can shine some light on the issue?
It seems that you are on Tiger but have a custom install of ruby, correct?
I'm on Snow Leopard: 10.6.2 Never touch ruby so I would be surprised if there's a custom install. Maybe I'll do a custom install (http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leop...) and refer to that?
On 30 Nov 2009, at 08:13, Gert van Oss wrote:
[...] I'm on Snow Leopard: 10.6.2 Never touch ruby so I would be surprised if there's a custom install. Maybe I'll do a custom install (http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leop... ) and refer to that?
No, I just misread your ruby version number.
I see the problem from your stack trace: The TODO bundle only works with projects. So drag a folder with some files to TextMate, open one of them, and try ⌃⇧T — that should work.
This was caused by a recent change¹ which made the assertion that it was always used with projects. I have added a ticket for this².
¹ http://github.com/textmate/todo.tmbundle/commit/ac07daa573e3c8063569350d08f5... 2 ² http://github.com/textmate/todo.tmbundle/issues/#issue/3
On 30 nov 2009, at 11:04, Allan Odgaard wrote:
On 30 Nov 2009, at 08:13, Gert van Oss wrote:
[...] I'm on Snow Leopard: 10.6.2 Never touch ruby so I would be surprised if there's a custom install. Maybe I'll do a custom install (http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leop...) and refer to that?
No, I just misread your ruby version number.
I see the problem from your stack trace: The TODO bundle only works with projects. So drag a folder with some files to TextMate, open one of them, and try ⌃⇧T — that should work.
This was caused by a recent change¹ which made the assertion that it was always used with projects. I have added a ticket for this².
¹ http://github.com/textmate/todo.tmbundle/commit/ac07daa573e3c8063569350d08f5... ² http://github.com/textmate/todo.tmbundle/issues/#issue/3
Great, feel a lit embarrassed that I didn't find this out myself. Changed my workflow with .tex doc's. _one_ document as opposed to _many_ doc's floating around. Thanks, Gert
Hi Gert,
just wanted to let you know that I fixed the issue. I accidentally introduced it when I did the “Show relative paths” feature.
Cheers, Stan.
On 30.11.2009, at 15:12, Gert van Oss wrote:
On 30 nov 2009, at 11:04, Allan Odgaard wrote:
On 30 Nov 2009, at 08:13, Gert van Oss wrote:
[...] I'm on Snow Leopard: 10.6.2 Never touch ruby so I would be surprised if there's a custom install. Maybe I'll do a custom install (http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leop...) and refer to that?
No, I just misread your ruby version number.
I see the problem from your stack trace: The TODO bundle only works with projects. So drag a folder with some files to TextMate, open one of them, and try ⌃⇧T — that should work.
This was caused by a recent change¹ which made the assertion that it was always used with projects. I have added a ticket for this².
¹ http://github.com/textmate/todo.tmbundle/commit/ac07daa573e3c8063569350d08f5... ² http://github.com/textmate/todo.tmbundle/issues/#issue/3
Great, feel a lit embarrassed that I didn't find this out myself. Changed my workflow with .tex doc's. _one_ document as opposed to _many_ doc's floating around. Thanks, Gert
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate