shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
2020-12-14T08:55:55.447400Z

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?

thheller 2020-12-14T09:08:43.447900Z

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

thheller 2020-12-14T09:17:32.448Z

13 12 2020 20:36:56.964:WARN [filelist]: Pattern "/builds/buidler/prj/target/ci.js" does not match any file.

thheller 2020-12-14T09:17:51.448400Z

yeah looks like the file isn't created properly, likely OOM

2020-12-14T09:25:40.449Z

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

wilkerlucio 2020-12-14T10:14:34.449700Z

@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

2020-12-14T10:16:12.450200Z

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

2020-12-14T10:16:59.451Z

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

2020-12-14T10:17:01.451200Z

will try.

2020-12-14T10:18:35.451800Z

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

zhuxun2 2020-12-14T18:46:12.453100Z

Is there a way to access rc/incline from JavaScript? https://clojureverse.org/t/using-none-code-resources-in-cljs-builds/3745

zhuxun2 2020-12-14T18:47:19.454500Z

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?

thheller 2020-12-14T20:39:31.455Z

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