Fork me on GitHub
#emacs
<
2024-07-10
>
mkvlr06:07:39

we’re implementing a custom cljs repl for Clerk based on https://github.com/babashka/sci.nrepl. This is an nREPL server that directly provides the cljs nREPL, not nested inside a Clojure one. I can connect and evaluate forms by selecting the correct sesman session and evaulating in the REPL buffer, but when trying to eval code from a clj file it says "No clj REPLs in current session". Is the assumption that a cljs-repl is nested inside a Clj-repl hard-wired? I’m a bit lost on how to debug this, any pointers?

mkvlr06:07:44

is there a way to call functions like cider-clojurescript-present-p interactively?

vemv09:07:49

You can check https://github.com/clojure-emacs/cider/issues/3716 for getting an idea of what's involved and how to debug it (`cider-debug-sesman-friendly-session-p)`) or work around it (`sesman-link-with-buffer`) If you'd like to debug this on your own, you'd have to understand how Sesman works and how it's integrated into CIDER. It's not a big deal honestly. But you can also create an issue on GH

mkvlr09:07:39

@U45T93RA6 will check it out, thanks a lot for the pointers!

🙌 1
mkvlr12:07:07

interesting, I can connect with cider-connect-clj (not cljs) and switch to clojure-mode

mkvlr12:07:23

I can also connect via cider-connect-cljs and select nbb

mkvlr12:07:28

but custom doesn’t work

vemv12:07:17

Nice, when I attended the ticket above I kept wondering why that was Internally it seemed all clean with no hardcoding of e.g. 'clj Would deserve an invesigation at some point