Open ecnaidar opened 1 year ago
Thank you so much, I'm really happy that you like Vaadin-on-Kotlin :)
Unfortunately I have found no good solution for the hot-redeployment. I think it's connected to the massive number of closures/anonymous classes outputted for every dsl{}
block; the classes change every time the hierarchy is changed. It's just a hunch, I have no proof or anything.
I also ended up using the JBR with all of the flags as mentioned with https://github.com/mvysny/vaadin-boot#advanced-hotswapping , but I'm mostly ending up with having to restart the JVM unfortunately. The JRebel pricing is too steep, and I'm not sure whether the hot-redeployment is actually better or not.
I wonder whether JBR 21 will have improved hot-redeployment... Maybe we can try to build JBR21 from https://github.com/JetBrains/JetBrainsRuntime/tree/jbr21 and try it out.
Let's keep this question open, maybe others have found a better solution.
mostly ending up with having to restart the JVM
Yeah, sounds like a familliar sitation. Seems to work just fine when you only touch non-DSL classes or changing configs inside of existing DSL structures. Not sure if it depends on the depths, I will keep an eye out for it.
Thanks for the fast response on this anyway and let's see if situation improves in the future 👍
Hey, first of all, thank you for your work on bringing Vaadin to Kotlin! Especially amazing to see brewity Karibu DSL brings to creating views and reusable components ❤️
With that said, do you know if it is possible to get hotreload setup working with Kotlin and Karibu? (or perhaps some misconfiguration that causes the issue for me?)
We have a project based on VoK helloworld app and I could not get hotreload working on IntelliJ Community in a reasonable way with any of proposed solutions either from your Vaadin Boot or Vaadin docs so I would appreciate any comments or pointers if such setup exists.
Main.kt
or through the Gradle'srun
task does not seem to make much differencespring-boot-devtools
are completely irrelevant when using Vaadin Bootagain, dependency-wise it is forked from VoK helloworld app and while I updated some of dependencies and added others, it should not affect but posting
gradle.kts
here just in case it could give any informationThank you for your time and any suggestions are welcome.