-
Notifications
You must be signed in to change notification settings - Fork 288
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
Incremental compilation fails with "Number of loaded files in snapshots differs" #1280
Incremental compilation fails with "Number of loaded files in snapshots differs" #1280
Comments
👋 This issue popped up again since 1.8.20-Beta-1.0.9. Here is an example with 1.8.20-RC-1.0.9 on the android/nowinandroid project: Should we create a new issue? |
@SimonMarquis I can't reproduce the bug consistently with a locally checked out repository, can you verify on your side with a snapshot build |
for context, the snapshot contains fix from #1350 which I anticipate to fix |
Sorry for not being able to test this, I did not found enough time to test it yet. It might very well be an issue with the non-statble (non-compatible?) Compose compiler 1.4.4-dev-k1.8.20-RC-88d9f3a8232. |
@neetopia did #1350 make it into 1.8.20-1.0.10? I'm still reproducing this in that release now in slackhq/circuit#454. 100% reproducible with the below steps
|
yes #1350 was included in the release, but does not seem to fix the issue. |
I was able to reproduce @ZacSweers 's repro, but after I deleted both |
I also encountered this problem when using 1.8.20-1.0.10, Need to run |
@Enaium can you give me a reproduce project? I am not able to reproduce @ZacSweers 's sample anymore after manually removing home caches and project configuration caches. Right now I am not sure if that has anything to do with remote cache. |
I'm able to reproduce it 100%. Maybe try building once with 1.8.10 and then 1.8.20? |
yeah that was what I did try to reproduce. I was able to reproduce 100% as well before deleting both local caches. I have another laptop not with me that can still reproduce 100% as I did not try removing caches on that laptop. |
https://github.com/Enaium/jimmer-sql-kt-vertx |
I'm facing the same issue since upgrading to Kotlin |
Same issue here. We run our Jenkins CI builds without any caching in place, so 100% clean build each time. After updating to Kotlin 1.8.20, KSP 1.8.20-1.0.10 and Compose compiler 1.4.5 we also see this build error. |
Hi all, thanks for the reports, I've pushed a fix in #1363 and it is now available as
in your project and try out this snapshot to see if it resolves your issue, if everything looks good I will do a hot fix release soon to address this issue. |
So glad I found this issue.... we couldn't run after updating to Kotlin 1.8.20, KSP 1.8.20-1.0.10 and Compose compiler 1.4.5. We just tried the 1.8.20-1.0.11-SNAPSHOT and all is working for us! (hope 1.8.20-1.0.11 releases soon :) ) |
This fixed it for me as well in my CI/CD running Unit Tests |
Seems to work for me also. Waiting for final build |
Cool, hot-fix release should be available on Monday. |
I can also confirm that |
Cool, wait for the hot fix! |
hot fix is released as 1.8.20-1.0.11, closing this issue. |
@neetopia I am still facing this issue with |
@rschattauer Can you please give me a reproduce repo for this issue in 1.8.22-1.0.11? Thanks. |
@neetopia it's kind of rough, as locally I have 0 issues, while our CI (jenkins) throws 100% of the time on the branch where I update that |
Hey @neetopia I'm facing the same issue with 1.7.20-1.0.8 release, as we can not bump kotlin version in our project, is it possible to port the fix to the 1.7.20 kotlin release? Or could you suggest any workarounds that we can apply to our project to bypass this issue? Thanks in advance! |
We can't do a back port release, would disable incremental to mitigate this issue work for you? |
@neetopia Thanks for the suggestion, I did try to disable incremental and it did help mitigate this issue. I think we are ok with the workaround for now 👍 |
We are building support for KSP in Micronaut (a popular Java/Kotlin framework). The initial implementation is done but it fails with KSP incremental compilation enabled with an error "Number of loaded files in snapshots differs" on the second compile:
To reproduce download this example project and run
./gradlew cTK
twice.ksp-test2.zip
The text was updated successfully, but these errors were encountered: