Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1 + latest flutter = flutter pub get doesn't work #229

Open
johndpope opened this issue Feb 15, 2022 · 1 comment · May be fixed by #245
Open

M1 + latest flutter = flutter pub get doesn't work #229

johndpope opened this issue Feb 15, 2022 · 1 comment · May be fixed by #245

Comments

@johndpope
Copy link

johndpope commented Feb 15, 2022

Environment

How do you use Sentry?
Sentry SaaS (sentry.io) or self-hosted/on-premise (which version?)
m1 / monterey

Which SDK and version?
e.g: JavaScript 5.11.1, .NET 1.2.0

Steps to Reproduce

flutter pub get

Expected Result

What you thought would happen.

Actual Result

https://stackoverflow.com/questions/70490909/flutter-says-dart-version-is-2-13-4-even-though-its-2-16-0

What actually happened. Maybe a screenshot/recording? Maybe some logs?

The current Dart SDK version is 2.16.1.

Because test >=1.19.4 <1.20.0 depends on test_core 0.4.9 and test >=1.19.3 <1.19.4 depends on test_core 0.4.8, test >=1.19.3 <1.20.0 requires test_core 0.4.8 or 0.4.9.
And because test >=1.19.0 <1.19.3 depends on test_api 0.4.6, test >=1.19.0 <1.20.0 requires test_core 0.4.8 or 0.4.9 or test_api 0.4.6.
And because test >=1.18.1 <1.19.0 depends on test_api 0.4.5 and test >=1.18.0 <1.18.1 depends on test_api 0.4.4, test >=1.18.0 <1.20.0 requires test_core 0.4.8 or 0.4.9 or test_api 0.4.4 or 0.4.5 or 0.4.6.
And because test >=1.17.11 <1.18.0 depends on test_api 0.4.3 and test >=1.17.10 <1.17.11 depends on test_api 0.4.2, test >=1.17.10 <1.20.0 requires test_core 0.4.8 or 0.4.9 or test_api 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6.
And because test >=1.17.6 <1.17.10 depends on test_api 0.4.1 and test >=1.17.0 <1.17.6 depends on test_api 0.4.0, test >=1.17.0 <1.20.0 requires test_core 0.4.8 or 0.4.9 or test_api 0.4.0 or 0.4.1 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6.
And because test >=1.16.7 <1.17.0 depends on test_api 0.3.0 and test >=1.16.6 <1.16.7 depends on test_api 0.2.20, test >=1.16.6 <1.20.0 requires test_core 0.4.8 or 0.4.9 or test_api 0.2.20 or 0.3.0 or 0.4.0 or 0.4.1 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6.
And because test >=1.16.0-nullsafety.19 <1.16.6 depends on test_api 0.2.19 and test >=1.12.0 <1.16.0-nullsafety depends on http ^0.12.0, test >=1.12.0 <1.16.0-nullsafety or >=1.16.0-nullsafety.19 <1.20.0-∞ requires test_core 0.4.8 or 0.4.9 or test_api 0.2.19 or 0.2.20 or 0.3.0 or 0.4.0 or 0.4.1 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6 or http ^0.12.0.
And because test >=1.16.0-nullsafety.18 <1.16.0-nullsafety.19 depends on test_api 0.2.19-nullsafety.7 and test >=1.16.0-nullsafety <1.16.0-nullsafety.8 requires SDK version >=2.10.0-0 <2.12.0, test >=1.12.0 <1.16.0-nullsafety.8 or >=1.16.0-nullsafety.18 <1.20.0-∞ requires test_core 0.4.8 or 0.4.9 or test_api 0.2.19-nullsafety.7 or 0.2.19 or 0.2.20 or 0.3.0 or 0.4.0 or 0.4.1 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6 or http ^0.12.0.
And because test >=1.16.0-nullsafety.9 <1.16.0-nullsafety.18 depends on test_api 0.2.19-nullsafety.6 and test >=1.20.0 depends on analyzer >=2.0.0 <4.0.0, test >=1.12.0 <1.16.0-nullsafety.8 or >=1.16.0-nullsafety.9 requires test_core 0.4.8 or 0.4.9 or test_api 0.2.19-nullsafety.6 or 0.2.19-nullsafety.7 or 0.2.19 or 0.2.20 or 0.3.0 or 0.4.0 or 0.4.1 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6 or http ^0.12.0 or analyzer >=2.0.0 <4.0.0.
And because test_core >=0.4.5 <0.4.10 depends on analyzer ^2.4.0 and test >=1.16.0-nullsafety.8 <1.16.0-nullsafety.10 depends on analyzer >=0.36.0 <0.41.0, test >=1.12.0 requires test_api 0.2.19-nullsafety.6 or 0.2.19-nullsafety.7 or 0.2.19 or 0.2.20 or 0.3.0 or 0.4.0 or 0.4.1 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6 or http ^0.12.0 or analyzer >=0.36.0 <0.41.0 or >=2.0.0 <4.0.0.
And because json_serializable ^4.0.1 depends on analyzer >=0.41.2 <2.0.0 and every version of flutter_test from sdk depends on test_api 0.4.8, if test >=1.12.0 and json_serializable ^4.0.1 and flutter_test from sdk then http ^0.12.0.
And because sentry_mobile depends on both http ^0.13.3 and flutter_test from sdk, test >=1.12.0 is incompatible with json_serializable ^4.0.1.
So, because sentry_mobile depends on both json_serializable ^4.1.0 and test ^1.15.4, version solving failed.
Running "flutter pub get" in sentry-mobile...
pub get failed (1; So, because sentry_mobile depends on both json_serializable ^4.1.0 and test ^1.15.4, version solving
failed.)

N.B. - I'm not using flutter + android studio.
flutter --version
Flutter 2.10.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision db747aa133 (5 days ago) • 2022-02-09 13:57:35 -0600
Engine • revision ab46186b24
Tools • Dart 2.16.1 • DevTools 2.9.2

i attempt to upgrade sdk - but no joy
environment:
sdk: '>=2.16.1 <3.0.0'
flutter: ^2.0.0

@marandaneto
Copy link
Contributor

The Flutter SDK works with any version ^0.13.0
https://github.com/getsentry/sentry-dart/blob/46626ac7501b970b06a6ad3a855ae1734f6dbd40/dart/pubspec.yaml#L14
So its not an SDK issue but rather your environment (lock files) or Flutter itself.

@ueman ueman linked a pull request Feb 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants