https://kotlinlang.org logo
Title
t

Tianyu Zhu

01/27/2023, 8:53 PM
Hi! Is there a way to get the
browserRun
task to also recompile my Kotlin code when it changes?
f

Foso

01/27/2023, 9:10 PM
./gradlew -t browserRun
a

ayodele

01/27/2023, 9:25 PM
Why can't you use the browserRun --continuous ??
b

Big Chungus

01/27/2023, 9:26 PM
FYI -t is the same as --continuous
t

Tianyu Zhu

01/27/2023, 10:16 PM
when I try to run with
--continuous browserRun
, it doesn't end up recompiling my Kotlin. So I'll make change in my *.kt files and the browser will reload, but nothing changes 😞
I'm also seeing this warning... maybe it's related?
Execution optimizations have been disabled for task ':web:browserDevelopmentRun' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/home/tzhu/Projects/reflex/build/js/packages/reflex-web/kotlin/reflex-web.js'. Reason: Task ':web:browserDevelopmentRun' uses this output of task ':web:developmentExecutableCompileSync' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to <https://docs.gradle.org/7.6/userguide/validation_problems.html#implicit_dependency> for more details about this problem.