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 fails to install Task::Star #113

Closed
ufobat opened this issue Dec 2, 2016 · 2 comments
Closed

zef fails to install Task::Star #113

ufobat opened this issue Dec 2, 2016 · 2 comments

Comments

@ufobat
Copy link

ufobat commented Dec 2, 2016

after doing a rakudobrew build moar 2016.11
and rakudobrew build zef

zef install Task::Star Bailador
===> Searching for: Task::Star, Bailador
===> Searching for missing dependencies: HTTP::Easy, Template::Mojo, Template::Mustache, URI, Digest::HMAC, Digest, HTTP::MultiPartParser, Debugger::UI::CommandLine, ufo, XML::Writer, SVG, SVG::Plot, Terminal::ANSIColor, Test::Mock, Grammar::Profiler::Simple, Grammar::Debugger, JSON::Tiny, Digest::MD5, panda, HTTP::Status, DBIish, Linenoise, LWP::Simple, JSON::RPC, Pod::To::HTML, p6doc, MIME::Base64, PSGI, Shell::Command, File::Find
===> Searching for missing dependencies: JSON::Fast, nqp, LibraryMake, NativeHelpers::Blob, File::Which, File::Temp, Pod::To::BigPage
No such method 'contains-spec' for invocant of type 'Candidate'
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA (Zef::Client) line 134
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA (Zef::Client) line 134
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/1DC0BAA246D0774E7EB4F5119C6168E0D8266EFA (Zef::Client) line 100
in sub MAIN at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/sources/A9948E7371E0EB9AFDF1EEEB07B52A1B75537C31 (Zef::CLI) line 107
in block at /home/martin/.rakudobrew/moar-2016.11/install/share/perl6/site/resources/3DD33EF601FD300095284AE7C24B770BAADAF32E line 1

@ufobat ufobat changed the title zef fails do install Task::Star zef fails to install Task::Star Dec 2, 2016
ugexe added a commit that referenced this issue Dec 2, 2016
Fixes an error that prevented an understandable error message from being shown

#113
@ugexe
Copy link
Owner

ugexe commented Dec 2, 2016

The error itself was in code creating an actual error message, so it was going to fail either way. I can't tell from the output, but my guess is it's because of the "nqp" dependency showing up, which was recently removed from Terminal::ANSIColor (pragmas don't belong in depends as there is no way to get a list of pragmas the compiler supports).

If you 'zef update' (with or without the latest zef PR) it should fix your issue (presumably updating the package list that already existed). If it still doesn't work it means Terminal::ANSIColor is already cached (and since it did not receive a version bump for the nqp change it doesn't know its cache is stale) and you'll have to first do zef nuke RootDir (which deletes zef's root directory ~/.zef, where its cache is stored)

@ugexe
Copy link
Owner

ugexe commented Dec 14, 2016

zef update should indeed fix this for anyone having this problem: see here

I'll leave this open so anyone having this problem can find the solution. In the mean time I will think of a way to rework how caching is used in regards to auto-updating the remote package lists such that things just Do What I Mean

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

2 participants