Open brianegan opened 6 years ago
Related #2551, https://youtrack.jetbrains.com/issue/WEB-28911
Thanks @zoechi :) Yah, that issue also mentions another bug I've run into: The Flutter plugin requires the root of the project to be a Flutter project. Not sure if that's still the case, but it'd be great if that wasn't a constraint.
@pq may have some thoughts on this.
Hello! I've been running into this bug more and more as I work on projects that contain some Flutter directories along-side plain-old-Dart projects or Angular Dart projects.
Use-case: I have a project with 3 directories:
app_base
: Pure Dart lib to be shared by an Angular and Flutter appapp_flutter
: Flutter app that relies on app_baseapp_angular
: Angular app that relies on app_baseWhen I try to run tests in
app_base
, I get the following error:Which makes sense --
app_base
shouldn't depend on Flutter! However, it seems like once you set the Flutter SDK for a project, it tries to run all tests as if they were Flutter tests. It would be great if the Flutter plugin either:Workaround
Create a Run config for Pure dart tests. This quickly becomes cumbersome, however -- if I want to run/debug a single test in a single file, I always need to create a new run config rather than allowing the IDE to run an erroneous flutter test
Thanks!