Technology

I'm speaking at...

I teach and consult for

Spring, Hibernate, Grails, Rails and Maven training from the experts!
Training Calendar

Roo in Action

Soon in print!

Spring Roo in Action
MEAP Available Now!

Author, Roo in Action - in MEAP now
Manning Book Forum
My Roo Blog Entries
Srini Penchikala InfoQ

Twittery!

@krimple
@techcast
@gdickens
@RooInAction

I host the
Chariot TechCast

« Interesting Post: Java EE 6 Overview on TSS | Main | Good blog post on Grails in a recession »
Monday
Mar092009

TextMate and the Groovy/Grails Plugin - Fixing hangs

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.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>