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

Server routes are broken on Windows #208

Closed bitspittle closed 1 year ago

bitspittle commented 1 year ago

To repro...

# On Windows only!!
$ kobweb create examples/todo
$ kobweb run

Visit localhost:8080 and get an infinite spinner...

bitspittle commented 1 year ago

Seems like the fundamental issue was this commit: https://github.com/varabyte/kobweb/commit/5d92e03bc6f9548a0a39cdb0dc592b333866197c

Basically, with that change, we stopped inheriting the Gradle process's environment, one part of which directed the subprocess where to create temp files. *nix seems to have good defaults, but Windows defaults to creating temp files in C:\WINDOWS (??!), which causes the server to crash.

bitspittle commented 1 year ago

Will be fixed in 0.11.9