Hello everyone. Is this "live edit" feature <https...
# compose-desktop
o
Hello everyone. Is this "live edit" feature https://developer.android.com/jetpack/compose/tooling/iterative-development available for Intellij? I do see something similar in "settings > editor > compose live edit", but it doesn't work as far as I tried.
a
t
I tried to get something like that last year. It kind of works but i did not had enough time to get a better integration into the IDE: https://gitlab.com/compose1/livecomposable https://gitlab.com/compose1/livecomposable/-/raw/develop/doc/screencast1.mp4
o
Thanks guys!
a
@Alexander Maryanovsky the plugin just shows previews, right? The Live Edit seems like some kind of hot reload of the app itself. Correct me if I'm wrong 😅
a
Indeed
c
@Timo Drick Hey Timo, your livecomposable plugin is really cool and useful! I am trying to use it with https://github.com/Kotlin/kotlin-wasm-examples/tree/main/compose-imageviewer so that I can write changes to components and quickly see them in a desktop window. Is it possible to use
@HotReload
to have components inside the shared module reload?
worst case scenario I'll need to do a funny symlink haha but would be awesome if I didn't
t
unfortunately i don't think this will work for wasm.
I mean technically it is possible but i think you have to change some things about compiliation.
I do not know if it is possible in webasm to load classes during runtime.
c
yeah, I don't mind it not working for the other targets as long as it works for the desktop target, or do you think wasm being a potential target will be an issue? I have copied the HotReload annotation into the common code, and the idea is to run for desktop and use hot reload that way
t
Ah yes of course that should work.
Uh no. Sorry because there is code generated that you than execute.
But it should be possible to generate code for the other platforms that just use the unmodifed classes.
Maybe we should open a new thread to discuss this. Or maybe PM?
c
yeah I don't mind if I need to remove all of the <function>HotReloads before trying to run non-desktop
ok will pm you 🙂
👍 1