I am sure this has been discussed before but I cannot track it down. I get the following error when using the TODO bundle with a latex file: ---- Scanning directory: ~/Dropbox/Aston/Research/Papers/Ontology_Evaluation
(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:716: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 /Library/Application Support/TextMate/Support/lib/textmate.rb:201:in `call' from /Library/Application Support/TextMate/Support/lib/textmate.rb:201:in `each_text_file' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:71 ----
How can this be fixed?
Thanks, Christopher
hello all - I have another issue - the 'Validate Syntax' command in the HTML bundle just returns a blank window.
here is the Ruby code from the command:
#!/usr/bin/env ruby -wKU STDOUT.sync = true
page = STDIN.read page.gsub!(/<?(php|=).*??>|<%.*?%>/m, '')
open('|curl -sF uploaded_file=@-;type=text/html http://validator.w3.org/check', 'r+') do |io| io << page; io.close_write while line = io.gets line.gsub!(/</title>/, '&<base href="http://validator.w3.org/">') line.gsub!(/Line (\d+),? Column (\d+)/i) do "<a href='txmt://open?line=#$1&column=#{$2.to_i + 1}'>#$&</a>" end puts line end end
this should be the original code as I wouldn't have knowingly altered it (my Ruby being non-existent).
thanks,
bennett
On 25 Aug 2010, at 11:15, plastichairdoo wrote:
hello all - I have another issue - the 'Validate Syntax' command in the HTML bundle just returns a blank window.
We use W3C’s online service. They recently changed it and we have yet to update the command to reflect that.
On 24 Aug 2010, at 11:43, Christopher Brewster wrote:
I am sure this has been discussed before but I cannot track it down. I get the following error when using the TODO bundle with a latex file:
Scanning directory: ~/Dropbox/Aston/Research/Papers/ Ontology_Evaluation
(erb):4: undefined method `+' for nil:NilClass (NoMethodError) from [...] How can this be fixed?
Please try latest bundle, if you have git installed then this can be done with these four steps:
mkdir -p ~/Library/Application\ Support/TextMate/Bundles cd !$ git clone git://github.com/textmate/todo.tmbundle.git osascript -e 'tell app "TextMate" to reload bundles'
If the problem persists for a particular file then please open an issue at http://github.com/textmate/todo.tmbundle/issues and include the file which is showing the problem.