Does hot-reload work with all source files or just the :main entry point (as defined in squint.edn)? When I save any other file than main.cljs in Emacs, Vite compiles it, I get a hmr update, but no browser refresh. I can still manually reload the page to get the changes though. I tried it with the replicant and the browser-repl examples in the squint repo, using the suggested npm run dev command in both cases, but same result. I am using Vite 8.1.4 and the latest Squint (0.14.204).
Hmm, it should work but apparently doesn't. Let me take a look. Can you file a Github issue so I won't forget?
Yep, can do.
@peterhfmnn Should be fixed now in 0.14.205. Can you verify?
Yes, can confirm that it’s fixed now. replicant and browser-repl examples hot-reload fine with the adjustments you made.
Thanks for trying out squint!
Sure, I really like it so far! I finally got into Replicant and saw that Squint now supports it, so I thought it was a perfect opportunity to give it a try.
Btw, is nREPL support with Emacs limited to inf-clojure for now? Couldn’t get it to work with Cider, but inf-clojure works fine.
no, cider should work! just try cider-connect
let me try this locally
yes, just cider-connect works (for me). you need to open the browser though, for it to work :)
I'm using CIDER 1.22-0 SNAPSHOT here, I haven't upgraded for a while
let me know how that goes for you and what CIDER version you are using
When I use cider-connect with the nrepl server started via vite dev, I get lots of “request” and “response” messages as well as an Error: resolve is not defined in the terminal (the error also shows up in Cider). Actually, evaluation from the editor works fine, but the messages keep showing up. I use CIDER 1.23-0 SNAPSHOT.
yeah those messages are just for debugging, you can totally ignore it
CIDER just probes the environment for resolve but can work without it
Ah okay, is there a way to somehow silence them?
can you make an issue, then I'll silence them behind a --debug flag
Alright, I’ll do.
@peterhfmnn the new version no longer logs all the nrepl traffic by default https://github.com/squint-cljs/squint/blob/main/CHANGELOG.md#014206
Very nice, having a smooth REPL experience with Squint feels so good now.
cool! :)