Desugaring for Android failed: Worker process did not return a WorkResponse
See original GitHub issueDescription of the problem:
While building an Android project, with Bazel from latest master, an error is thrown in Desugar worker log saying: Error parsing command line: Unrecognized option: --persistent_worker
Bugs: what’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Though I faced it in multiple projects, this project can be used for reproducing the issue: https://github.com/steelrooter/bazel-android-samples
Run: bazel build //app:app
What operating system are you running Bazel on?
macOS (darwin)
What’s the output of bazel info release
?
development version
If bazel info release
returns “development version” or “(@non-git)”, tell us how you built Bazel.
bazelisk build //src:bazel
What’s the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?
git@github.com:bazelbuild/bazel.git
c063b5caf776dee665497b64c5c17d4ed7e6750a
4eee205df99e42922d0d658c7f41f72af2397895
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
ERROR: /Users/sachin/PersonalProjects/samples-bazel-android/app/src/main/java/com/xachin/playground/BUILD.bazel:3:19: Desugaring app/src/main/java/com/xachin/playground/playground-app_kt.jar for Android failed: Worker process did not return a WorkResponse:
---8<---8<--- Start of log, file at /private/var/tmp/_bazel_sachin/6af8cdc15b57945be280298fb5d977c4/bazel-workers/worker-2-Desugar.log ---8<---8<---
Error parsing command line: Unrecognized option: --persistent_worker
Try --help.
---8<---8<--- End of log ---8<---8<---
Target //app:app failed to build
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Bazel Scala "failed: Worker process did not return a ...
I have found the problem. Default scala_toolchain has direct mode. So it sees only dependencies, that are defined in the deps filed of ......
Read more >androidx.room:room-runtime 2.3 and above lack a ...
I'm not sure how the POM files are generated, so I'm not sure which ... for Android failed: Worker process did not return...
Read more >Bazel - Kotlinlang
Has anyone gotten compose desktop or any ot… hello guys am trying to build my first ... for Android failed: Worker process did...
Read more >Build error in Bazel - Google Groups
FAILED : Build did NOT complete successfully. For information concerning the processing of your personal data according to Art. 13, 14 GDPR
Read more >Java and Bazel
The following resources will help you work with Bazel on Java projects: ... which are used in the build process, but are not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just got the same issue after upgrading to Bazel 3.3.0. I also don’t have the flag set in my
.bazelrc
file but I did use it few times in the same workspace by adding it manually to my build command.bazel clean --expunge
doesn’t help.Created https://github.com/bazelbuild/bazel/issues/11618 with repro steps