koyo icon indicating copy to clipboard operation
koyo copied to clipboard

Issue with getting started

Open embalmedhead opened this issue 11 months ago • 1 comments

I just discovered Koyo and figured I'd start by following the video here. After running through the setup steps, starting Koyo results in a contract violation:

14:16:34 web.1    | [2024-03-02 14:16:34.334] [   48377] [   info] runner: compiling application
14:16:35 web.1    |  9 making /Users/dev/Repos/shorty/shorty/dynamic.rkt
14:16:35 web.1    |  9 made /Users/dev/Repos/shorty/shorty/dynamic.rkt
14:16:35 web.1    | [2024-03-02 14:16:35.584] [   48377] [   info] runner: starting application process
14:16:35 web.1    | dynamic-rerequire: contract violation
14:16:35 web.1    |   expected: module-path?
14:16:35 web.1    |   given: "/Users/dev/Repos/shorty/shorty/dynamic.rkt"
14:16:35 web.1    |   context...:
14:16:35 web.1    |    /Users/dev/Library/Racket/8.12/pkgs/koyo-lib/koyo/runner.rkt:185:4
14:16:35 web.1    |    /Users/dev/Library/Racket/8.12/pkgs/koyo-lib/koyo/runner.rkt:200:2: loop
14:16:35 web.1    |    body of (submod "/Users/dev/Library/Racket/8.12/pkgs/koyo-lib/koyo/runner.rkt" main)
14:16:35 web.1    | [2024-03-02 14:16:35.725] [   48377] [   info] runner: application process started with pid 48425
14:16:35 web.1    | [2024-03-02 14:16:35.725] [   48377] [warning] runner: application process failed; waiting for changes before reloading

Any ideas what the issue could be? Any help is much appreciated.

embalmedhead avatar Mar 02 '24 22:03 embalmedhead

The error message is unhelpful, but I believe this happens when the application package hasn't yet been installed. I would try

$ cd /Users/dev/Repos/shorty
$ raco pkg install shorty/ # the ending slash matters!

Then try re-running the server.

Bogdanp avatar Mar 03 '24 07:03 Bogdanp