<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Christopher:<div><br></div><div>On 2010Jun05, at 06:10, Christopher Creutzig wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 6/5/10 3:55 AM, Robert Poor wrote:<br><br><blockquote type="cite">In my development machine I have carefully built versions of ruby  <br></blockquote><blockquote type="cite">1.9.1, rails, ri, rdoc, all of my gems, etc in a sandboxed directory  <br></blockquote><blockquote type="cite">(~/Development/Ruby/bin/*), and I've left the Mac OS X standard  <br></blockquote><blockquote type="cite">distributions alone.<br></blockquote><br>Try adding that directory (probably better with its real name, i.e.,<br>not using the tilde, but /Users/whatever/Development/Ruby/bin/) to your<br>PATH variable inside TextMate's Preferences/Advanced/Shell Variables<br>tab, in front of whatever you already have. If there is no entry yet,<br>use whatever “echo $PATH” says inside a terminal session where your ri command works.</div></blockquote><div><br></div><div>I had already tried setting PATH, but it doesn't work either -- I think I see why.  The known "good" $PATH is:</div><div><br></div><div>Users/r/Development/Ruby/bin:/Users/r/Development/Rails/bin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:~/bin:/usr/local/bin:/usr/X11R6/bin</div><div><br></div><div>After I set PATH in the preferences/advanced/shell variables to the above string, TM shows that it has prepended some of its own directories to the PATH variable:</div><div><br></div><div><div>echo $PATH^r</div><div>/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS:/usr/local/git/bin:/opt/local/bin:/opt/local/sbin:/Users/r/Development/Ruby/bin:/Users/r/Development/Rails/bin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:~/bin:/usr/local/bin:/usr/X11R6/bin:/usr/X11/bin:/Applications/TextMate.app/Contents/SharedSupport/Support/bin</div><div><br></div><div>I can see why -- TextMate needs to keep some of its special directories in the path.  But since /opt/local/sbin now appears BEFORE /Users/r/Development/Ruby/bin, it is (I believe) finding the wrong ri.  When I try ^h on a function name, I get:</div><div><br></div><div>/Applications/TextMate.app/Contents/SharedSupport/Support/lib/web_preview.rb:101: warning: mismatched indentations at 'end' with 'if' at 98</div><div><b>ri Command Error.</b></div><div><br></div><div>... and I don't see a way to get /Users/r/Development/Ruby/bin *before* the TextMate-imposed /usr/local/sbin.  (I suppose I could create relevant links /usr/local/sbin, but that would defeat the purpose of building the sandbox in the first place -- I want my own configuration, and I don't want to mess with the Apple-supplied standard version.)</div><div><br></div><div>Suggestions?</div></div><div><br><div><div>On 2010Jun05, at 06:10, Christopher Creutzig wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 6/5/10 3:55 AM, Robert Poor wrote:<br><br><blockquote type="cite">In my development machine I have carefully built versions of ruby  <br></blockquote><blockquote type="cite">1.9.1, rails, ri, rdoc, all of my gems, etc in a sandboxed directory  <br></blockquote><blockquote type="cite">(~/Development/Ruby/bin/*), and I've left the Mac OS X standard  <br></blockquote><blockquote type="cite">distributions alone.<br></blockquote><br> Try adding that directory (probably better with its real name, i.e.,<br>not using the tilde, but /Users/whatever/Development/Ruby/bin/) to your<br>PATH variable inside TextMate's Preferences/Advanced/Shell Variables<br>tab, in front of whatever you already have. If there is no entry yet,<br>use whatever “echo $PATH” says inside a terminal session where your ri<br>command works.<br><br><blockquote type="cite">echo $PATH^r =><br></blockquote><blockquote type="cite">/Applications/TextMate.app/Contents/SharedSupport/Support/bin/ <br></blockquote><blockquote type="cite">CocoaDialog.app/Contents/MacOS:/usr/local/git/bin:/opt/local/bin:/opt/ <br></blockquote><br> Right. Don't forget to include the directories including<br>/Applications/TextMate.app/ into whatever new PATH definition you set.<br><br><br><br>HTH,<br><span class="Apple-tab-span" style="white-space:pre"> </span>Christopher<br><br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>http://lists.macromates.com/listinfo/textmate<br></div></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--:</div><div>Robert Poor</div><div><div>e:<span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="mailto:robert.poor@nbt-ventures.com">robert.poor@nbt-ventures.com</a></div><div>p:<span class="Apple-tab-span" style="white-space: pre; ">    </span>+1 617 818 5115</div><div>--:</div></div></div><div>This message and the information it contains are the proprietary and confidential property of NBT Ventures and may be privileged. If you are not the intended recipient, please do not read, copy, disclose or distribute its contents to any party, and notify the sender immediately.</div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>--:</div></div></div></div></span></div></div></div> </div><br></div></body></html>