Skip Menu |
Report information
Id: 131041
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: coke <will [at] coleda.com>
Cc:
AdminCc:

Severity: (no value)
Tag: testneeded
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Wed, 22 Mar 2017 09:45:39 -0400
To: rakudobug [...] perl.org
Subject: Use of Nil in string context
From: Will Coleda <will [...] coleda.com>
Download (untitled) / with headers
text/plain 1015b
Trying to use a non-existing module that matches a distribution name generates useless diagnostics: $ perl6 -e 'use zef' Use of Nil in string context in any statement_control at /Users/coke/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 Use of Nil in string context in any statement_control at /Users/coke/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm line 1 Can not run directory /Users/coke/.rakudobrew/moar-nom/install/share/perl6/site/sources. Whereas something that doesn't match at all gives the more useful: $ perl6 -e 'use ZEf' ===SORRY!=== Could not find ZEf at line 1 in: /Users/coke/.perl6 /Users/coke/.rakudobrew/moar-nom/install/share/perl6/site /Users/coke/.rakudobrew/moar-nom/install/share/perl6/vendor /Users/coke/.rakudobrew/moar-nom/install/share/perl6 CompUnit::Repository::AbsolutePath<140657832550000> CompUnit::Repository::NQP<140657809866136> CompUnit::Repository::Perl5<140657809866176> -- Will "Coke" Coleda
With commit 6a77cda33534bce50933572604ee5f8e1c228fa8 we now detect the error.
Tests?

On 2017-03-22 12:59:20, nine@detonation.org wrote:
Show quoted text
> With commit 6a77cda33534bce50933572604ee5f8e1c228fa8 we now detect the
> error.




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org