Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is use v5 still a thing? #6090

Closed
p6rt opened this issue Feb 22, 2017 · 6 comments
Closed

Is use v5 still a thing? #6090

p6rt opened this issue Feb 22, 2017 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Feb 22, 2017

Migrated from rt.perl.org#130834 (status was 'resolved')

Searchable as RT130834$

@p6rt
Copy link
Author

p6rt commented Feb 22, 2017

From @zoffixznet

I notice the first thing[^1] our `use` pragma looks for when it gets a version is `v5` and tries to load `Perl 5` module​:

That doesn't appear to be a thing any more. Should that conditional be tossed from the grammar?

  m​: use v5
  13​:41 camelia rakudo-moar 91a4ac​: OUTPUT​: «===SORRY!===␤Could not find Perl5 at line 1 in​:␤ /home/camelia/.perl6␤ /home/camelia/rakudo-m-inst-1/share/perl6/site␤ /home/camelia/rakudo-m-inst-1/share/perl6/vendor␤ /home/camelia/rakudo-m-inst-1/share/perl6␤ CompUnit​::Repos…»

https://github.com/rakudo/rakudo/blob/91a4ac5a671b7943793a8fdb13a2fda952671f71/src/Perl6/Grammar.nqp#L1595-L1599

@p6rt
Copy link
Author

p6rt commented Feb 22, 2017

From @AlexDaniel

I guess it would be nice to explain that this is perl6 and not perl5?

It has been like this for a while, by the way​: https://gist.github.com/Whateverable/e98bc397f6e5aee2adc5930a2a06766f

On 2017-02-22 05​:45​:54, cpan@​zoffix.com wrote​:

I notice the first thing[^1] our `use` pragma looks for when it gets a
version is `v5` and tries to load `Perl 5` module​:

That doesn't appear to be a thing any more. Should that conditional be
tossed from the grammar?

m​: use v5
13​:41 camelia rakudo-moar 91a4ac​: OUTPUT​:
«===SORRY!===␤Could not find Perl5 at line 1 in​:␤
/home/camelia/.perl6␤ /home/camelia/rakudo-m-inst-
1/share/perl6/site␤ /home/camelia/rakudo-m-inst-
1/share/perl6/vendor␤ /home/camelia/rakudo-m-inst-1/share/perl6␤
CompUnit​::Repos…»

https://github.com/rakudo/rakudo/blob/91a4ac5a671b7943793a8fdb13a2fda952671f71/src/Perl6/Grammar.nqp#L1595-
L1599

@p6rt
Copy link
Author

p6rt commented Feb 22, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 22, 2017

From @geekosaur

It should do *something*; I suspect the intent was to offload that
something, since there was at one point the idea of exec()ing a perl 5. At
the very least it should throw --- but that might be handled sufficiently
by the default.

On Wed, Feb 22, 2017 at 8​:45 AM, Zoffix Znet <perl6-bugs-followup@​perl.org>
wrote​:

# New Ticket Created by Zoffix Znet
# Please include the string​: [perl #​130834]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130834 >

I notice the first thing[^1] our `use` pragma looks for when it gets a
version is `v5` and tries to load `Perl 5` module​:

That doesn't appear to be a thing any more. Should that conditional be
tossed from the grammar?

 m&#8203;: use v5
13&#8203;:41       camelia         rakudo\-moar 91a4ac&#8203;: OUTPUT&#8203;:

«===SORRY!===␤Could not find Perl5 at line 1 in​:␤ /home/camelia/.perl6␤
/home/camelia/rakudo-m-inst-1/share/perl6/site␤
/home/camelia/rakudo-m-inst-1/share/perl6/vendor␤
/home/camelia/rakudo-m-inst-1/share/perl6␤ CompUnit​::Repos…»

https://github.com/rakudo/rakudo/blob/91a4ac5a671b7943793a8fdb13a2fd
a952671f71/src/Perl6/Grammar.nqp#L1595-L1599

--
brandon s allbery kf8nh sine nomine associates
allbery.b@​gmail.com ballbery@​sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

@p6rt
Copy link
Author

p6rt commented Oct 7, 2017

From @zoffixznet

On Wed, 22 Feb 2017 05​:45​:54 -0800, cpan@​zoffix.com wrote​:

I notice the first thing[^1] our `use` pragma looks for when it gets a
version is `v5` and tries to load `Perl 5` module​:

That doesn't appear to be a thing any more. Should that conditional be
tossed from the grammar?

m​: use v5
13​:41 camelia rakudo-moar 91a4ac​: OUTPUT​:
«===SORRY!===␤Could not find Perl5 at line 1 in​:␤
/home/camelia/.perl6␤ /home/camelia/rakudo-m-inst-
1/share/perl6/site␤ /home/camelia/rakudo-m-inst-
1/share/perl6/vendor␤ /home/camelia/rakudo-m-inst-1/share/perl6␤
CompUnit​::Repos…»

https://github.com/rakudo/rakudo/blob/91a4ac5a671b7943793a8fdb13a2fda952671f71/src/Perl6/Grammar.nqp#L1595-
L1599

Fix and tests in rakudo/rakudo@4868e9271a

@p6rt
Copy link
Author

p6rt commented Oct 7, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant