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 file/line information in error #4257

Closed
p6rt opened this issue May 21, 2015 · 4 comments
Closed

Missing file/line information in error #4257

p6rt opened this issue May 21, 2015 · 4 comments

Comments

@p6rt
Copy link

p6rt commented May 21, 2015

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

Searchable as RT125228$

@p6rt
Copy link
Author

p6rt commented May 21, 2015

From @drforr

This should likely report the missing definition of C<LIB>, but instead
it throws 'Cannot invoke this object...' with no file or line number
attached. And, while I imagine REPR​: Null is referring to the fact that
native() isn't being passed an object, it's still a bit unclear.

Sample source​:

--cut here--
use v6;
use NativeCall;
sub rl_unbind_key( Int ) returns Int is native( LIB ) { * }
--cut here--

Error that I get​:

--cut here--
perl6-readline$ perl6 ./bug.t
===SORRY!===
Cannot invoke this object (REPR​: Null, cs = 0)
--cut here--

@p6rt
Copy link
Author

p6rt commented Jun 23, 2015

From @jnthn

On Thu May 21 06​:17​:37 2015, drforr@​pobox.com wrote​:

This should likely report the missing definition of C<LIB>, but instead
it throws 'Cannot invoke this object...' with no file or line number
attached. And, while I imagine REPR​: Null is referring to the fact that
native() isn't being passed an object, it's still a bit unclear.

Sample source​:

--cut here--
use v6;
use NativeCall;
sub rl_unbind_key( Int ) returns Int is native( LIB ) { * }
--cut here--

Error that I get​:

--cut here--
perl6-readline$ perl6 ./bug.t
===SORRY!===
Cannot invoke this object (REPR​: Null, cs = 0)
--cut here--

Now it reports​:

===SORRY!=== Error while compiling bug3.p6
Undeclared name​:
  LIB used at line 3

Which should be rather more helpful. Added a test to cover it in S32-exceptions/misc.t.

@p6rt
Copy link
Author

p6rt commented Jun 23, 2015

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

@p6rt
Copy link
Author

p6rt commented Jun 23, 2015

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

@p6rt p6rt closed this as completed Jun 23, 2015
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