[Rake-devel] Status of Rake for Windows?

Luis Lavena luislavena at gmail.com
Mon Nov 24 21:55:17 EST 2008


On Mon, Nov 24, 2008 at 7:37 PM, Berger, Daniel <Daniel.Berger at qwest.com> wrote:
>> -----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

That's part of the installed Rake, and not the one in the source code
you're checking:

http://github.com/jimweirich/rake/tree/master/lib%2Frake%2Fgempackagetask.rb#L13

(there is no line for the Gem::maange_gems over there.

> 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.
>

Weird, flexmock should have catched that, which is catching it my installation.

http://github.com/jimweirich/rake/tree/master/test%2Ftest_application.rb#L198-214

> ............................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?)
>

That's one of the blockers 0.8.4 has beend elayed, the call to
Kernel::system() with multiple arguments is not properly working
across implementations and thus, is being skipped in Windows
(mingw/mswin) while is failing on Jruby.

> .....................................................................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.
>

Some of the errors you're getting are really weird, I'll try to
replicate those but seems something is broken.

Can you provide more details about your ruby installation and setup?
(gem env, ruby -v, PATH and OS information).

Thank you.

-- 
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams


More information about the Rake-devel mailing list