Fork me on GitHub
#shadow-cljs
<
2020-12-14
>
David Pham08:12:55

Hello, I wonder if anyone managed to make the cljs repl work with https://vlaaad.github.io/reveal/ ? I like inspect but I would like to explore ways to stay in Emacs with the tap> function. I tried to add it as middleware, but taps are not communicated to the JVM (I think this is basic cljs vs clj repl). Anyone has an idea how we can solve this "easily"? Maybe create a server listening to the same websocket as shadow-cljs and forwarding this to reveal?

thheller09:12:43

I don't think reveal supports CLJS at this point but I don't really know

David Pham09:12:40

They have a nrepl middleware, but then it does not work once you entered the cljs repl.

wilkerlucio10:12:34

@neo2551 I never tried, but in the docs it says to use the socket REPL for CLJS, look for remote-prepl at https://vlaaad.github.io/reveal

David Pham10:12:12

I am think I am locked with shadow-cljs though 🙂

David Pham10:12:59

Maybe I can create another process than the watch but with a remote-prelp

David Pham10:12:35

By the way, shadow-cljs inspect is really good, the most stable "rebl" like experience I found with cljs

zhuxun218:12:19

I would like to load a txt file (a glsl shader file) as a string, but in a javascript file. I couldn't find a way to do it using the closure compiler so I figured maybe I could rely on Shadow-CLJS?

thheller20:12:31

@zhuxun2 no. this is a macro so it is only available in CLJS