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

Dart2 + Coverage not working #15681

Closed
brianegan opened this issue Mar 19, 2018 · 18 comments
Closed

Dart2 + Coverage not working #15681

brianegan opened this issue Mar 19, 2018 · 18 comments
Labels
a: tests "flutter test", flutter_test, or one of our tests c: crash Stack traces logged to the console c: regression It was better in the past than it is now

Comments

@brianegan
Copy link
Contributor

brianegan commented Mar 19, 2018

Hi all, I'm trying to update some of my Flutter libraries, but have found code coverage isn't working. This breaks my CI pipelines and prevents me from tracking code coverage.

Thanks for any help you could provide!

Steps to Reproduce

  1. Create a new project with Flutter
  2. Run the tests with Dart2: flutter test --preview-dart-2
  3. See all tests pass
  4. Run tests with coverage: flutter test --preview-dart-2 --coverage
  5. Fails with the error below

Logs

00:34 +1: - Counter increments smoke test                                                                                                                                                                     unhandled error during test:
/Users/phillywiggins/lab/coverage_test/test/widget_test.dart
Bad state: Couldn't find line and column for token 7708 in dart:core/errors.dart.
00:34 +1 -1: loading /Users/phillywiggins/lab/coverage_test/test/widget_test.dart [E]                                                                                                                         
  Bad state: Couldn't find line and column for token 7708 in dart:core/errors.dart.
  package:flutter_tools/src/test/flutter_platform.dart 493   _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22                             _Completer.completeError
  package:flutter_tools/src/test/flutter_platform.dart       _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:flutter_tools/src/test/flutter_platform.dart 229   _FlutterPlatform._startTest
  package:flutter_tools/src/test/flutter_platform.dart 222   _FlutterPlatform.loadChannel
  package:test/src/runner/plugin/platform.dart 63            PlatformPlugin.load
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/plugin/platform.dart 60            PlatformPlugin.load
  package:test/src/runner/loader.dart 252                    Loader.loadFile.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:test/src/runner/loader.dart 246                    Loader.loadFile.<fn>
  package:test/src/runner/load_suite.dart 89                 new LoadSuite.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>.<fn>
  package:test/src/utils.dart 297                            invoke
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>
  package:test/src/backend/invoker.dart 403                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  dart:async/future.dart 174                                 new Future.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1122                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 925                                   _CustomZone.runGuarded
  dart:async/zone.dart 965                                   _CustomZone.bindCallbackGuarded.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async-patch/dart:async/timer_patch.dart 21            Timer._createTimer.<fn>
  dart:isolate-patch/dart:isolate/timer_impl.dart 382        _Timer._runTimers
  dart:isolate-patch/dart:isolate/timer_impl.dart 416        _Timer._handleMessage
  dart:isolate-patch/dart:isolate/isolate_patch.dart 165     _RawReceivePortImpl._handleMessage
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52                                   new Timer
  dart:async/timer.dart 87                                   Timer.run
  dart:async/future.dart 172                                 new Future
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 144                  Invoker.guard
  package:test/src/backend/invoker.dart 441                  Invoker._guardIfGuarded
  package:test/src/backend/invoker.dart 388                  Invoker._onRun.<fn>
  package:stack_trace/src/chain.dart 101                     Chain.capture.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:stack_trace/src/chain.dart 99                      Chain.capture
  package:test/src/backend/invoker.dart 387                  Invoker._onRun
  package:test/src/backend/live_test_controller.dart 188     LiveTestController._run
  package:test/src/backend/live_test_controller.dart 40      _LiveTest.run
  dart:async/future.dart 200                                 new Future.microtask.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async/schedule_microtask.dart 41                      _microtaskLoop
  dart:async/schedule_microtask.dart 50                      _startMicrotaskLoop
  dart:isolate-patch/dart:isolate/isolate_patch.dart 113     _runPendingImmediateCallback
  dart:isolate-patch/dart:isolate/isolate_patch.dart 166     _RawReceivePortImpl._handleMessage

Flutter Analyze

Analyzing /Users/phillywiggins/lab/coverage_test...
No issues found!
Ran in 5.9s

Flutter Doctor

[✓] Flutter (Channel dev, v0.2.2, on Mac OS X 10.13.3 17D102, locale en-US)
    • Flutter version 0.2.2 at /Users/phillywiggins/lab/flutter
    • Framework revision b9bd51cc36 (6 days ago), 2018-03-13 12:42:29 -0700
    • Engine revision e44cd55fc4
    • Dart version 2.0.0-dev.35.flutter-290c576264

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
    • Android SDK at /Users/phillywiggins/Library/Android/sdk
    • Android NDK at /Users/phillywiggins/Library/Android/sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.2
    • ANDROID_HOME = /Users/phillywiggins/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.3.1

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 22.2.2
    • Dart plugin version 173.4548.30

[✓] VS Code (version 1.21.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.8.2

[✓] Connected devices (2 available)
    • Android SDK built for x86 • emulator-5554                        • android-x86 • Android 8.0.0 (API 26) (emulator)
    • iPhone 8                  • 2110B655-9413-448F-99DD-070FE42E6CA9 • ios         • iOS 11.2 (simulator)

• No issues found!
@envious
Copy link

envious commented Mar 19, 2018

Seemingly this issue was resolved a week or so ago:
Issue raised: dart-lang/sdk#32489
Merged PR: https://dart-review.googlesource.com/c/sdk/+/46141

@brianegan
Copy link
Contributor Author

brianegan commented Mar 19, 2018

Thanks for the info! I didn't see the fix on the latest dev branch, and master wasn't working for me either haha. I'll wait for this change to land on master!

@mraleph
Copy link
Member

mraleph commented Mar 19, 2018

@brianegan this issue should be resolved on master, we rolled the engine that included the Dart side of the fix. I just tried with Channel master, v0.2.3-pre.45 and it does not reproduce.

Can you check if your flutter doctor reports a version string similar to Channel master, v0.2.3-pre.45 after you switched to the master channel? Or is master broken for you in some other way?

@mraleph
Copy link
Member

mraleph commented Mar 19, 2018

Ah I see the master is broken for you due to optional-const/new stuff. We are working towards fixing that up (dart-lang/sdk#32553) but it'll take some time (we are aiming to hit Beta 3).

Unfortunately that means in the meanwhile you can't use optional-const/new feature.

@mraleph
Copy link
Member

mraleph commented Mar 19, 2018

With this patch:

diff --git a/test/flutter_redux_test.dart b/test/flutter_redux_test.dart
index 666f1e7..75fe9e2 100644
--- a/test/flutter_redux_test.dart
+++ b/test/flutter_redux_test.dart
@@ -11,7 +11,7 @@ void main() {
         identityReducer,
         initialState: "I",
       );
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: store,
         child: StoreCaptor<String>(),
       );
@@ -27,7 +27,7 @@ void main() {
     testWidgets('should update the children if the store changes',
         (WidgetTester tester) async {
       Widget widget([String state]) {
-        return StoreProvider<String>(
+        return new StoreProvider<String>(
           store: Store<String>(
             identityReducer,
             initialState: state,
@@ -49,11 +49,11 @@ void main() {
   group('StoreConnector', () {
     testWidgets('initially builds from the current state of the store',
         (WidgetTester tester) async {
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: Store<String>(identityReducer, initialState: "I"),
         child: new StoreBuilder<String>(
           builder: (context, store) {
-            return Text(
+            return new Text(
               store.state,
               textDirection: TextDirection.ltr,
             );
@@ -68,12 +68,12 @@ void main() {
 
     testWidgets('can convert the store to a ViewModel',
         (WidgetTester tester) async {
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: Store<String>(identityReducer, initialState: "I"),
         child: new StoreConnector<String, String>(
           converter: selector,
           builder: (context, latest) {
-            return Text(
+            return new Text(
               latest,
               textDirection: TextDirection.ltr,
             );
@@ -92,11 +92,11 @@ void main() {
         identityReducer,
         initialState: "I",
       );
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: store,
         child: new StoreBuilder<String>(
           builder: (context, store) {
-            return Text(
+            return new Text(
               store.state,
               textDirection: TextDirection.ltr,
             );
@@ -123,7 +123,7 @@ void main() {
         identityReducer,
         initialState: "I",
       );
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: store,
         child: new StoreConnector<String, String>(
           converter: selector,
@@ -155,7 +155,7 @@ void main() {
         identityReducer,
         initialState: "I",
       );
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: store,
         child: new StoreConnector<String, String>(
           converter: selector,
@@ -192,7 +192,7 @@ void main() {
         identityReducer,
         initialState: "I",
       );
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: store,
         child: new StoreConnector<String, String>(
           ignoreChange: (dynamic state) => state == 'N',
@@ -229,7 +229,7 @@ void main() {
         initialState: "A",
       );
       final Widget Function() widget = () {
-        return StoreProvider<String>(
+        return new StoreProvider<String>(
           store: store,
           child: new StoreConnector<String, String>(
             onInit: counter,
@@ -279,7 +279,7 @@ void main() {
         initialState: "I",
       );
       final Widget Function() widget = () {
-        return StoreProvider<String>(
+        return new StoreProvider<String>(
           store: store,
           child: new StoreConnector<String, String>(
             converter: selector,
@@ -309,7 +309,7 @@ void main() {
         initialState: "A",
       );
       final Widget Function() widget = () {
-        return StoreProvider<String>(
+        return new StoreProvider<String>(
           store: store,
           child: new StoreConnector<String, String>(
             onDispose: counter,
@@ -342,7 +342,7 @@ void main() {
         initialState: "A",
       );
       final Widget Function() widget = () {
-        return StoreProvider<String>(
+        return new StoreProvider<String>(
           store: store,
           child: new StoreBuilder<String>(
             onInit: counter,
@@ -391,7 +391,7 @@ void main() {
         initialState: "init",
       );
       final Widget Function() widget = () {
-        return StoreProvider<String>(
+        return new StoreProvider<String>(
           store: store,
           child: new StoreBuilder<String>(
             onDispose: counter,
@@ -422,7 +422,7 @@ void main() {
         identityReducer,
         initialState: "I",
       );
-      final widget = StoreProvider<String>(
+      final widget = new StoreProvider<String>(
         store: store,
         child: new StoreConnector<String, String>(
           // Same exact setup as the previous test, but distinct is set to true.

I have all tests in pass in your 0.4.0 PR.

$ flutter test --preview-dart-2 --coverage --coverage-path=lcov.info
00:06 +0: ...home/vegorov/src/third_party/flutter_redux/test/flutter_redux_test.dart
00:43 +14: All tests passed!                                                             
Collecting coverage information...

@mraleph
Copy link
Member

mraleph commented Mar 19, 2018

I will close this issue for now, because the underlying issue is resolved.

Thanks for trying out Dart 2, sorry it is a bit of the bumpy ride!

@mraleph mraleph closed this as completed Mar 19, 2018
@brianegan
Copy link
Contributor Author

@mraleph Ah, interesting! Ok, I'll pop in the optional new / const for now to get it running again. Thanks for taking the time to help me track down the problem :)

@ghost
Copy link

ghost commented Aug 28, 2018

@brianegan @mraleph I am getting the same error, The error stack trace is hard to understand. I tried adding the new keyword wherever I could. I am not sure what token number indicates. Here is my error stack trace, and flutter doctor overview. Any help is appreciated.

Bad state: Couldn't find line and column for token 4144 in package:stepper/src/blocs/customTextField/blocTextField.dart.
#0      VMScript._lineAndColumn (package:vm_service_client/src/script.dart:241)
#1      _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:309)
#2      _ScriptLocation.line (package:vm_service_client/src/script.dart:292)
#3      _getCoverageJson (package:coverage/src/collect.dart:103)
<asynchronous suspension>
#4      _getAllCoverage (package:coverage/src/collect.dart:51)
<asynchronous suspension>
#5      collect (package:coverage/src/collect.dart:35)
<asynchronous suspension>
#6      CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:55)
<asynchronous suspension>
#7      CoverageCollector.onFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:23)
<asynchronous suspension>
#8      _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:611)
<asynchronous suspension>
#9      _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:367)
#10     PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:63)
<asynchronous suspension>
#11     Loader.loadFile.<anonymous closure> (package:test/src/runner/loader.dart:250)
<asynchronous suspension>
#12     new LoadSuite.<anonymous closure>.<anonymous closure> (package:test/src/runner/load_suite.dart:89)
<asynchronous suspension>
#13     invoke (package:test/src/utils.dart:247)
#14     new LoadSuite.<anonymous closure> (package:test/src/runner/load_suite.dart:88)
#15     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403)
<asynchronous suspension>
#16     new Future.<anonymous closure> (dart:async/future.dart:174)
#17     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#18     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#19     _rootRun (dart:async/zone.dart:1122)
#20     _CustomZone.run (dart:async/zone.dart:1023)
#21     _CustomZone.runGuarded (dart:async/zone.dart:925)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
#23     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#24     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#25     _rootRun (dart:async/zone.dart:1126)
#26     _CustomZone.run (dart:async/zone.dart:1023)
#27     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949)
#28     Timer._createTimer.<anonymous closure> (dart:async-patch/dart:async/timer_patch.dart:21)
#29     _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
#30     _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
#31     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

00:18 +1 -1: loading /Users/skotambk/AndroidStudioProjects/stepper/test/widget_test.dart [E]
  Bad state: Couldn't find line and column for token 4144 in package:stepper/src/blocs/customTextField/blocTextField.dart.
  package:flutter_tools/src/test/flutter_platform.dart 652   _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22                             _Completer.completeError
  package:flutter_tools/src/test/flutter_platform.dart       _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:flutter_tools/src/test/flutter_platform.dart 374   _FlutterPlatform._startTest
  package:flutter_tools/src/test/flutter_platform.dart 367   _FlutterPlatform.loadChannel
  package:test/src/runner/plugin/platform.dart 63            PlatformPlugin.load
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/plugin/platform.dart 60            PlatformPlugin.load
  package:test/src/runner/loader.dart 250                    Loader.loadFile.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:test/src/runner/loader.dart 244                    Loader.loadFile.<fn>
  package:test/src/runner/load_suite.dart 89                 new LoadSuite.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>.<fn>
  package:test/src/utils.dart 247                            invoke
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>
  package:test/src/backend/invoker.dart 403                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  dart:async/future.dart 174                                 new Future.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1122                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 925                                   _CustomZone.runGuarded
  dart:async/zone.dart 965                                   _CustomZone.bindCallbackGuarded.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async-patch/dart:async/timer_patch.dart 21            Timer._createTimer.<fn>
  dart:isolate-patch/dart:isolate/timer_impl.dart 382        _Timer._runTimers
  dart:isolate-patch/dart:isolate/timer_impl.dart 416        _Timer._handleMessage
  dart:isolate-patch/dart:isolate/isolate_patch.dart 165     _RawReceivePortImpl._handleMessage
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52                                   new Timer
  dart:async/timer.dart 87                                   Timer.run
  dart:async/future.dart 172                                 new Future
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 144                  Invoker.guard
  package:test/src/backend/invoker.dart 441                  Invoker._guardIfGuarded
  package:test/src/backend/invoker.dart 388                  Invoker._onRun.<fn>
  package:stack_trace/src/chain.dart 101                     Chain.capture.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:stack_trace/src/chain.dart 99                      Chain.capture
  package:test/src/backend/invoker.dart 387                  Invoker._onRun
  package:test/src/backend/live_test_controller.dart 188     LiveTestController._run
  package:test/src/backend/live_test_controller.dart 40      _LiveTest.run
  dart:async/future.dart 200                                 new Future.microtask.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async/schedule_microtask.dart 41                      _microtaskLoop
  dart:async/schedule_microtask.dart 50                      _startMicrotaskLoop
  dart:isolate-patch/dart:isolate/isolate_patch.dart 113     _runPendingImmediateCallback
  dart:isolate-patch/dart:isolate/isolate_patch.dart 166     _RawReceivePortImpl._handleMessage

Flutter Doctor

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.24.0)
[✓] Connected devices (1 available)

Here is the simple widget_test I wrote

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

//Files to be tested
import 'package:stepper/src/widgets/data.dart';
import 'package:stepper/src/widgets/fieldTypeConstants.dart';
import 'package:stepper/src/blocWidgets/customTextField/getBlocTextField.dart';

void main() {
  void checkIfTextsCreatedCorrectly(
      Iterable<Widget> listOfWidgets, List<String> expectedTexts) {
    var textWidgetPosition = 0;
    for (Widget widget in listOfWidgets) {
      if (widget is Text) {
        expect(widget.data, expectedTexts[textWidgetPosition]);
        textWidgetPosition++;
      }
    }
  }

  testWidgets('TextField Widget test', (WidgetTester tester) async {
    Data testData = new Data(
      fieldName: 'Testv1',
      fieldType: FieldType.textField,
      labelText: 'Select one of the following',
    );

  List<String> expectedTexts = new List<String>();
    expectedTexts = [
      '0 / 100',
      testData.labelText,
    ];

    await tester.pumpWidget(new MaterialApp(
      home: new Material(
        child: new GetBlocTextField(
          labelText: testData.fieldName,
        ),
      ),
    ));

    Iterable<Widget> listOfWidgets = tester.allWidgets;
    checkIfTextsCreatedCorrectly(listOfWidgets, expectedTexts);
  });
}

I cannot put the entire code here. I am using bloc pattern, thus have blocProviders and blocs. But I do not believe the problem lies with it. My test cases pass, but the coverage is an issue.
Do let me know if I can provide some more information.

@mraleph
Copy link
Member

mraleph commented Aug 28, 2018

@Shantanu-Kotambkar can you open package:stepper/src/blocs/customTextField/blocTextField.dart and locate position 4144 in the file and then include what is around it (couple of lines below and couple of lines above) into the bug report? (If there is no such position in the file then something is going wrong with position information).

@ghost
Copy link

ghost commented Aug 28, 2018

@mraleph There isn't a position 4144. Here is my blocTextField.dart

import 'dart:async';
import '../validators.dart';
import 'package:rxdart/rxdart.dart';

class BlocTextField extends Object with Validators {
  final _textFieldController = new BehaviorSubject<dynamic>();
  final String regExp;
  final bool isOptional;
  final String fieldName;
  
  BlocTextField({this.fieldName, this.regExp, this.isOptional});

//To change data to our Stream using Sink.
  Function(dynamic) get changeTextField => _textFieldController.sink.add;

//To add TextField data from Stream.
  Stream<dynamic> get textFieldStream => _textFieldController.stream
      .transform(validateTextField(isOptional, regExp, fieldName));
  
  dispose() {
    _textFieldController.close();
  }
}

@mraleph
Copy link
Member

mraleph commented Aug 28, 2018

Thanks. I think this gives us some information to start investigation from.

/cc @aam @kmillikin were there any recent changes to mixins that might lead to incorrect token positions? The error we are seeing above usually indicates that there is a mismatch between script uri and file location.

@mraleph
Copy link
Member

mraleph commented Aug 29, 2018

@Shantanu-Kotambkar can you provide the content of Validators mixin class?

(note: you can use tripple tick ``` to escape large blocks of code)

@mraleph
Copy link
Member

mraleph commented Sep 10, 2018

@Shantanu-Kotambkar ping. do you still have the error happening?

@ghost
Copy link

ghost commented Sep 11, 2018

@mraleph sorry, I wasn't active here for the past few days .
Yes, I still have the error.

00:14 +9: /Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetDropDown_test.dart: DropDown Widget test                                                                                                            u
nhandled error during test:
/Users/skotambk/AndroidStudioProjects/stepper/test/bloc_tests/bloc_widgets_test.dart
Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customTextField/textField_bloc.dart.
#0      VMScript._lineAndColumn (package:vm_service_client/src/script.dart:241)
#1      _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:309)
#2      _ScriptLocation.line (package:vm_service_client/src/script.dart:292)
#3      _getCoverageJson (package:coverage/src/collect.dart:103)
<asynchronous suspension>
#4      _getAllCoverage (package:coverage/src/collect.dart:51)
<asynchronous suspension>
#5      collect (package:coverage/src/collect.dart:35)
<asynchronous suspension>
#6      CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:55)
<asynchronous suspension>
#7      CoverageCollector.onFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:23)
<asynchronous suspension>
#8      _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:611)
<asynchronous suspension>
#9      _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:367)
#10     PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:63)
<asynchronous suspension>
#11     Loader.loadFile.<anonymous closure> (package:test/src/runner/loader.dart:250)
<asynchronous suspension>
#12     new LoadSuite.<anonymous closure>.<anonymous closure> (package:test/src/runner/load_suite.dart:89)
<asynchronous suspension>
#13     invoke (package:test/src/utils.dart:247)
#14     new LoadSuite.<anonymous closure> (package:test/src/runner/load_suite.dart:88)
#15     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403)
<asynchronous suspension>
#16     new Future.<anonymous closure> (dart:async/future.dart:174)
#17     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#18     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#19     _rootRun (dart:async/zone.dart:1122)
#20     _CustomZone.run (dart:async/zone.dart:1023)
#21     _CustomZone.runGuarded (dart:async/zone.dart:925)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
#23     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#24     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#25     _rootRun (dart:async/zone.dart:1126)
#26     _CustomZone.run (dart:async/zone.dart:1023)
#27     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949)
#28     Timer._createTimer.<anonymous closure> (dart:async-patch/dart:async/timer_patch.dart:21)
#29     _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
#30     _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
#31     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

00:22 +9: /Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetDropDown_test.dart: DropDown Widget test                                                                                                            unhandled error during test:
/Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetCheckList_test.dart
Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customCheckList/checkbox_bloc.dart.
#0      VMScript._lineAndColumn (package:vm_service_client/src/script.dart:241)
#1      _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:309)
#2      _ScriptLocation.line (package:vm_service_client/src/script.dart:292)
#3      _getCoverageJson (package:coverage/src/collect.dart:103)
<asynchronous suspension>
#4      _getAllCoverage (package:coverage/src/collect.dart:51)
<asynchronous suspension>
#5      collect (package:coverage/src/collect.dart:35)
<asynchronous suspension>
#6      CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:55)
<asynchronous suspension>
#7      CoverageCollector.onFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:23)
<asynchronous suspension>
#8      _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:611)
<asynchronous suspension>
#9      _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:367)
#10     PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:63)
<asynchronous suspension>
#11     Loader.loadFile.<anonymous closure> (package:test/src/runner/loader.dart:250)
<asynchronous suspension>
#12     new LoadSuite.<anonymous closure>.<anonymous closure> (package:test/src/runner/load_suite.dart:89)
<asynchronous suspension>
#13     invoke (package:test/src/utils.dart:247)
#14     new LoadSuite.<anonymous closure> (package:test/src/runner/load_suite.dart:88)
#15     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403)
<asynchronous suspension>
#16     new Future.<anonymous closure> (dart:async/future.dart:174)
#17     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#18     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#19     _rootRun (dart:async/zone.dart:1122)
#20     _CustomZone.run (dart:async/zone.dart:1023)
#21     _CustomZone.runGuarded (dart:async/zone.dart:925)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
#23     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#24     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#25     _rootRun (dart:async/zone.dart:1126)
#26     _CustomZone.run (dart:async/zone.dart:1023)
#27     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949)
#28     Timer._createTimer.<anonymous closure> (dart:async-patch/dart:async/timer_patch.dart:21)
#29     _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
#30     _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
#31     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

00:22 +9 -1: loading /Users/skotambk/AndroidStudioProjects/stepper/test/bloc_tests/bloc_widgets_test.dart [E]
  Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customTextField/textField_bloc.dart.
  package:flutter_tools/src/test/flutter_platform.dart 652   _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22                             _Completer.completeError
  package:flutter_tools/src/test/flutter_platform.dart       _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:flutter_tools/src/test/flutter_platform.dart 374   _FlutterPlatform._startTest
  package:flutter_tools/src/test/flutter_platform.dart 367   _FlutterPlatform.loadChannel
  package:test/src/runner/plugin/platform.dart 63            PlatformPlugin.load
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/plugin/platform.dart 60            PlatformPlugin.load
  package:test/src/runner/loader.dart 250                    Loader.loadFile.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:test/src/runner/loader.dart 244                    Loader.loadFile.<fn>
  package:test/src/runner/load_suite.dart 89                 new LoadSuite.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>.<fn>
  package:test/src/utils.dart 247                            invoke
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>
  package:test/src/backend/invoker.dart 403                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  dart:async/future.dart 174                                 new Future.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1122                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 925                                   _CustomZone.runGuarded
  dart:async/zone.dart 965                                   _CustomZone.bindCallbackGuarded.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async-patch/dart:async/timer_patch.dart 21            Timer._createTimer.<fn>
  dart:isolate-patch/dart:isolate/timer_impl.dart 382        _Timer._runTimers
  dart:isolate-patch/dart:isolate/timer_impl.dart 416        _Timer._handleMessage
  dart:isolate-patch/dart:isolate/isolate_patch.dart 165     _RawReceivePortImpl._handleMessage
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52                                   new Timer
  dart:async/timer.dart 87                                   Timer.run
  dart:async/future.dart 172                                 new Future
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 144                  Invoker.guard
  package:test/src/backend/invoker.dart 441                  Invoker._guardIfGuarded
  package:test/src/backend/invoker.dart 388                  Invoker._onRun.<fn>
  package:stack_trace/src/chain.dart 101                     Chain.capture.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:stack_trace/src/chain.dart 99                      Chain.capture
  package:test/src/backend/invoker.dart 387                  Invoker._onRun
  package:test/src/backend/live_test_controller.dart 188     LiveTestController._run
  package:test/src/backend/live_test_controller.dart 40      _LiveTest.run
  dart:async/future.dart 200                                 new Future.microtask.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async/schedule_microtask.dart 41                      _microtaskLoop
  dart:async/schedule_microtask.dart 50                      _startMicrotaskLoop
  dart:isolate-patch/dart:isolate/isolate_patch.dart 113     _runPendingImmediateCallback
  dart:isolate-patch/dart:isolate/isolate_patch.dart 166     _RawReceivePortImpl._handleMessage

00:22 +9 -2: loading /Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetCheckList_test.dart [E]
  Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customCheckList/checkbox_bloc.dart.
  package:flutter_tools/src/test/flutter_platform.dart 652   _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22                             _Completer.completeError
  package:flutter_tools/src/test/flutter_platform.dart       _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:flutter_tools/src/test/flutter_platform.dart 374   _FlutterPlatform._startTest
  package:flutter_tools/src/test/flutter_platform.dart 367   _FlutterPlatform.loadChannel
  package:test/src/runner/plugin/platform.dart 63            PlatformPlugin.load
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/plugin/platform.dart 60            PlatformPlugin.load
  package:test/src/runner/loader.dart 250                    Loader.loadFile.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:test/src/runner/loader.dart 244                    Loader.loadFile.<fn>
  package:test/src/runner/load_suite.dart 89                 new LoadSuite.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>.<fn>
  package:test/src/utils.dart 247                            invoke
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>
  package:test/src/backend/invoker.dart 403                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  dart:async/future.dart 174                                 new Future.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1122                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 925                                   _CustomZone.runGuarded
  dart:async/zone.dart 965                                   _CustomZone.bindCallbackGuarded.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async-patch/dart:async/timer_patch.dart 21            Timer._createTimer.<fn>
  dart:isolate-patch/dart:isolate/timer_impl.dart 382        _Timer._runTimers
  dart:isolate-patch/dart:isolate/timer_impl.dart 416        _Timer._handleMessage
  dart:isolate-patch/dart:isolate/isolate_patch.dart 165     _RawReceivePortImpl._handleMessage
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52                                   new Timer
  dart:async/timer.dart 87                                   Timer.run
  dart:async/future.dart 172                                 new Future
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 144                  Invoker.guard
  package:test/src/backend/invoker.dart 441                  Invoker._guardIfGuarded
  package:test/src/backend/invoker.dart 388                  Invoker._onRun.<fn>
  package:stack_trace/src/chain.dart 101                     Chain.capture.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:stack_trace/src/chain.dart 99                      Chain.capture
  package:test/src/backend/invoker.dart 387                  Invoker._onRun
  package:test/src/backend/live_test_controller.dart 188     LiveTestController._run
  package:test/src/backend/live_test_controller.dart 40      _LiveTest.run
  dart:async/future.dart 200                                 new Future.microtask.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async/schedule_microtask.dart 41                      _microtaskLoop
  dart:async/schedule_microtask.dart 50                      _startMicrotaskLoop
  dart:isolate-patch/dart:isolate/isolate_patch.dart 113     _runPendingImmediateCallback
  dart:isolate-patch/dart:isolate/isolate_patch.dart 166     _RawReceivePortImpl._handleMessage

unhandled error during test:
/Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetDropDown_test.dart
Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customDropDown/dropDown_bloc.dart.
#0      VMScript._lineAndColumn (package:vm_service_client/src/script.dart:241)
#1      _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:309)
#2      _ScriptLocation.line (package:vm_service_client/src/script.dart:292)
#3      _getCoverageJson (package:coverage/src/collect.dart:103)
<asynchronous suspension>
#4      _getAllCoverage (package:coverage/src/collect.dart:51)
<asynchronous suspension>
#5      collect (package:coverage/src/collect.dart:35)
<asynchronous suspension>
#6      CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:55)
<asynchronous suspension>
#7      CoverageCollector.onFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:23)
<asynchronous suspension>
#8      _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:611)
<asynchronous suspension>
#9      _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:367)
#10     PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:63)
<asynchronous suspension>
#11     Loader.loadFile.<anonymous closure> (package:test/src/runner/loader.dart:250)
<asynchronous suspension>
#12     new LoadSuite.<anonymous closure>.<anonymous closure> (package:test/src/runner/load_suite.dart:89)
<asynchronous suspension>
#13     invoke (package:test/src/utils.dart:247)
#14     new LoadSuite.<anonymous closure> (package:test/src/runner/load_suite.dart:88)
#15     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403)
<asynchronous suspension>
#16     new Future.<anonymous closure> (dart:async/future.dart:174)
#17     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#18     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#19     _rootRun (dart:async/zone.dart:1122)
#20     _CustomZone.run (dart:async/zone.dart:1023)
#21     _CustomZone.runGuarded (dart:async/zone.dart:925)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
#23     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#24     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#25     _rootRun (dart:async/zone.dart:1126)
#26     _CustomZone.run (dart:async/zone.dart:1023)
#27     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949)
#28     Timer._createTimer.<anonymous closure> (dart:async-patch/dart:async/timer_patch.dart:21)
#29     _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
#30     _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
#31     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

00:23 +9 -3: loading /Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetDropDown_test.dart [E]
  Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customDropDown/dropDown_bloc.dart.
  package:flutter_tools/src/test/flutter_platform.dart 652   _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22                             _Completer.completeError
  package:flutter_tools/src/test/flutter_platform.dart       _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:flutter_tools/src/test/flutter_platform.dart 374   _FlutterPlatform._startTest
  package:flutter_tools/src/test/flutter_platform.dart 367   _FlutterPlatform.loadChannel
  package:test/src/runner/plugin/platform.dart 63            PlatformPlugin.load
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/plugin/platform.dart 60            PlatformPlugin.load
  package:test/src/runner/loader.dart 250                    Loader.loadFile.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:test/src/runner/loader.dart 244                    Loader.loadFile.<fn>
  package:test/src/runner/load_suite.dart 89                 new LoadSuite.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>.<fn>
  package:test/src/utils.dart 247                            invoke
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>
  package:test/src/backend/invoker.dart 403                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  dart:async/future.dart 174                                 new Future.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1122                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 925                                   _CustomZone.runGuarded
  dart:async/zone.dart 965                                   _CustomZone.bindCallbackGuarded.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async-patch/dart:async/timer_patch.dart 21            Timer._createTimer.<fn>
  dart:isolate-patch/dart:isolate/timer_impl.dart 382        _Timer._runTimers
  dart:isolate-patch/dart:isolate/timer_impl.dart 416        _Timer._handleMessage
  dart:isolate-patch/dart:isolate/isolate_patch.dart 165     _RawReceivePortImpl._handleMessage
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52                                   new Timer
  dart:async/timer.dart 87                                   Timer.run
  dart:async/future.dart 172                                 new Future
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 144                  Invoker.guard
  package:test/src/backend/invoker.dart 441                  Invoker._guardIfGuarded
  package:test/src/backend/invoker.dart 388                  Invoker._onRun.<fn>
  package:stack_trace/src/chain.dart 101                     Chain.capture.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:stack_trace/src/chain.dart 99                      Chain.capture
  package:test/src/backend/invoker.dart 387                  Invoker._onRun
  package:test/src/backend/live_test_controller.dart 188     LiveTestController._run
  package:test/src/backend/live_test_controller.dart 40      _LiveTest.run
  dart:async/future.dart 200                                 new Future.microtask.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async/schedule_microtask.dart 41                      _microtaskLoop
  dart:async/schedule_microtask.dart 50                      _startMicrotaskLoop
  dart:isolate-patch/dart:isolate/isolate_patch.dart 113     _runPendingImmediateCallback
  dart:isolate-patch/dart:isolate/isolate_patch.dart 166     _RawReceivePortImpl._handleMessage

unhandled error during test:
/Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetDatePicker_test.dart
Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customDatePicker/datePicker_bloc.dart.
#0      VMScript._lineAndColumn (package:vm_service_client/src/script.dart:241)
#1      _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:309)
#2      _ScriptLocation.line (package:vm_service_client/src/script.dart:292)
#3      _getCoverageJson (package:coverage/src/collect.dart:103)
<asynchronous suspension>
#4      _getAllCoverage (package:coverage/src/collect.dart:51)
<asynchronous suspension>
#5      collect (package:coverage/src/collect.dart:35)
<asynchronous suspension>
#6      CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:55)
<asynchronous suspension>
#7      CoverageCollector.onFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:23)
<asynchronous suspension>
#8      _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:611)
<asynchronous suspension>
#9      _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:367)
#10     PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:63)
<asynchronous suspension>
#11     Loader.loadFile.<anonymous closure> (package:test/src/runner/loader.dart:250)
<asynchronous suspension>
#12     new LoadSuite.<anonymous closure>.<anonymous closure> (package:test/src/runner/load_suite.dart:89)
<asynchronous suspension>
#13     invoke (package:test/src/utils.dart:247)
#14     new LoadSuite.<anonymous closure> (package:test/src/runner/load_suite.dart:88)
#15     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403)
<asynchronous suspension>
#16     new Future.<anonymous closure> (dart:async/future.dart:174)
#17     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#18     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#19     _rootRun (dart:async/zone.dart:1122)
#20     _CustomZone.run (dart:async/zone.dart:1023)
#21     _CustomZone.runGuarded (dart:async/zone.dart:925)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
#23     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209)
#24     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119)
#25     _rootRun (dart:async/zone.dart:1126)
#26     _CustomZone.run (dart:async/zone.dart:1023)
#27     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949)
#28     Timer._createTimer.<anonymous closure> (dart:async-patch/dart:async/timer_patch.dart:21)
#29     _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
#30     _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
#31     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

00:24 +9 -4: loading /Users/skotambk/AndroidStudioProjects/stepper/test/widget_tests/GetDatePicker_test.dart [E]
  Bad state: Couldn't find line and column for token 4167 in package:stepper/src/blocs/customDatePicker/datePicker_bloc.dart.
  package:flutter_tools/src/test/flutter_platform.dart 652   _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/future_impl.dart 22                             _Completer.completeError
  package:flutter_tools/src/test/flutter_platform.dart       _FlutterPlatform._startTest
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:flutter_tools/src/test/flutter_platform.dart 374   _FlutterPlatform._startTest
  package:flutter_tools/src/test/flutter_platform.dart 367   _FlutterPlatform.loadChannel
  package:test/src/runner/plugin/platform.dart 63            PlatformPlugin.load
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/plugin/platform.dart 60            PlatformPlugin.load
  package:test/src/runner/loader.dart 250                    Loader.loadFile.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1055                                  _CustomZone.registerUnaryCallback
  dart:async-patch/dart:async/async_patch.dart 77            _asyncThenWrapperHelper
  package:test/src/runner/loader.dart 244                    Loader.loadFile.<fn>
  package:test/src/runner/load_suite.dart 89                 new LoadSuite.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>.<fn>
  package:test/src/utils.dart 247                            invoke
  package:test/src/runner/load_suite.dart 88                 new LoadSuite.<fn>
  package:test/src/backend/invoker.dart 403                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>
  dart:async/future.dart 174                                 new Future.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1122                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 925                                   _CustomZone.runGuarded
  dart:async/zone.dart 965                                   _CustomZone.bindCallbackGuarded.<fn>
  package:stack_trace/src/stack_zone_specification.dart 209  StackZoneSpecification._run
  package:stack_trace/src/stack_zone_specification.dart 119  StackZoneSpecification._registerCallback.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async-patch/dart:async/timer_patch.dart 21            Timer._createTimer.<fn>
  dart:isolate-patch/dart:isolate/timer_impl.dart 382        _Timer._runTimers
  dart:isolate-patch/dart:isolate/timer_impl.dart 416        _Timer._handleMessage
  dart:isolate-patch/dart:isolate/isolate_patch.dart 165     _RawReceivePortImpl._handleMessage
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/timer.dart 52                                   new Timer
  dart:async/timer.dart 87                                   Timer.run
  dart:async/future.dart 172                                 new Future
  package:test/src/backend/invoker.dart 402                  Invoker._onRun.<fn>.<fn>.<fn>
  ===== asynchronous gap ===========================
  dart:async/zone.dart 1047                                  _CustomZone.registerCallback
  dart:async/zone.dart 964                                   _CustomZone.bindCallbackGuarded
  dart:async/schedule_microtask.dart 147                     scheduleMicrotask
  dart:async/future.dart 198                                 new Future.microtask
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 389                  Invoker._onRun.<fn>.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:test/src/backend/invoker.dart 144                  Invoker.guard
  package:test/src/backend/invoker.dart 441                  Invoker._guardIfGuarded
  package:test/src/backend/invoker.dart 388                  Invoker._onRun.<fn>
  package:stack_trace/src/chain.dart 101                     Chain.capture.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 1501                                  runZoned
  package:stack_trace/src/chain.dart 99                      Chain.capture
  package:test/src/backend/invoker.dart 387                  Invoker._onRun
  package:test/src/backend/live_test_controller.dart 188     LiveTestController._run
  package:test/src/backend/live_test_controller.dart 40      _LiveTest.run
  dart:async/future.dart 200                                 new Future.microtask.<fn>
  dart:async/zone.dart 1126                                  _rootRun
  dart:async/zone.dart 1023                                  _CustomZone.run
  dart:async/zone.dart 949                                   _CustomZone.bindCallback.<fn>
  dart:async/schedule_microtask.dart 41                      _microtaskLoop
  dart:async/schedule_microtask.dart 50                      _startMicrotaskLoop
  dart:isolate-patch/dart:isolate/isolate_patch.dart 113     _runPendingImmediateCallback
  dart:isolate-patch/dart:isolate/isolate_patch.dart 166     _RawReceivePortImpl._handleMessage

@ghost
Copy link

ghost commented Sep 11, 2018

@mraleph Here is one of the validate method

class Validators {
  validateTextField(bool isOptional, String regExp, String fieldName) {
    return StreamTransformer<dynamic, dynamic>.fromHandlers(
        handleData: (textFieldStream, sink) {
      RegExp test = new RegExp(regExp);
      bool optionalFlag = isOptional && textFieldStream == '';
      bool validFlag = optionalFlag || test.hasMatch(textFieldStream);
      switch (validFlag) {
        case false:
          sink.addError('Text Error');
          dataBloc.errorMap[fieldName] = textFieldStream;
          removeEntry(dataBloc.dataMap, fieldName);
          break;
        case true:
          sink.add(textFieldStream);
          dataBloc.dataMap[fieldName] = textFieldStream;
          removeEntry(dataBloc.errorMap, fieldName);
          break;
      }
    });
  }

@ghost
Copy link

ghost commented Sep 11, 2018

Here is my flutter doctor result

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.24.0)
[✓] Connected devices (1 available)

@kmillikin
Copy link

Thanks. I think this gives us some information to start investigation from.

/cc @aam @kmillikin were there any recent changes to mixins that might lead to incorrect token positions? The error we are seeing above usually indicates that there is a mismatch between script uri and file location.

There's nothing specific that I can think of. We have to try to reproduce this.

@zoechi zoechi added a: tests "flutter test", flutter_test, or one of our tests c: regression It was better in the past than it is now c: crash Stack traces logged to the console labels Sep 12, 2018
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: tests "flutter test", flutter_test, or one of our tests c: crash Stack traces logged to the console c: regression It was better in the past than it is now
Projects
None yet
Development

No branches or pull requests

5 participants