ugexe / zef

Raku Module Management
Artistic License 2.0
207 stars 44 forks source link

Command `zef install ...` results in `Type check failed for return value; expected IO::Path but got Any (Any)` #498

Closed xylemase closed 1 year ago

xylemase commented 1 year ago

Context

I've used Zef in the distant past to install Perl6/Raku modules. When I try to do it recently, it always results in "Type check failed for return value; expected IO::Path but got Any (Any)", sometimes accompanied by other messages. But the quoted message is common to every run and is sometimes the only message.

Expected Behavior

Zef should install the module I ask it to.

Actual Behavior

I also tried running zef install .. This gives only the message above, even when running with --verbose and --debug flags: (base) mgipson-ltmx7ad:my_naive_dir mgipson$ zef --verbose --debug install . Type check failed for return value; expected IO::Path but got Any (Any)

Steps to Reproduce

Your Environment

xylemase commented 1 year ago

Per ugexe's kind suggestion, I will try zef nuke home site StoreDir and update the results here:

(base) mgipson-ltmx7ad:Git mgipson$ zef nuke home site StoreDir
Delete /Users/mgipson/.raku/* [y/n]: y 
Deleted 319 paths from /Users/mgipson/.raku/*
Delete /usr/local/Cellar/rakudo-star/2022.04/share/perl6/site/* [y/n]: y
Deleted 668 paths from /usr/local/Cellar/rakudo-star/2022.04/share/perl6/site/*
Delete /Users/mgipson/.zef/store/* [y/n]: y
Deleted 628 paths from /Users/mgipson/.zef/store/*
Saw 1 occurrence of deprecated code.
================================================================================
Method path (from Cool) seen at:
  /usr/local/Cellar/rakudo-star/2022.04/share/perl6/vendor/sources/3D10EB38547199751A149A7FBA27AD8080B74ECF (Zef::CLI), line 987
Please use IO instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
(base) mgipson-ltmx7ad:Git mgipson$