-
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
Analyzer FileResult.isPart returns false when it should return true #49031
Comments
So this is indeed a |
Actually moving this back to |
Nevermind, this is a |
Interestingly though, it seems to have found some |
cc @natebosch this could be related to the change to the regex? |
Hmmm, that change has not been released so maybe not. |
The regex change should only make the glob more strict, whereas this looks like it's picking up assets that it shouldn't and thinking they are shared part content? Somehow it looks like there is a |
Looks like a bug in @kevmoo - did you change something where it is unconditionally outputting some private content for inputs that have no serializable classes, including part files?
|
Yeah I am seeing files like |
@natebosch – I don't think so. Maybe a bug in freezed? Those names look pretty weird... |
It definitely looks like a bug in |
Asset [....freezed.dart] is not a Dart library. It may be a part file or a file without Dart source code.
Yes, it looks that the implementation of synchronous methods in |
…) uses new content. Bug: #49031 Change-Id: I4c959c0fd0461339623268102c879163ac9f3d3f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244961 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
🎉 You guys are great! |
Does this need to be cherry picked? |
As far as build_runner is concerned we can just pick up the next pub release. Not sure if it causes other general issues with |
I'm not sure. We use |
Hi, is it released to pub.dev now? https://pub.dev/packages/build_runner/changelog does have a new release but seems changelog does not mention this issue. Looking forward to the new release! |
The fix and changelog entry are in the |
I see. Thank you! |
Thank you for taking the time to file an issue!
In order to route, prioritize, and act on this as soon as possible please include:
dart --version
) latestbuild_runner 0.7.12
) build_runner latestpubspec.lock
file. see github repoAsset [....freezed.dart] is not a Dart library. It may be a part file or a file without Dart source code.
rrousselGit/freezed#668Missing some or all of the above might make the issue take longer or be impossible to act on.
Hi thanks for the build runner! However I cannot run it. Although it looks like a
freezed
problem, but the error stack trace solely lies insource_gen
, so I raise issue here.Steps: Download https://github.com/fzyzcjy/freezed_build_runner_bug. Run
flutter pub get
. Runflutter pub run build_runner build --delete-conflicting-outputs --verbose
.Output:
The text was updated successfully, but these errors were encountered: