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

LTA: require of non installed module #6683

Closed
p6rt opened this issue Apr 13, 2018 · 5 comments
Closed

LTA: require of non installed module #6683

p6rt opened this issue Apr 13, 2018 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 13, 2018

Migrated from rt.perl.org#133107 (status was 'resolved')

Searchable as RT133107$

@p6rt
Copy link
Author

p6rt commented Apr 13, 2018

From martin@senfdax.de

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

@p6rt
Copy link
Author

p6rt commented Apr 13, 2018

From @lizmat

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.

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-archive.perl.org/perl6/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

@p6rt
Copy link
Author

p6rt commented Apr 13, 2018

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

@p6rt
Copy link
Author

p6rt commented Apr 13, 2018

From @zoffixznet

On Thu, 12 Apr 2018 23​:34​:43 -0700, martin@​senfdax.de wrote​:

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​: rakudo/rakudo@4b2512a22236e09
Test​: rakudo/rakudo@4b2512a22236e09

@p6rt p6rt closed this as completed Apr 13, 2018
@p6rt
Copy link
Author

p6rt commented Apr 13, 2018

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

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

1 participant