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

EventSink with a _Socket sink throws no instance method 'addError' #26525

Open
algobardo opened this issue May 24, 2016 · 0 comments
Open

EventSink with a _Socket sink throws no instance method 'addError' #26525

algobardo opened this issue May 24, 2016 · 0 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@algobardo
Copy link

algobardo commented May 24, 2016

import "dart:io";
import "dart:async";
void main() async {
  Process p = await Process.start("ls", []);
  p.stdin.addError(new Exception());
}

causes

Unhandled exception:
Class '_Socket' has no instance method 'addError'.

NoSuchMethodError: method not found: 'addError'
Receiver: Instance of '_Socket'
Arguments: [Instance of '_Exception', null]
#0      Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
#1      Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#2      _StdSink.addError (dart:io/stdio.dart:262)
@algobardo algobardo changed the title EventSink with a _Socket sink EventSink with a _Socket sink throws no instance method 'addError' May 25, 2016
@floitschG floitschG added area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io labels May 25, 2016
@zanderso zanderso added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants