I'm trying out TextMate after a year of using RadRails/Aptana for RoR development. I'm trying to use "validate syntax" in Ruby bundle but no matter what Ruby code I have, it seems to always pop up a tool tip saying the syntax is valid.
Also, it seems to be using /usr/bin/ruby instead of /usr/local/bin/ruby, even though /usr/local/bin is first in my path, so it's finding 1.8.2 instead of 1.8.6.
I haven't had much luck in finding information on this feature, so I hope this is a good place to ask.
Thanks!
On 14. Jun 2007, at 07:44, Enzo wrote:
I'm trying out TextMate after a year of using RadRails/Aptana for RoR development. I'm trying to use "validate syntax" in Ruby bundle but no matter what Ruby code I have, it seems to always pop up a tool tip saying the syntax is valid.
Can you paste some code where you’d not expect it to tell you the code is valid?
Also, it seems to be using /usr/bin/ruby instead of /usr/local/ bin/ruby, even though /usr/local/bin is first in my path, so it's finding 1.8.2 instead of 1.8.6.
See last paragraphs here http://macromates.com/textmate/manual/ shell_commands#search_path
Thank you Allan for the tip on search path. That sorted out the 1.8.2 problem versus 1.8.6.
Ah..and I am now able to get an error to be thrown, too.