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

dart run build_runner build cn't running properly #3672

Open
anandsathya80 opened this issue Apr 23, 2024 · 1 comment
Open

dart run build_runner build cn't running properly #3672

anandsathya80 opened this issue Apr 23, 2024 · 1 comment
Labels
needs-info Additional information needed from the issue author

Comments

@anandsathya80
Copy link

when running dart run build_runner build --delete-conflicting-outputs get message :

[INFO] Generating build script completed, took 258ms
[WARNING] Throwing away cached asset graph due to version mismatch or corrupted asset graph.

You have hit a bug in build_runner
Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues

PathNotFoundException: Deletion failed, path = '.dart_tool/build/generated' (OS Error: The system cannot find the path specified.
, errno = 3)
dart:async _CustomZone.runUnary
package:build_runner_core/src/generate/build_definition.dart 333:7 _Loader._deleteGeneratedDir
dart:async Future.wait.
package:build_runner_core/src/generate/build_definition.dart 411:9 _Loader._tryReadCachedAssetGraph.
package:build_runner_core/src/logging/logging.dart 25:18 logTimedAsync
package:build_runner_core/src/generate/build_definition.dart 213:22 _Loader.prepareWorkspace
package:build_runner_core/src/generate/build_impl.dart 114:27 BuildImpl.create
package:build_runner_core/src/generate/build_runner.dart 34:26 BuildRunner.create
package:build_runner/src/generate/build.dart 109:17 build
package:build_runner/src/entrypoint/build.dart 35:18 BuildCommand._run
package:args/command_runner.dart 212:13 CommandRunner.runCommand
package:build_runner/src/entrypoint/run.dart 26:18 run
.dart_tool\build\entrypoint\build.dart 82:16 main

@jakemac53
Copy link
Contributor

jakemac53 commented May 1, 2024

Interesting, was this a one-off error or is it continuing to happen? Is it possible you had multiple build_runner instances going at the same time, or some other task which might have deleted your .dart_tool dir while running a build?

@jakemac53 jakemac53 added the needs-info Additional information needed from the issue author label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info Additional information needed from the issue author
Projects
None yet
Development

No branches or pull requests

2 participants