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

bug or error message not informative #3513

Open
p6rt opened this issue Sep 10, 2014 · 3 comments
Open

bug or error message not informative #3513

p6rt opened this issue Sep 10, 2014 · 3 comments
Labels
LTA Less Than Awesome; typically an error message that could be better NativeCall

Comments

@p6rt
Copy link

p6rt commented Sep 10, 2014

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

Searchable as RT122750$

@p6rt
Copy link
Author

p6rt commented Sep 10, 2014

From anteusz@freemail.hu

Hi all,

use NativeCall;
class TopWindow is repr('CPointer') {
multi sub TopWindow_TopWindow_c() returns OpaquePointer is
native("ultimatewindll") { * } #symbol('TopWindow_TopWindow_c')

multi method new() {
  return TopWindow_TopWindow_c();}

}

TopWindow.new();

This gives me

Cannot invoke object with invocation handler in this context
  in sub TopWindow_TopWindow_c at D​:\m\p6\nativecalltest2.p6​:3
  in method new at D​:\m\p6\nativecalltest2.p6​:5
  in block at D​:\m\p6\nativecalltest2.p6​:11

jaffa4

@p6rt
Copy link
Author

p6rt commented Oct 3, 2017

From @AlexDaniel

Any ideas on what could be a better error message?

On 2014-09-10 10​:53​:18, equinox wrote​:

Hi all,

use NativeCall;
class TopWindow is repr('CPointer') {
multi sub TopWindow_TopWindow_c() returns OpaquePointer is
native("ultimatewindll") { * } #symbol('TopWindow_TopWindow_c')

multi method new() {
return TopWindow_TopWindow_c();}

}

TopWindow.new();

This gives me

Cannot invoke object with invocation handler in this context
in sub TopWindow_TopWindow_c at D​:\m\p6\nativecalltest2.p6​:3
in method new at D​:\m\p6\nativecalltest2.p6​:5
in block at D​:\m\p6\nativecalltest2.p6​:11

jaffa4

@p6rt
Copy link
Author

p6rt commented Oct 3, 2017

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

@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better NativeCall labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better NativeCall
Projects
None yet
Development

No branches or pull requests

1 participant