Hi,
This used to work fine at one point, but has now been broken for a few weeks.
From my rails app I call up Ruby->Run Rake Task. I choose "deploy" from the list of tasks, and get the following output (apologies for wrapping):
RakeMate r1.2.0 running Ruby v1.8.2.
/Users/evansj/rails/my_app
loading configuration /usr/local/lib/ruby/gems/1.8/gems/ capistrano-1.1.0/lib/capistrano/recipes/standard.rb loading configuration ./config/deploy.rb loading configuration #<Proc:0x025d054c@/usr/local/lib/ruby/gems/ 1.8/gems/mongrel_cluster-0.2.0/lib/mongrel_cluster/recipes.rb:1> * executing task deploy ** transaction: start * executing task update_code * querying latest revision... /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server/repos/ my_app-portal/rails/my_app/trunk /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server/repos/ my_app-portal/rails/my_app /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server/repos/ my_app-portal/rails /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server/repos/ my_app-portal /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server/repos /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead . /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead . /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead .
The last line repeats indefinitely until you close the window and it prompts you to stop the task.
svn is /usr/local/bin/svn, which is in my path, and the TM svn tasks work fine for checking in etc. I have tried setting TM_SVN to the full path to my svn in the prefs, but it still doesn't work.
I'm using the latest TM, with /Library/Application Support/TextMate updated from svn.
TIA
Jon
On Sep 1, 2006, at 4:36 AM, Jon Evans wrote:
Hi,
This used to work fine at one point, but has now been broken for a few weeks.
Hmm, I haven't changed anything in RakeMate recently.
From my rails app I call up Ruby->Run Rake Task. I choose "deploy" from the list of tasks, and get the following output (apologies for wrapping):
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server/repos/ my_app-portal/rails/my_app/trunk
Clearly the issue is that Subversion is not found. RakeMate just does a piped-open to Rake to run the task, so it's pretty likely Subversion is not in your path at the time of the call.
The reason and fix are described here:
http://macromates.com/textmate/manual/shell_commands#search_path
You want the "Important" section towards the end.
Hope that helps.
James Edward Gray II
Hi James,
On 1 Sep 2006, at 15:54, James Edward Gray II wrote:
On Sep 1, 2006, at 4:36 AM, Jon Evans wrote:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: svn log -q -rhead https://my.svn.server/repos/ my_app-portal/rails/my_app/trunk
Clearly the issue is that Subversion is not found. RakeMate just does a piped-open to Rake to run the task, so it's pretty likely Subversion is not in your path at the time of the call.
The reason and fix are described here:
http://macromates.com/textmate/manual/shell_commands#search_path
You want the "Important" section towards the end.
Perfect, all working again now. Still don't know why it stopped working though - mysterious. Thanks for your help.
Jon