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

fix: out of the box does not work, clash between intl and flutter:gen any #1099

Open
neiljaywarner opened this issue Aug 5, 2024 · 2 comments
Labels
bug Something isn't working as expected p1 High-priority issues at the top of the work list

Comments

@neiljaywarner
Copy link

Description
Clash between intl and flutter_gen, imports do not work for app localizations
see https://stackoverflow.com/questions/64574620/target-of-uri-doesnt-exist-packageflutter-gen-gen-l10n-gallery-localizations
"That was my issue also. Basically the intl package generates localisation code under a fake flutter_gen package, but there is also a real flutter_gen package on pub.dev. If you install the latter, it will take priority and hide the generated localisation code, so it will appear to not exist. –
rjh
CommentedAug 28, 2022 at 14:04
"

Steps To Reproduce

  1. very_good create
  2. flutter run

Expected Behavior
project compiles and runs, no dart analysis errors

** fixed by**
remove flutter-gen: any from the pubspec.yaml, flutter pub.geet
5-aug-2024 stable channel, recent/latest cli

@neiljaywarner neiljaywarner added the bug Something isn't working as expected label Aug 5, 2024
@alestiago
Copy link
Contributor

alestiago commented Aug 13, 2024

I've experienced this myself.

There are other issues that have been opened in the past regarding it #1065, #987 and #973.

@wolfenrain tried providing a fix with #1002, but it seems the issue persists.

I believe this dependency is getting added by Dart tooling since the template itself has no reference to it as a dependency in its pubspec.

For now, you can simply resolve by manually removing the flutter_gen dependency. I'll see if it can get prioritised by the team again. If you would like to provide a fix yourself let us know and we can assign you to the issue 🙌 !

@tomarra
Copy link
Contributor

tomarra commented Aug 27, 2024

I believe this dependency is getting added by Dart tooling since the template itself has no reference to it as a dependency in its pubspec.

This is the main part of the issue. Either we need to work with the Dart team in order to fix this on their end or we need to create a workaround in the mean time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected p1 High-priority issues at the top of the work list
Projects
Status: Backlog
Development

No branches or pull requests

3 participants