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.59k stars 71 forks source link

Loader spinner should better handle when the user quits the server #59

Open bitspittle opened 3 years ago

bitspittle commented 3 years ago
  1. kobweb run
  2. change some code
  3. while "building..." spinner is up, press Q

Expected: Page indicates that the web server is down Actual: Spinner keeps going forever

bitspittle commented 3 years ago

This might have been exacerbated by an internal compiler error with compose, which apparently caused Gradle's -t option to stop working, so when I pressed "Q" to exit the server, everything was already busted. This may be a rare thing for users to run into themselves, so it may not be an urgent issue.

bitspittle commented 3 years ago

Maybe the easier bug here is that if the client sees that the server is down (at least in dev mode), it should kill the current page and render something like "The server cannot be reached"