I checked out r116 from SVN into a new clean folder. This is what I got:
D:\dev\ruby\ironruby\head>rake compile
(in D:/dev/ruby/ironruby/head)
rake aborted!
private method `gsub'' called for nil:NilClass
D:/dev/ruby/ironruby/head/rakefile:15
(See full trace by running task with --trace)
Taking a look at the rakefile,
SPEC_HOME = ENV[''HOME''].gsub(''\\'',
''/'') + ''/dev''
So the problem is that I don''t have a HOME variable set. Am I unusual
in
this respect? Do most people have this set on their Windows machines by
default?
Cheers,
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20080629/ba414bce/attachment-0001.html>
%HOME% is not reliably set. Some OSes will make it a combination of %HOMEDRIVE%%HOMEPATH%, but many don''t (it''s not set on my Vista x64 box, for example). A much more reliable environment variable seems to be %USERPROFILE%. On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote:> I checked out r116 from SVN into a new clean folder. This is what I got: > > > > D:\dev\ruby\ironruby\head>rake compile > > (in D:/dev/ruby/ironruby/head) > > rake aborted! > > private method `gsub'' called for nil:NilClass > > D:/dev/ruby/ironruby/head/rakefile:15 > > (See full trace by running task with --trace) > > > > Taking a look at the rakefile, > > > > SPEC_HOME = ENV[''HOME''].gsub(''\\'', ''/'') + ''/dev'' > > > > So the problem is that I don''t have a HOME variable set. Am I unusual in > this respect? Do most people have this set on their Windows machines by > default? > > Cheers, > > Pete > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- http://bradwilson.typepad.com/ http://social.zune.net/member/AgilistBrad http://www.flickr.com/photos/dotnetguy/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080629/ea464106/attachment.html>
Thanks for the idea. I''ll look for HOME first followed by USERPROFILE
before failing with a better message than that :)
- John
Sent from my phone
________________________________
From: Brad Wilson <dotnetguy at gmail.com>
Sent: Sunday, June 29, 2008 8:57 AM
To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org>
Subject: Re: [Ironruby-core] HOME env variable required
%HOME% is not reliably set. Some OSes will make it a combination of
%HOMEDRIVE%%HOMEPATH%, but many don''t (it''s not set on my
Vista x64 box, for example).
A much more reliable environment variable seems to be %USERPROFILE%.
On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin <bacondarwin at
googlemail.com<mailto:bacondarwin at googlemail.com>> wrote:
I checked out r116 from SVN into a new clean folder. This is what I got:
D:\dev\ruby\ironruby\head>rake compile
(in D:/dev/ruby/ironruby/head)
rake aborted!
private method `gsub'' called for nil:NilClass
D:/dev/ruby/ironruby/head/rakefile:15
(See full trace by running task with --trace)
Taking a look at the rakefile,
SPEC_HOME = ENV[''HOME''].gsub(''\\'',
''/'') + ''/dev''
So the problem is that I don''t have a HOME variable set. Am I unusual
in this respect? Do most people have this set on their Windows machines by
default?
Cheers,
Pete
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core
--
http://bradwilson.typepad.com/
http://social.zune.net/member/AgilistBrad
http://www.flickr.com/photos/dotnetguy/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20080629/2be508d9/attachment.html>
I would bet that some of the specs themselves assume that HOME is defined as
well.
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at
rubyforge.org] On Behalf Of John Lam (IRONRUBY)
Sent: Sunday, June 29, 2008 10:22 AM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] HOME env variable required
Thanks for the idea. I''ll look for HOME first followed by USERPROFILE
before failing with a better message than that :)
- John
Sent from my phone
________________________________
From: Brad Wilson <dotnetguy at gmail.com>
Sent: Sunday, June 29, 2008 8:57 AM
To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org>
Subject: Re: [Ironruby-core] HOME env variable required
%HOME% is not reliably set. Some OSes will make it a combination of
%HOMEDRIVE%%HOMEPATH%, but many don''t (it''s not set on my
Vista x64 box, for example).
A much more reliable environment variable seems to be %USERPROFILE%.
On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin <bacondarwin at
googlemail.com<mailto:bacondarwin at googlemail.com>> wrote:
I checked out r116 from SVN into a new clean folder. This is what I got:
D:\dev\ruby\ironruby\head>rake compile
(in D:/dev/ruby/ironruby/head)
rake aborted!
private method `gsub'' called for nil:NilClass
D:/dev/ruby/ironruby/head/rakefile:15
(See full trace by running task with --trace)
Taking a look at the rakefile,
SPEC_HOME = ENV[''HOME''].gsub(''\\'',
''/'') + ''/dev''
So the problem is that I don''t have a HOME variable set. Am I unusual
in this respect? Do most people have this set on their Windows machines by
default?
Cheers,
Pete
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core
--
http://bradwilson.typepad.com/
http://social.zune.net/member/AgilistBrad
http://www.flickr.com/photos/dotnetguy/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20080629/5d2c13af/attachment.html>
I have already hacked a couple of them to make them look for the HOME then
USERPROFILE. That''s a relic of the spec''s being developed
mostly on *nix.
________________________________________
From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at
rubyforge.org] On Behalf Of Curt Hagenlocher [curth at microsoft.com]
Sent: Sunday, June 29, 2008 4:21 PM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] HOME env variable required
I would bet that some of the specs themselves assume that HOME is defined as
well.
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at
rubyforge.org] On Behalf Of John Lam (IRONRUBY)
Sent: Sunday, June 29, 2008 10:22 AM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] HOME env variable required
Thanks for the idea. I''ll look for HOME first followed by USERPROFILE
before failing with a better message than that :)
- John
Sent from my phone
________________________________
From: Brad Wilson <dotnetguy at gmail.com>
Sent: Sunday, June 29, 2008 8:57 AM
To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org>
Subject: Re: [Ironruby-core] HOME env variable required
%HOME% is not reliably set. Some OSes will make it a combination of
%HOMEDRIVE%%HOMEPATH%, but many don''t (it''s not set on my
Vista x64 box, for example).
A much more reliable environment variable seems to be %USERPROFILE%.
On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin <bacondarwin at
googlemail.com<mailto:bacondarwin at googlemail.com>> wrote:
I checked out r116 from SVN into a new clean folder. This is what I got:
D:\dev\ruby\ironruby\head>rake compile
(in D:/dev/ruby/ironruby/head)
rake aborted!
private method `gsub'' called for nil:NilClass
D:/dev/ruby/ironruby/head/rakefile:15
(See full trace by running task with --trace)
Taking a look at the rakefile,
SPEC_HOME = ENV[''HOME''].gsub(''\\'',
''/'') + ''/dev''
So the problem is that I don''t have a HOME variable set. Am I unusual
in this respect? Do most people have this set on their Windows machines by
default?
Cheers,
Pete
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core
--
http://bradwilson.typepad.com/
http://social.zune.net/member/AgilistBrad
http://www.flickr.com/photos/dotnetguy/
How conventional in the Ruby World in general is it to expect the HOME
variable to exist?
Wouldn''t it be easier to have a check at the start of the RakeFile and
spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) if it
is nil? Then you don''t need to go and hack the specs themselves.
Pete
-----Original Message-----
From: ironruby-core-bounces at rubyforge.org
[mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville
Sent: Monday,30 June 30, 2008 00:34
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] HOME env variable required
I have already hacked a couple of them to make them look for the HOME then
USERPROFILE. That''s a relic of the spec''s being developed
mostly on *nix.
________________________________________
From: ironruby-core-bounces at rubyforge.org
[ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher
[curth at microsoft.com]
Sent: Sunday, June 29, 2008 4:21 PM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] HOME env variable required
I would bet that some of the specs themselves assume that HOME is defined as
well.
From: ironruby-core-bounces at rubyforge.org
[mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam
(IRONRUBY)
Sent: Sunday, June 29, 2008 10:22 AM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] HOME env variable required
Thanks for the idea. I''ll look for HOME first followed by USERPROFILE
before
failing with a better message than that :)
- John
Sent from my phone
________________________________
From: Brad Wilson <dotnetguy at gmail.com>
Sent: Sunday, June 29, 2008 8:57 AM
To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org>
Subject: Re: [Ironruby-core] HOME env variable required
%HOME% is not reliably set. Some OSes will make it a combination of
%HOMEDRIVE%%HOMEPATH%, but many don''t (it''s not set on my
Vista x64 box, for
example).
A much more reliable environment variable seems to be %USERPROFILE%.
On Sun, Jun 29, 2008 at 4:34 AM, Peter Bacon Darwin
<bacondarwin at googlemail.com<mailto:bacondarwin at
googlemail.com>> wrote:
I checked out r116 from SVN into a new clean folder. This is what I got:
D:\dev\ruby\ironruby\head>rake compile
(in D:/dev/ruby/ironruby/head)
rake aborted!
private method `gsub'' called for nil:NilClass
D:/dev/ruby/ironruby/head/rakefile:15
(See full trace by running task with --trace)
Taking a look at the rakefile,
SPEC_HOME = ENV[''HOME''].gsub(''\\'',
''/'') + ''/dev''
So the problem is that I don''t have a HOME variable set. Am I unusual
in
this respect? Do most people have this set on their Windows machines by
default?
Cheers,
Pete
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core
--
http://bradwilson.typepad.com/
http://social.zune.net/member/AgilistBrad
http://www.flickr.com/photos/dotnetguy/
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
Peter Bacon Darwin:> How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn''t it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don''t need to go and hack the specs themselves.In the new world, we''ll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John
Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) <jflam at microsoft.com> wrote:> Peter Bacon Darwin: > > > How conventional in the Ruby World in general is it to expect the HOME > > variable to exist? > > Wouldn''t it be easier to have a check at the start of the RakeFile and > > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > > if it is nil? Then you don''t need to go and hack the specs themselves. > > In the new world, we''ll likely have to modify the mspec spec runner and > contribute the changes back to the mspec project. specrunner.rb and friends > are effectively deprecated today. > > Thanks, > -John > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080630/f0e30197/attachment.html>
That only works for IronRuby but not for running the Rakefile under CRuby. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:04 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) <jflam at microsoft.com> wrote: Peter Bacon Darwin:> How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn''t it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don''t need to go and hack the specs themselves.In the new world, we''ll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080630/deb2ec7b/attachment.html>
It seems like it should be a separate environmental thing though. I would have the rakefile itself define HOME based on USERPROFILE if it doesn''t exist then. I''d rather not see something like that put into the specs themselves. On Mon, Jun 30, 2008 at 11:16 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote:> That only works for IronRuby but not for running the Rakefile under > CRuby. > > Pete > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Michael Letterle > *Sent:* Monday,30 June 30, 2008 16:04 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] HOME env variable required > > > > Or add the HOME logic to irvars.bat > > On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) <jflam at microsoft.com> > wrote: > > Peter Bacon Darwin: > > > > How conventional in the Ruby World in general is it to expect the HOME > > variable to exist? > > Wouldn''t it be easier to have a check at the start of the RakeFile and > > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > > if it is nil? Then you don''t need to go and hack the specs themselves. > > In the new world, we''ll likely have to modify the mspec spec runner and > contribute the changes back to the mspec project. specrunner.rb and friends > are effectively deprecated today. > > Thanks, > -John > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080630/e034cbca/attachment-0001.html>
Yep that was my point. Do the same thing in the spec_runner.rb or whatever file replaces it in the New World. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required It seems like it should be a separate environmental thing though. I would have the rakefile itself define HOME based on USERPROFILE if it doesn''t exist then. I''d rather not see something like that put into the specs themselves. On Mon, Jun 30, 2008 at 11:16 AM, Peter Bacon Darwin <bacondarwin at googlemail.com> wrote: That only works for IronRuby but not for running the Rakefile under CRuby. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:04 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) <jflam at microsoft.com> wrote: Peter Bacon Darwin:> How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn''t it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don''t need to go and hack the specs themselves.In the new world, we''ll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080630/3596f50d/attachment.html>
Actually, a better place in either case is spec_helper.rb. That way it doesn''t depend on the runner, and once we are able to run files directly, they will get the var too. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Monday, June 30, 2008 8:34 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Yep that was my point. Do the same thing in the spec_runner.rb or whatever file replaces it in the New World. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:21 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required It seems like it should be a separate environmental thing though. I would have the rakefile itself define HOME based on USERPROFILE if it doesn''t exist then. I''d rather not see something like that put into the specs themselves. On Mon, Jun 30, 2008 at 11:16 AM, Peter Bacon Darwin <bacondarwin at googlemail.com<mailto:bacondarwin at googlemail.com>> wrote: That only works for IronRuby but not for running the Rakefile under CRuby. Pete From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Michael Letterle Sent: Monday,30 June 30, 2008 16:04 To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> Subject: Re: [Ironruby-core] HOME env variable required Or add the HOME logic to irvars.bat On Mon, Jun 30, 2008 at 10:31 AM, John Lam (IRONRUBY) <jflam at microsoft.com<mailto:jflam at microsoft.com>> wrote: Peter Bacon Darwin:> How conventional in the Ruby World in general is it to expect the HOME > variable to exist? > Wouldn''t it be easier to have a check at the start of the RakeFile and > spec_runner.rb that creates the HOME variable (from USERPROFILE, etc) > if it is nil? Then you don''t need to go and hack the specs themselves.In the new world, we''ll likely have to modify the mspec spec runner and contribute the changes back to the mspec project. specrunner.rb and friends are effectively deprecated today. Thanks, -John _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080630/f1a2f596/attachment-0001.html>