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

Root module codegen preventing incremental compilation for KSP #373

Open
joshdmiller5 opened this issue Jan 19, 2024 · 3 comments
Open

Root module codegen preventing incremental compilation for KSP #373

joshdmiller5 opened this issue Jan 19, 2024 · 3 comments

Comments

@joshdmiller5
Copy link

Somewhat similar to #322, we've been encountering the following warning when running our custom build jobs on Jenkins:

w: [ksp] No dependencies reported for generated source ShowkaseRootModuleCodegen.kt which willprevent incremental compilation.

It appears that similar KSP issues have been reported google/dagger#4182, but curious if there are any suggestions for Showkase workarounds in the meantime as our app heavily relies on incremental compilation?

Currently failing with the following versions:

kotlin = "1.9.21"
ksp = "1.9.21-1.0.16"
showkase = "1.0.2"
dagger = "2.49"
@vinaygaba
Copy link
Collaborator

Interesting. I'm going to try investigating this shortly.

@joshdmiller5
Copy link
Author

Thank you! Let me know if there is any additional information you need

@joshdmiller5
Copy link
Author

Following up here just to add a little bit more information:

  • Currently, our application uses KAPT for all other annotation processing, including dagger. However, I wanted to use KSP for Showkase to avoid the root module regen issues mentioned in previous issue threads. Not sure if this could be the culprit, but worth noting.
  • The dagger issue linked above has been updated, recommending dagger and dagger-compiler be added as dependencies to all feature modules firing this warning. Trying that on my end, however, did not seem to have any effect.

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

No branches or pull requests

2 participants