Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: 3rdRail/Rails Commander    [ Add a report in this area ]  
Report #:  52586   Status: Closed
Rake tasks which invoke shell commands fail
Project:  3rdRail Build #:  v20070909_1913
Version:    unspecifie Submitted By:   Lori Olson
Report Type:  Suggestion / Enhancement Request Date Reported:  9/26/2007 4:19:48 PM
Severity:    Commonly encountered problem Last Updated: 10/3/2007 2:10:19 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : v20070918_0946
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 1
When attempting to run rake tasks which utilize ruby's ability to "shell out" to run commands using ``, these rake tasks fail in the commander with errors like:

sh: line 1: svn: command not found
Steps to Reproduce:
Create a rake task:

Add a "foo.rake" file under lib/tasks, and insert:

namespace :foo do
  task :svn_info do
    info = `svn info app/models`

Then, in a project commander, run "rake foo:svn_info" and see what happens.
Have to open a terminal and run these tasks from there, instead of staying in the IDE.

Lori Olson at 9/26/2007 4:22:02 PM -
Ditto for my rake tasks that invoke Oracle's 'sqlplus'.  I imagine it will be the same for tasks that invoke mysql, which is common.

Robert Ehteshamzadeh at 10/3/2007 10:28:06 AM -
I get the same result as Joe in v20070918_0946 on XP .

It looks like this has been fixed.

Joe McGlynn at 10/1/2007 10:36:24 PM -
Hi Lori,

This appears to work for me on Vista:

>rake foo:svn_info
(in C:/workspace_thru/r2)
svn: 'app\models' is not a working copy

But I am running a post-RTM build.  I'll try it from the RTM version and see if I can reproduce it.

Lori Olson at 10/12/2007 1:06:44 PM -
Note, this was on the Mac.  It's possible it works fine on Windows, but it definitely does NOT work on the Mac.

Server Response from: ETNACODE01