-
Notifications
You must be signed in to change notification settings - Fork 204
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
AssetNotFoundException running custom builder #3487
Comments
This exception actually looks like it is coming from a brand new run of This indicates that in between the initial computation of all the changed/added/removed sources, this file has been deleted. Do you have something that is manually deleting these |
Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll reopen the case if you do. Thanks for your contribution! |
Hi, sorry, I missed the notification. I don't believe that we have any manual process deleting that file. |
Are you possibly running multiple instances of build_runner at a time? That could also cause this. |
We're using turbo to drive some build things across multiple packages. I don't think we're parallelising the actual generation, but I will check, as it is possible. Would it be a problem if build_runner was running simultaneously across different packages? It definitely shouldn't be running multiple times across the same package. |
Running multiple times across different packages should be fine, unless maybe there are symlinks between them? |
Without an open source reproduction case I don't think I can make any progress on this issue. Would it be possible for you to provide something? If not I think we will just have to close this as I unfortunately can't really take any action on it, and it doesn't do any good leaving it open forever. |
Without additional information we're not able to resolve this issue. Feel free to add more info or respond to any questions above and we can reopen the case. Thanks for your contribution! |
We have a custom builder which emits a file for each element that has a certain annotation, and then another builder which consumes those files to build an index function.
We are sometimes hitting AssetNotFoundException with the second builder.
It seems to be some sort of race condition relating to the generated index file. I suspect this because it doesn't always happen, and a second run after a failure will always succeed (presumably because the index file is missing by then).
Info
Dart version: Dart SDK version: 2.19.3 (stable) (Tue Feb 28 15:52:19 2023 +0000) on "macos_arm64"
Build: 2.3.1
full pubspec.lock
In order to route, prioritize, and act on this as soon as possible please include:
OS: macOS, building to iOS
Error Log
Viewer Source
The project itself is closed source, but here's the code for the viewer.
build.yaml
The text was updated successfully, but these errors were encountered: