-
Notifications
You must be signed in to change notification settings - Fork 130
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
Support source_gen 2 and analyzer 7 #705
Comments
Thanks for reporting! We will test with the newer versions, make required changes and then allow them in pubspec. As for the first message the relevant part is missing ("is incompatible with...") so I can't advice. But the solution is the same as for the second conflict: Change your pubspec to allow the needed versions of the conflicting dependency, like for Edit: there is a chance that finding matching versions is impossible. In this case a dependency override to force a specific version can be a temporary solution. For our reference, this is internal issue |
I have the same issue when I try to used the actual version of freezed: (2.5.8)
|
@simeonApproppo If you are saying my recommendation to allow more versions does not work, I updated my comment above to include a workaround for that case. |
Downgrading to freezed 2.5.7 is working.. But I hope that you will release a version, that depends on a actual version of source_gen soon. :-) |
@greenrobot-team Using dependency overrides won't work as source_gen 3.0.0 introduces breaking changes (https://pub.dev/packages/source_gen/changelog). |
@mike-500 Thanks for the info! It also requires at least Dart 3.6. As we try to support as many old Dart (and Flutter) versions as possible, that is another thing to consider. But as the first comment already has 6 thumbs ups I guess doing it soon is more important. |
Hello, objectbox cannot be used with latest versions of
Overriding |
@azlekov AutoRoute downgrade to |
Hey guys
I wanted to test objectbox, but I get a dependency error.
Seems like a too old version of source_gen is used and so I have a conflict with other packges.
Could you please update this to source_gen to version 2.0.0
Because no versions of objectbox_generator match >4.0.3 <5.0.0 and objectbox_generator 4.0.3 depends on source_gen ^1.0.0, objectbox_generator ^4.0.3 requires source_gen ^1.0.0.
Edit:
Found another conflict:
Because no versions of objectbox_generator match >4.0.3 <5.0.0 and objectbox_generator 4.0.3 depends on analyzer >=5.2.0 <7.0.0, objectbox_generator ^4.0.3 requires analyzer >=5.2.0 <7.0.0. And because riverpod_lint >=2.6.4 <3.0.0-dev.0 depends on analyzer ^7.0.0, objectbox_generator ^4.0.3 is incompatible with riverpod_lint >=2.6.4 <3.0.0-dev.0.
The text was updated successfully, but these errors were encountered: