Closed ln-12 closed 1 month ago
If I had to guess, your new project might be using a different JDK than the previous? Paparazzi requires projects to use JDK 11+
I also cannot convince gradle (yet) to display the full stack trace instead of just "... 161 more" at the end.
The 161 more is the long stack above it. Java, instead of repeating the stack for every exception, splits it up into chunks at points of throw
s. In this case it's a special exception, so it seems a CNFE immediately triggers a NCDFE.
To add to what John said above: https://developer.android.com/build/jdks
Description I've used Paparazzi for quite some time now and it worked very well for me. Now I wanted to integrate it into a different project and get the following exception whenever I try to take a snapshot of a dialog composable. The snapshot for the exact same dialog composable from this new project works fine in the old project. Also, all snapshots for the other non-dialog composables are generated as expected. The snapshot test itself is just copied, so there is no difference there. I also looked through all gradle configs but could not spot any difference that could cause this issue. The previews in Android Studio look fine in all cases. Do you have any idea where this might come from? Or can you tell me what steps I can take to dig into the root cause?
I also cannot convince gradle (yet) to display the full stack trace instead of just "... 161 more" at the end.
Steps to Reproduce Unfortunately, I could not reproduce this behavior in a fresh, minimal example...
Expected behavior No exception is thrown.
Additional information: