Closed
Description
Description
With a Dart package at root, and a nested Flutter example package, running Dart Code's pub get
command (via pubspec save) fails with error 69. See https://github.com/pattobrien/nested_package_bug to reproduce.
Steps to Reproduce
- Create a new Dart package, and in the root directory create a Flutter package named
example
. - Save Dart package's pubspec.yaml (i.e at root) to trigger
pub get
via Dart Code (VSCode extension).
Observed Result
[nested_package_bug] dart pub get
Resolving dependencies...
Got dependencies!
Resolving dependencies in ./example...
Because example depends on flutter_test from sdk which doesn't exist (the Flutter SDK is not available), version solving failed.
Flutter users should run `flutter pub get` instead of `dart pub get`.
exit code 69
Additional Info
Dart Code extension v3.70.0
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.0, on macOS 13.5 22G74 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.81.1)
[✓] VS Code (version 1.78.2)
[✓] Connected device (2 available)(code -10)
[✓] Network resources
• No issues found!