Reputation: 139
I'm using the gtk4 bindings in Common Lisp from https://github.com/bohonghuang/cl-gtk4.
The description says code can just be hot reloaded, but the main function seems blocking and it doesn't seem like I can re-compile the code (I'm using Slimv).
What's missing in my setup? Do I need to run the main function differently?
I can run the examples without any issues, and I'm using Neovim on Ubuntu 24.04, Slimv and SBCL.
An example to reproduce:
(ql:quickload :cl-gtk4)
(gtk4:define-application (:name test-app :id "org.testorg.testapp")
(gtk4:define-main-window (window (gtk4:make-application-window :application gtk4:*application* ))
(setf (gtk4:window-title window) "Test App"
(gtk4:window-default-size window) '(800 600))
(gtk4:window-present window)))
When evaling the snippet with ,d
for SlimvEvalDefun(), and running it with (test-app)
in the repl it works as expected, but if I change the window title and re-eval it with ,d
it doesnt update (I could be wrong but it seems like the (test-app) call is blocking, potentially preventing it from reevaluating.
Upvotes: 0
Views: 115