On Sat, 24 Dec 2005 19:56:00 -0000, Jamis Buck <jamis / 37signals.com> wrote: > Looks like there may be a problem with Rake 0.6.2 and Ruby 1.8.4. If I > have a task that uses either chdir or cd, I get an error: > > rake aborted! > no such option: noop > /Users/jamis/ruby184/lib/ruby/1.8/fileutils.rb:1422:in > `fu_check_options' > /Users/jamis/ruby184/lib/ruby/1.8/fileutils.rb:119:in `cd' > /Users/jamis/ruby184/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb: > 640:in `cd' > ./rakefile:67 > > Apparenly, FileUtils.chdir doesn't take the :noop parameter anymore? I'm > working around this by just invoking FileUtils.chdir directly. > > - Jamis > IIRC I encountered this very bug some time ago, with 1.8.3. The advice I found at the time was to switch to a beta version, 0.6.99.2, which you can find at: http://onestepback.org/betagems/gems/rake-0.6.99.2.gem . Since making the switch I've encountered no such problems; I've just tried the following Rakefile with 1.8.4: task :default do chdir('..') do puts `pwd` end end And it gives: (in /home/rosco/dev/ruby/raketest) cd .. /home/rosco/dev/ruby cd - -- Ross Bamford - rosco / roscopeco.remove.co.uk