Skip Menu |
Report information
Id: 133107
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: martin [at] senfdax.de
Cc:
AdminCc:

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



Subject: LTA: require of non installed module
From: Martin Barth <martin [...] senfdax.de>
Date: Fri, 13 Apr 2018 08:34:30 +0200
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 259b
requireing a non installed module leads to strange error if the name starts with the name of a core module. e.g: Show quoted text
> perl6 -e 'require IO::Socket::Async::SSL'
IO::Socket::Async::SSL is a builtin type, not an external module   in block <unit> at -e line 1
To: "Martin Barth (via RT)" <perl6-bugs-followup [...] perl.org>
Date: Fri, 13 Apr 2018 10:45:42 +0200
Subject: Re: [perl #133107] LTA: require of non installed module
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
The problem is actually caused by the error reporting: https://github.com/rakudo/rakudo/blob/08b951c8f33cfc702c308e64efcb44f3ec725117/src/core/Exception.pm6#L2969 The only heuristic I’ve been able to find so far that the value of $ns{$_} suddenly is no longer fully qualified if the namespace doesn’t exist. I guess we can build some heuristic check on that, but it feels fragile. Perhaps nine / ugexe / jnthn have a better idea about that. Show quoted text
> On 13 Apr 2018, at 08:34, Martin Barth (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Martin Barth > # Please include the string: [perl #133107] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=133107 > > > > requireing a non installed module leads to strange error if the name > starts with the name of a core module. e.g: > >
>> perl6 -e 'require IO::Socket::Async::SSL'
> IO::Socket::Async::SSL is a builtin type, not an external module > in block <unit> at -e line 1
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 505b
On Thu, 12 Apr 2018 23:34:43 -0700, martin@senfdax.de wrote: Show quoted text
> requireing a non installed module leads to strange error if the name > starts with the name of a core module. e.g: > >
> > perl6 -e 'require IO::Socket::Async::SSL'
> IO::Socket::Async::SSL is a builtin type, not an external module >   in block <unit> at -e line 1
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/4b2512a22236e09 Test: https://github.com/rakudo/rakudo/commit/4b2512a22236e09


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