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

[1.5.10-beta02] syncComposeResourcesForIos is incompatible with Gradle Configuration Cache #3744

Closed
chrisbanes opened this issue Sep 29, 2023 · 3 comments
Assignees
Labels
bug Something isn't working gradle Gradle plugin problems reproduced wait for build

Comments

@chrisbanes
Copy link

Describe the bug
Tried out turning the Gradle configuration cache again with Kotlin 1.9.20-Beta2 (since that apparently fixes most of the K/N issues), but it looks like the syncComposeResourcesForIos also has issues.

Versions

  • Kotlin version* 1.9.20-Beta2
  • Compose Multiplatform version*: 1.5.10-beta02
  • OS version(s)* (required for Desktop and iOS issues): Mac
  • OS architecture (x86 or arm64): ARM64
org.gradle.configurationcache.ConfigurationCacheError: Configuration cache state could not be cached: field `resourceFiles` of task `:shared:app:syncComposeResourcesForIos` of type `org.jetbrains.compose.experimental.uikit.tasks.SyncComposeResourcesForIosTask`: error writing value of type 'org.gradle.api.internal.provider.TransformBackedProvider'
	at org.gradle.configurationcache.problems.ProblemsListener$DefaultImpls.onError(ProblemsListener.kt:37)
	at org.gradle.configurationcache.problems.ConfigurationCacheProblems.onError(ConfigurationCacheProblems.kt:38)
	at org.gradle.configurationcache.serialization.AbstractIsolateContext.onError(Contexts.kt:418)
	at org.gradle.configurationcache.serialization.beans.BeanPropertyWriterKt.writeNextProperty(BeanPropertyWriter.kt:100)
	at org.gradle.configurationcache.serialization.beans.BeanPropertyWriter.writeStateOf(BeanPropertyWriter.kt:53)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodec$writeTask$3$2$1.invokeSuspend(TaskNodeCodec.kt:103)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodec$writeTask$3$2$1.invoke(TaskNodeCodec.kt)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodec$writeTask$3$2$1.invoke(TaskNodeCodec.kt)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodecKt.withTaskOf(TaskNodeCodec.kt:237)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodecKt.access$withTaskOf(TaskNodeCodec.kt:1)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodec.writeTask(TaskNodeCodec.kt:97)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodec.encode(TaskNodeCodec.kt:74)
	at org.gradle.configurationcache.serialization.codecs.TaskNodeCodec.encode(TaskNodeCodec.kt:67)
@chrisbanes chrisbanes added bug Something isn't working submitted labels Sep 29, 2023
@chrisbanes chrisbanes changed the title [1.5.10-beta02] syncComposeResourcesForIos is incompatible with Gradle Configuration Cache [1.5.10-beta02] syncComposeResourcesForIos is incompatible with Gradle Configuration Cache Sep 29, 2023
@eymar
Copy link
Member

eymar commented Sep 29, 2023

Reproduced with the template https://github.com/JetBrains/compose-multiplatform-ios-android-template :

* What went wrong:
Configuration cache state could not be cached: field `resourceFiles` of task `:shared:syncComposeResourcesForIos` of type `org.jetbrains.compose.experimental.uikit.tasks.SyncComposeResourcesForIosTask`: error writing value of type 'org.gradle.api.internal.provider.TransformBackedProvider'
> Could not infer iOS target platform. Make sure to build via XCode (directly or via Kotlin Multiplatform Mobile plugin for Android Studio)
....
Configuration cache entry discarded due to serialization error.

gradle.properties:

kotlin.version=1.9.20-Beta2
compose.version=1.5.10-beta02
org.gradle.configuration-cache=true

@eymar eymar added gradle Gradle plugin problems reproduced and removed submitted labels Sep 29, 2023
@eymar eymar self-assigned this Oct 2, 2023
@eymar
Copy link
Member

eymar commented Oct 6, 2023

The fix was merged: #3764
Should be available in 1.5.10

@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@JetBrains JetBrains locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working gradle Gradle plugin problems reproduced wait for build
Projects
None yet
Development

No branches or pull requests

3 participants