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

realm conflict with l10n dependencies. #1645

Closed
Justincyz opened this issue Apr 24, 2024 · 3 comments
Closed

realm conflict with l10n dependencies. #1645

Justincyz opened this issue Apr 24, 2024 · 3 comments
Assignees
Labels
O-Community SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed

Comments

@Justincyz
Copy link

What happened?

The bug I am facing is behaving very similarly to (#1317). But found out they are two different root causes. After run 'dart run build_runner build --delete-conflicting-outputs'
I got this output.
Unhandled exception:
Bad state: Unable to generate package graph, no /Users/justin/Desktop/flutter-project/flutter project/RG-LINK/.dart_tool/flutter_gen/pubspec.yaml found.
#0 _pubspecForPath (package:build_runner_core/src/package_graph/package_graph.dart:268:5)
#1 _parsePackageDependencies (package:build_runner_core/src/package_graph/package_graph.dart:242:21)
#2 PackageGraph.forPath (package:build_runner_core/src/package_graph/package_graph.dart:120:33)

#3 main (file:///Users/justinchen/.pub-cache/hosted/pub.dev/build_runner-2.4.9/bin/build_runner.dart:27:30) '''

Then I did some research on Google and found this article (dart-lang/build#2835). Basically, the conflict is because I am using International dependency (l10n package). And the
截屏2024-04-24 13 52 43
'generate' field must be true to enable translation to happen. In order to fix realm issue, I currently turn this field to false.

Repro steps

just following the setup instructions but nothing happends.

justin@YC-Macbook-Pro-16  % dart run realm generate     
Building package executable... (1.6s)
Built realm:realm.

Version

latest

What Atlas Services are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

MacOS

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Copy link

sync-by-unito bot commented Apr 24, 2024

➤ PM Bot commented:

Jira ticket: RDART-1013

@nielsenko
Copy link
Contributor

nielsenko commented Apr 24, 2024

Why do think this is caused by the realm package?

When running dart run realm generate you are essentially calling dart run build_runnner build --delete-conflicting-outputs.

@nielsenko
Copy link
Contributor

nielsenko commented Apr 24, 2024

What does dart --version output?

Also, could you try option 2 from: dart-lang/sdk#53696 (comment)

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label May 3, 2024
@sync-by-unito sync-by-unito bot closed this as completed May 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
O-Community SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed
Projects
None yet
Development

No branches or pull requests

2 participants