Flutter-intellij: Trouble running widget tests w/ 2 IDEA instances running

Created on 9 Jan 2018  Â·  9Comments  Â·  Source: flutter/flutter-intellij

I used to be able to right-click on the code of a flutter test and select "Run \

2:23 PM Error running 'Semantics tree is populated mid-scroll': @NotNull method io/flutter/run/test/TestLaunchState.startProcess must not return null
bug topic-testing

All 9 comments

@pq, do you mind taking a look?

@goderbauer, can you include the output of flutter doctor (esp. the IntelliJ and Flutter plugin versions)?

[✓] Flutter (on Mac OS X 10.12.6 16G1114, locale en-US, channel unknown)
    • Flutter at /Users/goderbauer/dev/flutter
    • Framework revision d813328de7 (4 hours ago), 2018-01-09 10:39:59 -0800
    • Engine revision 16e365e722
    • Tools Dart version 1.25.0-dev.11.0
    • Engine Dart version 2.0.0-edge.5b56dfb77a76e9d8021086c0684b1e8bd9dbca9a

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
    • Android SDK at /Users/goderbauer/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.1
    • 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)

[✓] 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.1)
    • Flutter plugin version 20.0.3
    • Dart plugin version 173.3942.31

[✓] Connected devices
    • Nexus 6P • 84B5T15A10012703                         • android-arm • Android 7.1.2 (API 25)
    • iPhone   • f1873c78c265cdc62dc1a2ea99a8e49c364feb2f • ios         • iOS 11.1

Ah! I think I figured this out! I have two instances of IntelliJ running with two different flutter apps. In one IntelliJ I had a test running, which was stoped at a break point. When I now try to run a test in the other IntelliJ instance, I am getting the error mentioned above.

Workaround for me is easy: Just don't have two tests running in parallel.

The error message should probably be clearer, though. And it's kinda unexpected that two IntelliJ instances block each other like that in the first place.

Interesting. Thanks for following up @goderbauer!

What kind of tests are these (e.g., integration, widget or unit)?

They were widget tests.

When I now try to run a test in the other IntelliJ instance, I am getting the error mentioned above.

We should track this down, that interaction is really not expected.

Thanks @goderbauer! I'll take a look. Minimally, we should warn in this case.

Hi guys, I'm getting this same problem now with flutter unit test. Has it been fixed? if so, what's the solution pls?

Screenshot 2020-06-30 at 05 52 19

Screenshot 2020-06-30 at 05 51 57

Was this page helpful?
0 / 5 - 0 ratings