Help needed. Since a couple days, all my ruby macros calling TextMate::UI.menu( ) produce the following error:
sh: : command not found /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:182:in `load': Cannot parse a NULL or zero-length data (OSX::PropertyListError) from /Applications/TextMate.app/Contents/SharedSupport /Support/lib/ui.rb:182:in `menu' from /Applications/TextMate.app/Contents/SharedSupport /Support/lib/ui.rb:177:in `popen' from /Applications/TextMate.app/Contents/SharedSupport /Support/lib/ui.rb:177:in `menu' from /tmp/temp_textmate.wMVbb2:17
I am not able to read inside Support/lib/osx/plist.bundle since this is a binary file. Can't remember any big changes in my setup (I moved to Snow Lep a few weeks ago, but I seem to recall menus worked fine before Xmas). Any idea or pointers? is Xmas to blame?
Thank you (and best wishes to everyone) Piero
Hans-Jörg Bibiko <bibiko@...> writes:
Hmm, my stuff is still working. What in particular do you are doing with TMTOOLS?
Well, for instance a command like
"$TMTOOLS" set windowOrigin '{x=3;y=304;}' "$TMTOOLS" set windowSize '{width=630;height=550;}'
produces the error
/bin/bash: : command not found /bin/bash: line 1: : command not found
which is pretty weird... Piero
On Dec 26, 2009, at 3:56 PM, Piero D'Ancona wrote:
Hans-Jörg Bibiko <bibiko@...> writes:
Hmm, my stuff is still working. What in particular do you are doing with TMTOOLS?
Well, for instance a command like
"$TMTOOLS" set windowOrigin '{x=3;y=304;}' "$TMTOOLS" set windowSize '{width=630;height=550;}'
produces the error
/bin/bash: : command not found /bin/bash: line 1: : command not found
which is pretty weird...
you need to set PATH I guess.
On Dec 26, 2009, at 3:56 PM, Piero D'Ancona wrote:
Hans-Jörg Bibiko <bibiko@...> writes:
Hmm, my stuff is still working. What in particular do you are doing with TMTOOLS?
Well, for instance a command like
"$TMTOOLS" set windowOrigin '{x=3;y=304;}' "$TMTOOLS" set windowSize '{width=630;height=550;}'
produces the error
/bin/bash: : command not found /bin/bash: line 1: : command not found
For me these commands do work. Thus I also think the path is not set correctly.
--Hans
On Dec 26, 2009, at 4:22 PM, Piero D'Ancona wrote:
Alex Ross <z-textmate@...> writes:
you need to set PATH I guess.
Hmmm...
echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Developer/Tools
Did you set PATH in TextMate's shell variables preferences? TM no longer sources your shell profile.
So the error /bin/bash: : command not found means TextMate can't find bash? weird.
Inside a TextMate window I get (lines split by me)
echo $PATH /Applications/TextMate.app/Contents/SharedSupport /Support/bin/CocoaDialog.app/Contents/MacOS :/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin :/usr/X11/bin:/Developer/Tools :/Applications/TextMate.app/Contents/SharedSupport/Support/bin
I also have a variable PATH set as follows
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin :/usr/X11/bin:/Developer/Tools
which is where part of the above path come from, I guess
Piero
On 12/27/09 3:12 AM, in article loom.20091227T120658-978@post.gmane.org, "Piero D'Ancona" pierodancona@gmail.com wrote:
Inside a TextMate window I get (lines split by me)
echo $PATH /Applications/TextMate.app/Contents/SharedSupport /Support/bin/CocoaDialog.app/Contents/MacOS :/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin :/usr/X11/bin:/Developer/Tools :/Applications/TextMate.app/Contents/SharedSupport/Support/bin
But at first you said this problem involves Ruby, yes? So what you get in a shell script asking about $PATH is irrelevant. What you want to know is what the path is in Ruby, which you can only find out from a Ruby script:
p ENV['PATH']
In general, p ENV will show you all the environmental variables available to you in Ruby.
m.
Thank you Matt and Alex and Hans, I finally re-installed everything from scratch and it all works. No idea what was the source of the trouble (corrupted preference file??) At one point during my tests the ruby scripts started working again, then stopped... Also TMTOOLS is fine now.
Piero