flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

The "pub get" command in intellij does not update the dependencies of subpackages, as vs code does.

Open Disim opened this issue 1 year ago • 0 comments

Steps to Reproduce

  1. Create flutter project "app_temp"
  2. Create a "packages" folder inside "app_temp".
  3. In the "packages" section, create a new dart/flutter project "package_temp" as a package
  4. Add a couple of dependencies to pubspec.yaml inside "package_temp".
  5. Go to pubspec.yaml inside "app_temp".
  6. Click "pub get"

Doing these steps will not update the dependencies inside "package_temp". But in VS Code, if you run pub get from the parent directory, the dependencies in the subprojects are updated. "Pub get" from the parent project is very helpful when the project is modular and there are a lot of these packages in the project.

Version info

[✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-arm64, locale ru-RU) • Flutter version 3.22.3 on channel stable at /Users/dmitriy/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision b0850beeb2 (2 weeks ago), 2024-07-16 21:43:41 -0700 • Engine revision 235db911ba • Dart version 3.4.4 • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at /Users/dmitriy/Library/Android/sdk • Platform android-35, build-tools 35.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15F31d • CocoaPods version 1.15.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.4) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 80.0.2 • Dart plugin version 241.18808

[✓] VS Code (version 1.91.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.92.0

[✓] Connected device (3 available) • macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.74 ! Error: iPhone (Aleksandr) has recently restarted. Xcode will continue when iPhone (Aleksandr) is unlocked. (code -14)

[✓] Network resources • All expected network resources are available.

• No issues found!

Disim avatar Jul 31 '24 06:07 Disim