darkmoon_uk
07/16/2025, 10:31 PMcommonMain
Preview working? I cannot, for the life of me, make this work in IntelliJ IDEA 2025.1.3. I'm using Compose 1.9.0-beta3
, tried with & without Android Multiplatform plugin installed, of course including in `commonMain`:
implementation(compose.components.uiToolingPreview)
...the gutter or preview options never light up on my @Preview
's. What's the trick!? I hope 1.9.0
comes with some instructions because whatever it is, it must be a very fickle set of configurations and sure as hell is not obvious! kodee grumpy The years of my life wasted trying to get common previews (since CfD released) are going to stop being measured in fractions soon.Pablichjenkov
07/16/2025, 10:38 PMdarkmoon_uk
07/16/2025, 10:42 PMimplementation(compose.uiTooling)
...doesn't resolve from commonMain
darkmoon_uk
07/16/2025, 10:42 PMdarkmoon_uk
07/16/2025, 10:46 PMcommonMain
support with expect/actuals; I've been there:
So here it goes, I'm sending the [JB] distress flare, look at this:darkmoon_uk
07/16/2025, 10:47 PM1.9.0
gets released with commonMain
Preview as a feature, it had better actually be documented and not just 'thrown over the wall', because I'm not sure [JB] Devs appreciate how confusing this is to configure. Debugging K/N freezing memory model issues was a walk in the park compared to this one.
Youtrack shows: users really want this, and it's really hard to get at. This should be CMP projects #1 priority - and I would have said that for a long time. Previews are one of Compose's greatest productivity strengths, but take them into the KMP context and Previews are practically unusable without commonMain
support. Who wants to be manually navigating between source sets and re-setting split panes across source sets just to get a common component into view? The current UX sucks.Pablichjenkov
07/16/2025, 11:50 PMIlia Bogdanovich [JetBrains]
07/17/2025, 7:23 AMdarkmoon_uk
07/19/2025, 1:00 PMshared
module of a KMP App).
The commonMain
source set has:
implementation(compose.components.uiToolingPreview)
...while the androidMain
source set has:
implementation(compose.uiTooling)
darkmoon_uk
07/19/2025, 1:01 PM1.9.0
is released and this feature is supported; hopefully it'll come with clear instructions at that point.Ilia Bogdanovich [JetBrains]
07/29/2025, 8:36 AM