flutter_gherkin
flutter_gherkin copied to clipboard
Example with Flutter driver not compiling on 3.0.0-rc.17
Hello @jonsamwell , I am hoping that you can give me ideas on what else should I try. I was trying to run the latest flutter_gherkin version on our project and faced compilation issues after doing the necessary changes between 2.0.0 and 3.0.0-rc.17. To remove doubts that the project is not the problem, I tried also the example from https://github.com/jonsamwell/flutter_gherkin/tree/integration_test__package_support/example_with_flutter_driver and got same compilation error:
dart test_driver/test_harness.dart ../lib/src/flutter/adapters/widget_tester_app_driver_adapter.dart:2:8: Error: Not found: 'dart:ui' import 'dart:ui' as ui show ImageByteFormat; ^ ../../../flutter/packages/flutter_test/lib/src/_goldens_io.dart:9:8: Error: Not found: 'dart:ui' import 'dart:ui'; ^ ../../../flutter/packages/flutter_test/lib/src/accessibility.dart:8:8: Error: Not found: 'dart:ui' import 'dart:ui' as ui; ^ ../../../flutter/packages/flutter_test/lib/src/animation_sheet.dart:6:8: Error: Not found: 'dart:ui' import 'dart:ui' as ui; ^ ../../../flutter/packages/flutter_test/lib/src/binding.dart:6:8: Error: Not found: 'dart:ui' import 'dart:ui' as ui; ^ ../../../flutter/packages/flutter_test/lib/src/event_simulation.dart:7:8: Error: Not found: 'dart:ui' import 'dart:ui' as ui; ^ ../../../flutter/packages/flutter_test/lib/src/frame_timing_summarizer.dart:5:8: Error: Not found: 'dart:ui' import 'dart:ui'; ^ ../../../flutter/packages/flutter_test/lib/src/goldens.dart:6:8: Error: Not found: 'dart:ui' import 'dart:ui'; ^ ../../../flutter/packages/flutter_test/lib/src/image.dart:7:8: Error: Not found: 'dart:ui' import 'dart:ui' as ui; ^ ../../../flutter/packages/flutter_test/lib/src/matchers.dart:7:8: Error: Not found: 'dart:ui' import 'dart:ui' as ui;
This indicates me that although you put two distinct imports flutter_gherkin.dart (integration_test) and flutter_gherkin_with_driver.dart (flutter_driver), my compiler is still trying to take the exports from flutter_gherkin.dart.
`[✓] Flutter (Channel stable, 3.0.4, on macOS 12.4 darwin-x64, ) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.69.2) [✓] Connected device (3 available) [✓] HTTP Host Availability
• No issues found! `
Any idea what may be wrong here?
PS: We started the migration towards integration_test and that is going nicely so far. Just some random concurrency issues with waitForAppToSettle(), but will work them out. I saw that we are not the only ones facing them :D Thank you very much for building the gherkin libraries!
Hello @jonsamwell I got confirmation from a colleague that this issue is happening also on his machine.
I'll try and take a look this week.
Facing same issue any input on how to solve it? Please
Tried with Pre-Release and face below issue.. any idea?
The PreRelease of Flutter_Gherkin throws ../../../../.pub-cache/hosted/pub.dev/flutter_gherkin-3.0.0-rc.17/lib/src/flutter/adapters/widget_tester_app_driver_adapter.dart:2:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' as ui show ImageByteFormat; ^ Context: The unavailable library 'dart:ui' is imported through these packages:
app_test.dart => package:flutter_gherkin => package:flutter_test => dart:ui app_test.dart => package:flutter_gherkin => package:flutter_test => package:flutter => dart:ui