# Rake and 1.8.4

**URL:** <https://www.ruby-forum.com/t/rake-and-1-8-4/75345>\
**Category:** Ruby\
**Created:** [December 24, 2005, 8:57pm UTC](https://www.ruby-forum.com/t/rake-and-1-8-4/75345 "2005-12-24T20:57:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@jamis](https://www.ruby-forum.com/u/jamis)\
**Post date:** [December 24, 2005, 8:57pm UTC](https://www.ruby-forum.com/t/rake-and-1-8-4/75345/1 "2005-12-24T20:57:43Z")

</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:

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

---

<div class="post-metadata">

**Author:** ![jamis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@jamis](https://www.ruby-forum.com/u/jamis)\
**Post date:** [December 24, 2005, 9:21pm UTC](https://www.ruby-forum.com/t/rake-and-1-8-4/75345/2 "2005-12-24T21:21:45Z")

</div>

Jamis B. 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:

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

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

---

<div class="post-metadata">

**Author:** ![jamis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@jamis](https://www.ruby-forum.com/u/jamis)\
**Post date:** [December 25, 2005, 12:10am UTC](https://www.ruby-forum.com/t/rake-and-1-8-4/75345/3 "2005-12-25T00:10:32Z")

</div>

On Sat, 24 Dec 2005 19:56:00 -0000, Jamis B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ./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](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 -

```

---

<div class="post-metadata">

**Author:** ![jamis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@jamis](https://www.ruby-forum.com/u/jamis)\
**Post date:** [December 27, 2005, 5:32pm UTC](https://www.ruby-forum.com/t/rake-and-1-8-4/75345/4 "2005-12-27T17:32:42Z")

</div>

Ross B. 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 W.
