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

Generation Code Issue (Dart 17657) NoSuchMethodError : method not found: 'call' #1

Open
eflauzo opened this issue Jan 29, 2013 · 3 comments

Comments

@eflauzo
Copy link

eflauzo commented Jan 29, 2013

I tried to generate code using plugin, and generation fails with following exception :

Unhandled exception:
NoSuchMethodError : method not found: 'call'
Receiver: false
Arguments: []
#0 _FutureImpl._scheduleUnhandledError. (dart:async:300:9)
#1 _Timer._createTimerHandler._handleTimeout (dart:io:7238:28)
#2 _Timer._createTimerHandler._handleTimeout (dart:io:7246:7)
#3 _Timer._createTimerHandler. (dart:io:7254:23)
#4 _ReceivePortImpl._handleMessage (dart:isolate-patch:40:92)

--dart_out: protoc-gen-dart: Plugin failed with status code 255.

@drt24
Copy link
Member

drt24 commented Jan 29, 2013

I get exactly the same problem and am rather unsure as to how to debug it and make progress on working out what is going wrong. Hopefully someone else will be able to help.

@drt24
Copy link
Member

drt24 commented Feb 1, 2013

I have merged the relevant looking changes from https://github.com/eflauzo/ProtocolBuffers-Dart.git but this has not solved the problem and I am unsure as to how to proceed as I haven't worked out how to connect the debugger as dart needs to be started by protoc to get the right input on stdin.

@eflauzo
Copy link
Author

eflauzo commented Feb 1, 2013

hmmm interesting.

yes, it is impossible to know what fail from protoc consle output only. I think what you saying it might worth a trying to run it from Dart it self, passing command line parameters, and then in main function of ProtocGenDart module,

change CodeGenerator cg = new CodeGenerator(config, stdin, stdout, stderr);
to file streams instead of stdin and stdout

then in Dart debugger output should see what paramters was passed to which object then NoSuchMethodError exception been thrown.

I will try to look on it later on.

but what im gessing is you meged code with eflauzo/ProtocolBuffers-Dart.git and still haveing issues, maybe error come from "fixnum" library not actually from protocol buffers. lib? Will see.

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

2 participants