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

zef upgrade zef fails #229

Closed
stmuk opened this issue Feb 10, 2018 · 2 comments
Closed

zef upgrade zef fails #229

stmuk opened this issue Feb 10, 2018 · 2 comments

Comments

@stmuk
Copy link

stmuk commented Feb 10, 2018

Using Rakudo Star 2018.01 and the shipped version of zef

$ zef upgrade zef
===> Searching for: zef
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan.json
===> Updated p6c mirror: http://ecosystem-api.p6c.org/projects.json
Unsure how to update 'zef:ver<0.2.2>:authgithub:ugexe'
===SORRY!===
next without loop construct

@ugexe
Copy link
Owner

ugexe commented Feb 11, 2018

Sorting is broke on non-blead rakudo. A workaround in zef was implemented in d533086 but this is a newer version than what comes with rakudo star 2018.01 -- so don't recommend using zef upgrade zef

Here are some suggestions for this specific case:

  • zef install "zef:ver<0.2.2+>"
  • zef install https://github.com/ugexe/zef/archive/v0.2.2.tar.gz

Finally (optional): zef uninstall "zef:ver<0.2.1>"


$ perl6 -e '(^5).classify: { next() }'
===SORRY!===
next without loop construct

I did not know classify wasn't a loop ( thought it was basically a specialized map ). Will need to fix this.

ugexe added a commit that referenced this issue Feb 18, 2018
.classify is not a loop construct like map/grep, so next() causes
an error when used inside of it if it is reached at runtime.

See: #229
@JJ
Copy link
Contributor

JJ commented Jun 12, 2019

Same error here

@ugexe ugexe closed this as completed Oct 10, 2021
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

3 participants