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

Detect Kotlin daemon fallback strategy #194

Closed
eugene-krivobokov opened this issue Feb 4, 2022 · 1 comment · Fixed by #195
Closed

Detect Kotlin daemon fallback strategy #194

eugene-krivobokov opened this issue Feb 4, 2022 · 1 comment · Fixed by #195

Comments

@eugene-krivobokov
Copy link
Contributor

The problem

There is a problem with the Kotlin daemon. In case of failure, it silently falls into fallback mode. This could slow down the build by several times.

Could not perform incremental compilation: Could not connect to Kotlin compile daemon
Could not connect to kotlin daemon. Using fallback strategy.

Here is more details: https://youtrack.jetbrains.com/issue/KT-48843

Proposal

Detekt and fail the build. A warning in many cases is not enough because there are already warnings in logs from the compiler.

Feel free to reuse sample implementation from avito-tech/avito-android#1326

@eugene-krivobokov eugene-krivobokov changed the title Detekt Kotlin daemon fallback strategy Detect Kotlin daemon fallback strategy Feb 4, 2022
@runningcode
Copy link
Owner

Thanks for filing this. This is a good idea to implement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants