[Rake-devel] Status of Rake for Windows?

Berger, Daniel Daniel.Berger at qwest.com
Mon Nov 24 16:37:23 EST 2008


> -----Original Message-----
> From: rake-devel-bounces at rubyforge.org 
> [mailto:rake-devel-bounces at rubyforge.org] On Behalf Of Jim Weirich
> Sent: Monday, November 24, 2008 2:11 PM
> To: Rake Development and Discussion
> Subject: Re: [Rake-devel] Status of Rake for Windows?
> 
> 
> On Nov 24, 2008, at 3:14 PM, Berger, Daniel wrote:
> > I can't get it to download at all with IE7 on XP Pro. I 
> click on the 
> > download button and nothing happens.
> >
> > With Firefox 2 I get a "that page does not exist" error 
> when I click 
> > the download button. I tried both the .zip and .tar options.
> 
> I've put a copy of the current master branch at:
> 
>       http://onestepback.org/download/rake-0.8.3.99.zip

Thanks Jim. Here's the results of rake test (after installing flexmock
and rcov) with comments interspersed by me (preceded with '=>'):

C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:
Warning: Gem::manage_gems is
 deprecated and will be removed on or after March 2009.

=> I talked with Eric Hodel. Gem.manage_gems has been a no-op since
0.9.4. I suggest either removing it completely or only running it if
users are running a version of gems older than 1.0, e.g.

   Gem.manage_gems if Gem::RubyGemsVersion.to_f < 1.0

mkdir -p testdata
Loaded suite
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader
Started
........................F../lib/rake.rb:2370: warning: D:/AD/Rake: No
such device or address

=> I think the confusion here is because D: on my laptop is the DVD-ROM
drive, which is empty at the moment. I don't know enough about flexmock
or the test itself to comment further.

............................E...........................................
............................
............................SKIPPING test_ruby/part 2 when in windows

=> Why is this skipped? (Aside: Any chance of using test-unit 2 so that
we get baked in omissions?)

.....................................................................E..
............................
......................................F...F.F...........................
..........................
Finished in 13.875 seconds.

  1) Failure:
test_load_from_system_rakefile(TestApplication)
    [./test/test_application.rb:170:in `test_load_from_system_rakefile'
     ./test/in_environment.rb:8:in `in_environment'
     ./test/test_application.rb:160:in
`test_load_from_system_rakefile']:
<nil> expected but was
<"rakefile">.

=> Not a clue.

  2) Error:
test_require(TestApplicationOptions):
LoadError: no such file to load -- test/reqfile3
    C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    ./lib/rake.rb:2230:in `standard_rake_options'
    C:/ruby/lib/ruby/1.8/optparse.rb:1291:in `call'
    C:/ruby/lib/ruby/1.8/optparse.rb:1291:in `parse_in_order'
    C:/ruby/lib/ruby/1.8/optparse.rb:1247:in `catch'
    C:/ruby/lib/ruby/1.8/optparse.rb:1247:in `parse_in_order'
    C:/ruby/lib/ruby/1.8/optparse.rb:1241:in `order!'
    C:/ruby/lib/ruby/1.8/optparse.rb:1332:in `permute!'
    C:/ruby/lib/ruby/1.8/optparse.rb:1353:in `parse!'
    ./lib/rake.rb:2289:in `handle_options'
    ./test/test_application.rb:615:in `command_line'
    ./test/test_application.rb:614:in `instance_eval'
    ./test/test_application.rb:614:in `command_line'
    ./test/test_application.rb:602:in `flags'
    ./test/test_application.rb:602:in `catch'
    ./test/test_application.rb:602:in `flags'
    ./test/capture_stdout.rb:11:in `capture_stdout'
    ./test/test_application.rb:601:in `flags'
    ./test/test_application.rb:599:in `each'
    ./test/test_application.rb:599:in `flags'
    ./test/test_application.rb:459:in `test_require'

=> I see reqfile and reqfile2 under test. No reqfile3, though. Is it
dynamically generated?

  3) Error:
test_can_load_rake_library(TestRequire):
LoadError: Can't find test2
    ./lib/rake.rb:2326:in `rake_require'
    ./test/test_require.rb:14:in `test_can_load_rake_library'
    ./test/test_require.rb:13:in `instance_eval'
    ./test/test_require.rb:13:in `test_can_load_rake_library'

=> I don't see this file, either.

  4) Failure:
test_default_arguements_that_dont_match_names_are_ignored(TestTaskArgume
nts) [./test/test_task_argum
ents.rb:87]:
<nil> expected but was
<"cl -W3">.

  5) Failure:
test_extra_names_are_nil(TestTaskArguments)
[./test/test_task_arguments.rb:50]:
<nil> expected but was
<"cl -W3">.

  6) Failure:
test_named_args(TestTaskArguments) [./test/test_task_arguments.rb:40]:
<nil> expected but was
<"cl -W3">.

=> Failures 4, 5 and 6 are all caused by the fact that I have the "CC"
environment variable set to "cl -W3", which is roughly the equivalent of
"gcc -Wall" for MS VC++.

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.


More information about the Rake-devel mailing list