Hoot game template REPL connection failed

Hi there! I’m interested in REPL-driven-development when making games with Hoot (full disclosure: I’m still learning Scheme and a lot of concepts are alien to me).

I have the latest version of the game template from codeberg, and I run:

guix shell
make serve

which outputs:

hoot compile -L modules --bundle -o game.wasm game.scm
wrote `game.wasm'
hoot server
Hoot development web server started
Listening for HTTP requests on: 127.0.0.1:8080
Listening for REPL clients on:  127.0.0.1:37146
Working directory:              /home/gonzalo/Code/games/reading/hoot-game-jam-template

Then, in Emacs I run connect-to-guile and pass in localhost and 37146, but I get this error:

Error: Connection failed
No control WebSocket

Process Guile REPL connection broken by remote peer

I’m sure this is an error in my environment, but I’d appreciate help in figuring it out.

Thanks in advance.

The game jam template does not currently have REPL support. So while hoot server launches a REPL proxy server, it’s not going to do anything because the Wasm program doesn’t start a REPL server that connects to the proxy. Furthermore, connect-to-guile is the wrong Emacs function to use as that is for the Guile VM REPL, not Hoot.

If you are just beginning to learn Scheme then I highly recommend that you start much simpler. Get used to the REPL driven workflow with Guile and Geiser first as that is a much more mature system whereas Hoot’s live hacking story is still very much being written.