Just noticed that getting documentation on a Ruby method (control H) in TM 1.5.5. 1383 now gives an error:
web_preview.rb:70 in 'html_head' : undefined method '+' for nilClass
This was working for me on earlier TM versions and I haven't changed anything in my Ruby setup for a long time.
Dave.
Thanks for the suggestion, unfortunately $HOME is set up in tsh and bash and restarting TM didn't help.
I also noticed I get a similar error when trying to execute some ruby code with command R.
/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:103:in `emit_html' from /Applications/TextMate.app/ Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/ run_script.rb:72
Dave.
On 1 May 2007, at 10:08, Ciarán Walsh wrote:
On 1 May 2007, at 09:53, Dave Baldwin wrote:
web_preview.rb:70 in 'html_head' : undefined method '+' for nilClass
If I recall correctly this happens when $HOME isn't set. Try restarting TM, or perhaps logging out if necessary.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
I don't think I was clear enough - $HOME is set up correctly already when I check in both shells (tsh is the one I normally use, but I think TM used bash when running shell commands).
Dave.
On 1 May 2007, at 10:31, Ciarán Walsh wrote:
On 1 May 2007, at 10:19, Dave Baldwin wrote:
Thanks for the suggestion, unfortunately $HOME is set up in tsh and bash and restarting TM didn't help.
Try logging out then
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 1. May 2007, at 11:48, Dave Baldwin wrote:
I don't think I was clear enough - $HOME is set up correctly already when I check in both shells (tsh is the one I normally use, but I think TM used bash when running shell commands).
HOME is not setup by bash but inherited from the parent process.
Try type env⌃R in TextMate and see if you have HOME, USER, and LOGNAME set.
You could likely quit TextMate and start it from your terminal (where you have HOME) calling TextMate.app/Contents/MacOS/TextMate directly (i.e. not using ‘open’, as then it would be launch services/the WindowServer process which starts it, and it then inherits the environment from that process, which is likely the process that somehow managed to un-associate itself with USER etc.).
On 1 May 2007, at 10:58, Allan Odgaard wrote:
env^R just hung with with coloured wheel. So I forced quit TM and restarted it (from Finder).
The env^R showed HOME and USER set up as expeced. LOGNAME does not exist. ^h for ruby help and running ruby now works as expected.
TM had only been running for a few hours before I noticed these problems and I hadn't been doing anything 'difficult'.
I am happy to poke around some more if you have anything you want me to look at.
Thanks, Dave.
On 1. May 2007, at 11:48, Dave Baldwin wrote:
I don't think I was clear enough - $HOME is set up correctly already when I check in both shells (tsh is the one I normally use, but I think TM used bash when running shell commands).
HOME is not setup by bash but inherited from the parent process.
Try type env⌃R in TextMate and see if you have HOME, USER, and LOGNAME set.
You could likely quit TextMate and start it from your terminal (where you have HOME) calling TextMate.app/Contents/MacOS/TextMate directly (i.e. not using ‘open’, as then it would be launch services/the WindowServer process which starts it, and it then inherits the environment from that process, which is likely the process that somehow managed to un-associate itself with USER etc.).
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate