On Apr 21, 2007, at 7:30 PM, Charles L. Snyder wrote:

> This is the same error message for all three:
>
> /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> web_preview.rb:70:in `html_head': undefined method `+' for
> nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/
> SharedSupport/Support/lib/scriptmate.rb:186:in `emit_header' from /
> Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> scriptmate.rb:91:in `emit_html' from /Applications/TextMate.app/
> Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/
> run_script.rb:72

OK, this error message has nothing to do with Ruby failing to load,  
which is the problem I thought we were discussing.

The line that errors out on fetches ENV['HOME'].  Surely that has to  
be set on your box, but just as a reality-check try this:

1.  Open a new TM document
2.  Type echo $HOME
3.  Press control-R on that line of shell code

What kind of answer do we get?

> Maybe I should just reinstall textmate .?

That shouldn't do anything.  We just need to figure out what the  
problem is.

James Edward Gray II

P.S.  This doesn't really have anything to do with Ruby, so why don't  
we take it off-list.  You can email me privately or shift to the  
TextMate discussion list.  I'll see your response either way.  Thanks.