Monday
Mar092009
TextMate and the Groovy/Grails Plugin - Fixing hangs
Monday, March 9, 2009 at 11:50PM So, you start messing around with Groovy or Grails on OS X, and you want to use the Groovy and Grails textmate plugins to edit it. However, you find that whenever you attempt to run with a CMD-R, the bash shell goes into overdrive.
Disclaimer - only make these changes if you know what you are doing. I will not be held responsible for any damage to your operating system caused by incorrectly modifying the profile scripts.
The reason this happens could be due to the length of your path. In OS X, the /etc/profile configuration starts with:
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
This path_helper is supposed to look at the /etc/paths directory and add any entries in this file to the classpath. However, it also seems to hang up and cause trouble. The fix I've added involves taking those path entries, and prepending them to the PATH in your .profile script, and commenting out those three lines.
Once you do this, the Cmd-R process works, and you will get reponses to your command executions properly. Also, don't forget to set the TM_GROOVY and TM_GRAILS paths to the groovy and grails commands themselves, which is what they expect to be set to.
My paths now directly include:
/usr/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:
I hope this helps you.



Reader Comments