dart-archive / vm_service_client

A Darty client for the VM service protocol
https://pub.dev/packages/vm_service_client
BSD 3-Clause "New" or "Revised" License
12 stars 19 forks source link

Not compatible with Dart 2? #21

Closed srawlins closed 6 years ago

srawlins commented 6 years ago

I have Dart 2.0.0-dev.16.0, and I cannot get the tests to pass :( Lots of errors with LineSplitter and _StdStream like so:

00:19 +1 ~1 -110: test/vm_test.dart: includes the VM's metadata [E]
  type 'LineSplitter' is not a subtype of type 'Converter<String, dynamic>' of 'next' where
    LineSplitter is from dart:convert
    Converter is from dart:convert
    String is from dart:core

  dart:convert             Utf8Decoder.fuse
  test/utils.dart 13:28    lines
  test/utils.dart 13:7     lines
  test/utils.dart 61:57    runAndConnect
  ===== asynchronous gap ===========================
  dart:async               _Completer.completeError
  test/utils.dart          runAndConnect
  ===== asynchronous gap ===========================
  dart:async               _asyncThenWrapperHelper
  test/utils.dart 16:50    runAndConnect
  test/vm_test.dart 19:20  main.<fn>
  ===== asynchronous gap ===========================
  dart:async               new Future.microtask
  test/vm_test.dart 17:47  main.<fn>

00:19 +1 ~1 -111: test/script_test.dart: sourceSpan() compareTo() is ordered by start location [E]
  NoSuchMethodError: The method 'bind' was called on null.
  Receiver: null
  Tried calling: bind(Instance of '_StdStream')
  dart:async                   Stream.transform
  test/utils.dart 61:47        runAndConnect
  ===== asynchronous gap ===========================
  dart:async                   _Completer.completeError
  test/utils.dart              runAndConnect
  ===== asynchronous gap ===========================
  dart:async                   _asyncThenWrapperHelper
  test/utils.dart 16:50        runAndConnect
  test/script_test.dart 21:20  main.<fn>
  ===== asynchronous gap ===========================
  dart:async                   new Future.microtask
  test/script_test.dart 20:18  main.<fn>