# Rake and 1.8.4

**URL:** <https://rubytalk.org/t/rake-and-1-8-4/23574>\
**Category:** ruby-talk\
**Created:** [24 December 2005 19:56 UTC](https://rubytalk.org/t/rake-and-1-8-4/23574 "2005-12-24T19:56:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamis\_Buck2](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@Jamis\_Buck2](https://rubytalk.org/u/Jamis_Buck2)\
**Post date:** [24 December 2005 19:56 UTC](https://rubytalk.org/t/rake-and-1-8-4/23574/1 "2005-12-24T19:56:00Z")

</div>

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:

&nbsp;&nbsp;&nbsp;rake aborted!  
&nbsp;&nbsp;&nbsp;no such option: noop  
&nbsp;&nbsp;&nbsp;/Users/jamis/ruby184/lib/ruby/1.8/fileutils.rb:1422:in `fu\_check\_options'  
&nbsp;&nbsp;&nbsp;/Users/jamis/ruby184/lib/ruby/1.8/fileutils.rb:119:in `cd'  
&nbsp;&nbsp;&nbsp;/Users/jamis/ruby184/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:640:in `cd'  
&nbsp;&nbsp;&nbsp;./rakefile:67

Apparenly, FileUtils.chdir doesn't take the :noop parameter anymore? I'm working around this by just invoking FileUtils.chdir directly.

- Jamis

---

<div class="post-metadata">

**Author:** ![Florian\_Gross2](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@Florian\_Gross2](https://rubytalk.org/u/Florian_Gross2)\
**Post date:** [24 December 2005 20:19 UTC](https://rubytalk.org/t/rake-and-1-8-4/23574/2 "2005-12-24T20:19:33Z")

</div>

Jamis Buck wrote:

> Apparenly, FileUtils.chdir doesn't take the :noop parameter anymore? I'm working around this by just invoking FileUtils.chdir directly.

There's this in the change log:

> &nbsp;&nbsp;\* lib/fileutils.rb (cd): no longer accept :noop option, related  
> &nbsp;&nbsp;&nbsp;&nbsp;code is useless (backported from trunk, rev 1.67).  
> &nbsp;&nbsp;&nbsp;&nbsp;[ruby-core:05858] [ruby-Bugs:2494]

I think you are supposed to use FileUtils::DryRun somehow instead. Haven't looked at it in detail...

> **···**
>
> --  
> [http://flgr.0x42.net/](http://flgr.0x42.net/)

---

<div class="post-metadata">

**Author:** ![Ross\_Bamford2](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@Ross\_Bamford2](https://rubytalk.org/u/Ross_Bamford2)\
**Post date:** [24 December 2005 23:07 UTC](https://rubytalk.org/t/rake-and-1-8-4/23574/3 "2005-12-24T23:07:51Z")

</div>

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](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:

&nbsp;&nbsp;task :default do  
&nbsp;&nbsp;&nbsp;&nbsp;chdir('..') do  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;puts `pwd`  
&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;end

And it gives:

&nbsp;&nbsp;(in /home/rosco/dev/ruby/raketest)  
&nbsp;&nbsp;cd ..  
&nbsp;&nbsp;/home/rosco/dev/ruby  
&nbsp;&nbsp;cd -

> **···**
>
> 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:
> > 
> > &nbsp;&nbsp;&nbsp;rake aborted!  
> > &nbsp;&nbsp;&nbsp;no such option: noop  
> > &nbsp;&nbsp;&nbsp;/Users/jamis/ruby184/lib/ruby/1.8/fileutils.rb:1422:in `fu\_check\_options'  
> > &nbsp;&nbsp;&nbsp;/Users/jamis/ruby184/lib/ruby/1.8/fileutils.rb:119:in `cd'  
> > &nbsp;&nbsp;&nbsp;/Users/jamis/ruby184/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:640:in `cd'  
> > &nbsp;&nbsp;&nbsp;./rakefile:67
> > 
> > Apparenly, FileUtils.chdir doesn't take the :noop parameter anymore? I'm working around this by just invoking FileUtils.chdir directly.
> > 
> > - Jamis
> 
> --  
> Ross Bamford - rosco@roscopeco.remove.co.uk

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [27 December 2005 16:32 UTC](https://rubytalk.org/t/rake-and-1-8-4/23574/4 "2005-12-27T16:32:58Z")

</div>

Ross Bamford wrote:

> 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](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:

Rake 0.6.99.2 is the release candidate for Rake 0.7.0. There is still  
some documentation to be done, but I plan to finish that this week and  
officially release a new version of rake.

> **···**
>
> --  
> -- Jim Weirich
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
