-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed as not planned
Closed as not planned
Copy link
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
Use a project with file: ^7.0.0 and at the same time xdb_directories: ^1.0.0 or path_provider: ^2.0.0.
This affects all Linux implementations, e.g. in path_provider, xdg_directories, as one can't upgrade to file >= 7.0.0
Expected results
Build successfully with file: ^7.0.0
Actual results
Because path_provider_linux >=2.1.8 depends on xdg_directories >=0.2.0 <2.0.0 and path_provider_linux >=2.0.0 <2.1.8 depends on xdg_directories ^0.2.0, path_provider_linux >=2.0.0 requires xdg_directories >=0.2.0 <2.0.0.
And because path_provider >=2.0.8 depends on path_provider_linux ^2.0.1, path_provider >=2.0.8 requires xdg_directories >=0.2.0 <2.0.0.
And because xdg_directories >=0.2.0 depends on process ^4.0.0 which depends on file ^6.0.0, path_provider >=2.0.8 requires file ^6.0.0.
So, because audioplayers_example depends on both file ^7.0.0 and path_provider ^2.0.12, version solving failed.
Same for integration_test
Because every version of integration_test from sdk depends on file 6.1.4 and example depends on file ^7.0.0, integration_test from sdk is forbidden.
So, because example depends on integration_test from sdk, version solving failed.
Code sample
Code sample
# pubspec.yaml
#...
dependencies:
flutter:
sdk: flutter
http: '>=0.13.1 <2.0.0'
file: ^7.0.0
path_provider: ^2.0.12
provider: ^6.0.5
dev_dependencies:
flutter_test:
sdk: flutter
# integration_test:
# sdk: flutterScreenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.2, on Microsoft Windows [Version 10.0.22631.1900], locale de-DE)
• Flutter version 3.10.2 on channel stable at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 9cd3d0d9ff (5 weeks ago), 2023-05-23 20:57:28 -0700
• Engine revision 90fa3ae28f
• Dart version 3.0.2
• DevTools version 2.23.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\src\android\Sdk
• Platform android-33, build-tools 34.0.0
• ANDROID_HOME = C:\src\android\Sdk
• Java binary at: C:\Program Files\Java\jdk-17.0.1\bin\java
• Java version Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2022 17.5.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Visual Studio Build Tools 2022 version 17.5.33516.290
• Windows 10 SDK version 10.0.22621.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[√] IntelliJ IDEA Ultimate Edition (version 2023.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.1
• Flutter plugin version 74.0.4
• Dart plugin version 231.9065
[√] VS Code (version 1.77.3)
• VS Code at C:\Users\Gustl\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.1900]
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.134
• Edge (web) • edge • web-javascript • Microsoft Edge 113.0.1774.50
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Metadata
Metadata
Assignees
Labels
No labels