Fork me on GitHub
#clojurescript
<
2021-02-19
>
andersmurphy16:02:57

Quick question. In clojure you can specify the print function for the repl by evaluating (clojure.main/repl :print clojure.pprint/pprint)) I can’t for the life of me find the clojurescript equivalent. I’ve tried (cljs.repl/repl :print cljs.pprint/pprint)) but cljs.repl/repl isn’t available. Any ideas? I’m just running the basic cljs repl from the webpack clojurescript tutorial.

jasmith23:02:58

I am trying to get a clojurescript environment set up on a macos machine. 1/Cursive seems not to be working with the latest IDEA: every Clojure keyword in a source file shows up as cannot be resolved . I was able to get a remote Cursive REPL to work with shadow-cljs. The REPL works fine, just the editing is off. 2/I've been trying to get CIDER working. Highlighting works fine, but every time I try to jack-in I get the message could not start nREPL server: env: node: no such file or directory. And yes I do have node set up and on the emacs exec path. Any suggestions as to where I can turn next? Thanks!

p-himik00:02:34

You might get responses sooner in the designated channels - #cursive and #cider

jasmith00:02:03

Thanks. I just found and joined those two channels. Perhaps another answer might be to give up on those and use another IDE/environment?

p-himik00:02:14

I'd say that giving up on the most popular choices just because one thing (potentially easily fixable) doesn't work is more probable to cause more problems in the long run. But if you really want to try something else, IIRC VSCode + Calva is the third most popular choice.

jasmith00:02:52

Thanks for the suggestion! I am stalled on those two at the moment, so glad to try VSCode + Calva in hopes of getting work done.

p-himik00:02:06

Also a couple of things you could try independently or together: - Downgrade IDEA - Update Cursive to one of the EAP versions (participation in the EAP program can be enabled in the settings)

jasmith01:02:40

So far VSCode + Calva is working well. Very very helpful! Thanks!! My Cursive version is 1.10.1-eap3-2020.3and downgrading IDEA might be possible but it could run in to trouble with other language plugins .. so I can/will do it if necessary.

p-himik14:02:56

Just in case - perhaps the issue you had with Cursive has been fixed: https://clojurians.slack.com/archives/C06MAR553/p1614090076040800