Skip to content

Update source_gen to 2.0.0 #1825

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

Open
objectorientedperson opened this issue Jan 31, 2025 · 6 comments · May be fixed by #1835
Open

Update source_gen to 2.0.0 #1825

objectorientedperson opened this issue Jan 31, 2025 · 6 comments · May be fixed by #1835

Comments

@objectorientedperson
Copy link

Problem

Hi,

When I try to use the realm with auto_route, it gives the error below:

Because auto_route_generator 9.3.0 depends on source_gen ^2.0.0 and realm_generator >=0.2.0-alpha depends on source_gen ^1.1.0, auto_route_generator 9.3.0 is incompatible with realm_generator >=0.2.0-alpha.
And because realm >=20.0.1 depends on realm_dart ^20.0.1 which depends on realm_generator ^20.0.1, auto_route_generator 9.3.0 is incompatible with realm >=20.0.1.

Solution

Updating the source_gen dependency to 2.0.0

Alternatives

No response

How important is this improvement for you?

Dealbreaker

Feature would mainly be used with

Local Database only

@victorcode1
Copy link

please I need it too

@schmitzli
Copy link

Flutter / Dart is still moving fast and we need to move on to latest stables.
Source_gen should only be a dev_dependency, but realm depends on it,
is there a possibility to have the realm without the generator in the app dependencies?

@saucelooker
Copy link

saucelooker commented Mar 16, 2025

Hello. Is there any news on this issue? This problem makes it impossible to use the database(((

@angelru
Copy link

angelru commented Mar 20, 2025

The same issue

@nielsenko nielsenko linked a pull request Mar 22, 2025 that will close this issue
@taner
Copy link

taner commented Apr 11, 2025

Still having this issue and it's conflicting with most other dependencies. Any workarounds or updates?

@anuragvarshney
Copy link

Just wanted to check if there’s a timeline for updating realm_generator to support source_gen ^2.0.0?

We’d like to upgrade to Freezed 3.0 for mixed mode and new constructor support, but it currently conflicts due to the source_gen version lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants