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

Use of Nil in string context #6161

Open
p6rt opened this issue Mar 22, 2017 · 6 comments
Open

Use of Nil in string context #6161

p6rt opened this issue Mar 22, 2017 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Mar 22, 2017

Migrated from rt.perl.org#131041 (status was 'open')

Searchable as RT131041$

@p6rt
Copy link
Author

p6rt commented Mar 22, 2017

From @coke

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

@p6rt
Copy link
Author

p6rt commented Mar 22, 2017

From @niner

With commit 6a77cda33534bce50933572604ee5f8e1c228fa8 we now detect the error.

@p6rt
Copy link
Author

p6rt commented Mar 22, 2017

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

@p6rt
Copy link
Author

p6rt commented Mar 22, 2017

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

@p6rt
Copy link
Author

p6rt commented Mar 22, 2017

From @AlexDaniel

Tests?

On 2017-03-22 12​:59​:20, nine@​detonation.org wrote​:

With commit 6a77cda33534bce50933572604ee5f8e1c228fa8 we now detect the
error.

@p6rt
Copy link
Author

p6rt commented Mar 22, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant