-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cycle loading state error: LibraryContext.load2.loadBundle #43073
Comments
cc @scheglov do you have any ideas here? |
I was able to reproduce the issue with the given instructions. |
Should we move this to the |
Yes, this is an analyzer issue, internal exceptions should not happen. |
https://dart-review.googlesource.com/c/sdk/+/159140 should fix the issue, when a version of |
The refresh was causing "Cycle loading state error", so it is possible that this CL will fix this long standing issue. Bug: #43073 Change-Id: Id1eeacd01cf10e918b002d227c8942e38bed543c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159140 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
@jakemac53 Should I create a new issue on the |
There is an analyzer bug fixed on 0.40.2 where watched files are refreshed more often than they should during code gen, leading to deadlocks. See dart-lang/sdk#43073 This change enables affected projects using functional_widget to update to versions of the analyzer where the bug has been fixed.
Cycle loading state error (dart-lang/sdk#43073, which prevented me from running build_runner watch) has been fixed upstream. But current built_value_generator isn’t supporting version of the analyzer 0.40.0 and up. So I’m overriding the dependency. Everything looks fine so far.
The builder process I've been using with no problems is now breaking on
watch
. That is to say:It completes just fine with
pub run build_runner build --delete-conflicting-outputs
(though it does warn me about missing required sources, though that has been fine to ignore for months).It also completes fine for the initial build of
pub run build_runner watch --delete-conflicting-outputs
But then, when it's watching and I change the file, it breaks with the following:
I don't have a minimal repro, but if you're willing to try it out on the real thing:
git clone https://github.com/filiph/egamebook.git
cd egamebook/edgehead
pub get
pub run build_runner watch --delete-conflicting-outputs
assets/text/Knights
(e.g. this one) and make a whitespace change, then saveThat should trigger the failure.
Dart SDK Version (
dart --version
)What package(s) from this repo you are using, and the version (i.e.
build_runner 0.7.12
)What builder(s) you are using (or writing yourself). Try to give a short summary of what they do.
built_value
that runs both on manually-written Dart files as well as on the dart files generated in the previous step.Whether you are using Windows, MacOSX, or Linux (if applicable)
Any other packages or constraints we should know about
The text was updated successfully, but these errors were encountered: