Open sobaya-0141 opened 2 years ago
what version are you using? I think this should be fixed on master with https://github.com/cashapp/paparazzi/pull/530, but it's unreleased, so I'd like to confirm whether there's work to be done here, or if this can be closed out.
I am using version 1.0.0
I believe this problem is occurring with a specific Java distribution. Because it occurred with Zulu18.32 and not with Temurin-18.0.2.1+1.
Mind confirming the issue?
We are seeing a similar regression in Paparazzi as of this weekend. Reverting to a previous snapshot of Paparazzi did not resolve the issue for us but reverting to v1.0.0 did resolve it.
We are seeing a similar regression in Paparazzi as of this weekend. Reverting to a previous snapshot of Paparazzi did not resolve the issue for us but reverting to v1.0.0 did resolve it.
@DavidBrunow 1.0.0 is the newest version of Paparazzi no? Did you mean something else?
I am also getting this error, and I tried with Temurin-18.0.2.1+1 and 19.
Seeing this as well
Based on this answer there's workaround yet for Java 18+. However, following the future of the commit mentioned in #205's comment, they migrated to using Unsafe
in https://github.com/powermock/powermock/pull/1026 which may or may not work on Java 18 and 19.
As a workaround, you can try to set your Test task's toolchain to something lower:
tasks.withType(Test).configureEach {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(11)
}
}
Based on this answer there's workaround yet for Java 18+. However, following the future of the commit mentioned in #205's comment, they migrated to using
Unsafe
in powermock/powermock#1026 which may or may not work on Java 18 and 19.As a workaround, you can try to set your Test task's toolchain to something lower:
tasks.withType(Test).configureEach { javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(11) } }
Thanks, this has fixed the modifiers
error, but now I get
kotlin.UninitializedPropertyAccessException: lateinit property sessionParamsBuilder has not been initialized
at app.cash.paparazzi.Paparazzi$Companion.getSessionParamsBuilder$paparazzi(Paparazzi.kt:626)
at app.cash.paparazzi.Paparazzi.prepare(Paparazzi.kt:162)
at app.cash.paparazzi.Paparazzi$apply$statement$1.evaluate(Paparazzi.kt:124)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61)
Seems to be just locally (macOS). On our CI with the same java it works.
Note, there might be a better workaround than toolchains: https://github.com/cashapp/paparazzi/pull/1030/files
Re sessionParamsBuilder
, https://github.com/cashapp/paparazzi/issues/486 looks related, but not necessarily the same problem. If that doesn't help, please consider opening a separate issue to keep this one focused on modifiers
.
Description
171 Related
OpenJDK Runtime Environment Zulu18.32+11-CA (build 18.0.2+9)
Steps to Reproduce ./gradlew recordPaparazziDebug