Fork me on GitHub
#cursive
<
2020-02-15
>
Ivan Koz15:02:31

How to connect\run shadow-cljs, watcher cljs repl from cursive? Can it be simplified?

Ivan Koz15:02:36

Currently there is two Idea tasks; first runs lein -> shadow-cljs watch, and second connects to server's nrepl. The tedious part is to run second task and call (shadow.cljs.devtools.api/repl :app) to access cljs repl.

cfleming23:02:24

I see thheller replied over at #shadow-cljs, but I am planning some init-forms for REPL configs that will be automatically sent once the REPL connects.

🙏 4
Ivan Koz16:02:13

@cfleming can you make it so repl wouldn't NPE if server is offline, but rather retry on a timeout?

Error connecting to localhost:8000 - class .ConnectException: Connection refused (Connection refused)
Exception starting REPL: java.lang.NullPointerException

cfleming23:02:51

The NPE is definitely a bug, I’ll fix that. The retrying is trickier, I’ll think about that.

🙏 4
joshkh16:02:06

does cursive support shadow-cljs projects where there's no project.clj or a deps.edn? Edit* i can't seem to import a project without either Deps or Lein scaffolding, and i'd like to avoid duplicating my shadow-cljs.edn dependencies in a deps.edn file 🙂

dpsutton17:02:32

i think the shadow documentation mentions using shadow to create a pom file