[TxMt] Re: Problems with TODO bundle, am I the only one ?

Soryu soryu2 at gmail.com
Mon Apr 19 17:53:32 UTC 2010


Hi Christof,

this was something I actually fixed a while ago. You have two options:

Option 1. The quickest way is to edit the file /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb and change line 68 from

> project_dir = ENV['TM_PROJECT_DIRECTORY']

to

> project_dir = ENV['TM_PROJECT_DIRECTORY'] || ""


Option 2. Get the current version of the TODO bundle from http://github.com/textmate/todo.tmbundle

> mkdir -p ~/Library/Application\ Support/TextMate/Bundles
> cd ~/Library/Application\ Support/TextMate/Bundles
> git clone  git://github.com/textmate/todo.tmbundle.git



Cheers,
Stan.

On 19.04.2010, at 16:35, Christof Janssen wrote:

> Hello,
> 
> When scanning my latex document with the TODO bundle, I get the following message. 
> 
> Scanning directory: ~/Documents/tex/papers/2010/O3Buffer/RevSciInstr_Buffergas/O3Buffer
> 
> (erb):4: undefined method `+' for nil:NilClass (NoMethodError) from /Applications/Editors/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:716:in `grep' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `each' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `grep' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77 from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76:in `open' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76 from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75:in `each' from /Applications/Editors/TextMate.app/Contents/SharedSuppor
> t/Bundles/TODO.tmbundle/Support/todo.rb:75 from /Applications/Editors/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:201:in `call' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:201:in `each_text_file' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:71
> 
> 
> I have reinstalled textmate several times and everything worked for a while before TODO would give the same message again. Since I am not at all familiar with ruby I did not try to understand the ruby code of the TODO bundle. 
> 
> I am using TM Version 1.5.9 (1589) under the latest snow leopard OS. 
> 
> Because I really like the functionality of the TODO bundle I would be happy if anyone could tell me what to do or confirm that this problem exists elsewhere.
> 
> Thanks for consideration
> 
> Christof
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate




More information about the textmate mailing list