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

Missing line/column number information when using a missing module #5235

Closed
p6rt opened this issue Apr 12, 2016 · 5 comments
Closed

Missing line/column number information when using a missing module #5235

p6rt opened this issue Apr 12, 2016 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 12, 2016

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

Searchable as RT127883$

@p6rt
Copy link
Author

p6rt commented Apr 12, 2016

From @azawawi

use NotFoundModule;

or

use NotInstalledModule;

produces no line/column number error information in the error message.

@p6rt
Copy link
Author

p6rt commented Apr 16, 2016

From @zoffixznet

I, unsuccessfully, tried my hand and fixing this. Just adding a few comments with what little I found​:

This gives a bit of info on what gets called​:

  $ perl6 -e 'EVAL "use Foo"; CATCH { default { warn .backtrace }}'

  in any load_module at src/Perl6/World.nqp line 986
  in any do_pragma_or_load_module at src/Perl6/World.nqp line 917
  in any statement_control​:sym<use> at src/Perl6/Grammar.nqp line 1537
  in any statement_control at ./blib/Perl6/Grammar.moarvm line 1
  in any statement at src/Perl6/Grammar.nqp line 1232
  in any statementlist at src/Perl6/Grammar.nqp line 1161
  in block at -e line 1

If you pop open src/Perl6/World.nqp and look at load_module sub, it uses nqp to call .head.need on CompUnit​::RepositoryRegistry, passing it a spec. And if you reproduce that with Perl 6 directly, then the issue described in this bug report goes away and you *do* get a line number reported​:

  $perl6 -e 'CompUnit​::RepositoryRegistry.head.need( CompUnit​::DependencySpecification.new( :short-name<Foo> ) );'
  Could not find Foo in​:
  /home/zoffix/.perl6
  /home/zoffix/dev-p6/rakudo/install/share/perl6/site
  /home/zoffix/dev-p6/rakudo/install/share/perl6/vendor
  /home/zoffix/dev-p6/rakudo/install/share/perl6
  CompUnit​::Repository​::AbsolutePath<140420294071144>
  CompUnit​::Repository​::NQP<140420294068392>
  CompUnit​::Repository​::Perl5<140420294065800>
  in block <unit> at -e line 1

No idea where to take it from here...

@p6rt
Copy link
Author

p6rt commented Apr 16, 2016

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

@p6rt
Copy link
Author

p6rt commented Apr 17, 2016

From @azawawi

It is now fixed on latest. Please close this ticket.

2016-04-16 9​:55 GMT+03​:00 Zoffix Znet via RT <perl6-bugs-followup@​perl.org>​:

I, unsuccessfully, tried my hand and fixing this. Just adding a few
comments with what little I found​:

This gives a bit of info on what gets called​:

$ perl6 -e 'EVAL "use Foo"; CATCH { default { warn .backtrace }}'

in any load_module at src/Perl6/World.nqp line 986
in any do_pragma_or_load_module at src/Perl6/World.nqp line 917
in any statement_control​:sym<use> at src/Perl6/Grammar.nqp line 1537
in any statement_control at ./blib/Perl6/Grammar.moarvm line 1
in any statement at src/Perl6/Grammar.nqp line 1232
in any statementlist at src/Perl6/Grammar.nqp line 1161
in block at -e line 1

If you pop open src/Perl6/World.nqp and look at load_module sub, it uses
nqp to call .head.need on CompUnit​::RepositoryRegistry, passing it a spec.
And if you reproduce that with Perl 6 directly, then the issue described in
this bug report goes away and you *do* get a line number reported​:

$perl6 -e 'CompUnit​::RepositoryRegistry.head.need(
CompUnit​::DependencySpecification.new( :short-name<Foo> ) );'
Could not find Foo in​:
/home/zoffix/.perl6
/home/zoffix/dev-p6/rakudo/install/share/perl6/site
/home/zoffix/dev-p6/rakudo/install/share/perl6/vendor
/home/zoffix/dev-p6/rakudo/install/share/perl6
CompUnit​::Repository​::AbsolutePath<140420294071144>
CompUnit​::Repository​::NQP<140420294068392>
CompUnit​::Repository​::Perl5<140420294065800>
in block <unit> at -e line 1

No idea where to take it from here...

@p6rt p6rt closed this as completed May 2, 2016
@p6rt
Copy link
Author

p6rt commented May 2, 2016

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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant