varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.46k stars 65 forks source link

kobwebStart -t not available via run config #91

Closed gabe97330 closed 1 year ago

gabe97330 commented 2 years ago

README describes invocation of dev server with live loading via kobweb cli, gradle cli and intellij run config. I couldn't get the run config to work, see youtrack issue.

Is there an alternative way to get the live loading to work via run config?

bitspittle commented 2 years ago

It used to work a few months ago. Autocomplete didn't work but it still accepted it. Is the youtrack bug implying this broke recently?

If you need a workaround, would creating a shell script run config work? https://www.jetbrains.com/help/idea/shell-scripts.html

Thanks for the heads up. I'll try this out myself today and update the README. Although my assumption is they'll fix the upstream bug soon hopefully.

On Fri, Jan 7, 2022, 6:52 AM Gabe Beged-Dov @.***> wrote:

README describes invocation of dev server with live loading via kobweb cli, gradle cli and intellij run config. I couldn't get the run config to work, see youtrack issue https://youtrack.jetbrains.com/issue/IDEA-284935.

Is there an alternative way to get the live loading to work via run config?

— Reply to this email directly, view it on GitHub https://github.com/varabyte/kobweb/issues/91, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNONATSJOZ2NDSAO73G6WDUU3435ANCNFSM5LO6OG7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

bitspittle commented 2 years ago

I added some workaround instructions to the README. I'll leave this bug open and will clean up the README later after IJ fixes their issue upstream.

gabe97330 commented 2 years ago

My impression is that this broke recently but there is surprisingly little discussion. Perhaps everyone doing kotlin/js development is using the cli?

will look into the shell script approach and will try focusing on cli (kobweb as well as gradlew) rather than run/config. Have more general questions on dev/test/debug workflow trade-offs which I'll attempt to articulate separately.

bitspittle commented 2 years ago

Have more general questions on dev/test/debug workflow trade-offs...

Honestly, this is a huge weak point in Kobweb at the moment. I just haven't had much time to dwell on it. I've filed bug #93 for now to make sure I'm keeping track of this now as a 1.0 blocker. Please feel free to have discussion in that bug or in our Discord, whatever you prefer.

bitspittle commented 1 year ago

This was probably fixed by IJ a while ago, but confirmed in IntelliJ IDEA 2022.2.2 at least that this is working.