I have a dart only project that I am running in IntelliJ. IntelliJ is using the version of dart made for Flutter.
Using v1.12.13 (current dev or v1.13.1-pre.89, master), when I run a test I get the following error message
The “.dart_tool/package_config.json” file is not recognized by “pub” version, please run “pub get”.
pub get, or
flutter pub get again but I get the same error when I try to run the file again in IntelliJ.
I’m really stumped so if anyone could help that would be great.
To recreate the problem use Flutter v1.12.13 (uses Dart 2.7)
Open / create a local Dart only project
Reference a local package using the
path: syntax in the pubspec.yaml file
Right click in IntelliJ on a test in the first project and select run