Fork me on GitHub
#cursive
<
2019-05-12
>
maximtop07:05:16

Seems that Emacs for clojure/clojurescript development is inevitable

flowthing10:05:51

@maximtop You could try selecting nREPL instead of clojure.main in the config dialog and removing script/repl.clj from the parameters (I don’t know why that’s there, though).

maximtop10:05:43

@flowthing Yes, I've managed to launch cljs repl from the Cursive via nREPL I've started nREPL from command line lein repl and connected to the nREPL via Cursive remote repl after that I have run in REPL these commands

(use 'figwheel-sidecar.repl-api)
(start-figwheel!)
(cljs-repl)
It would be perfect if there be some possibilities to not type them every time

flowthing15:05:21

The typical way would be to add dev/user.clj, add a function that calls those things, and add ”dev” into project.clj :source-paths. Then just call that function when you open a REPL.

maximtop15:05:29

👍 Ok, I'll try this. Thank you

Lennart Buit19:05:53

I created a new cljs project with a deps.edn, but cursive can’t resolve defn and println, can I fix that somehow?

Lennart Buit19:05:11

ah nevermind, I needed to add clojurescripts to the deps key in deps.edn, instead of extra-deps

holyjak22:05:16

Any tips regarding Cursive, deps.edn and extra-paths from additional aliases, ignored by cursive? I have an alias "specifications" with the extra path "specifications/code", containing the namespace "specifications.invoice". I have configured IntelliJ - Preferences - clojure Deps - Aliases to enable by default by changing it to specifications,test. Even after a restart, when I open the namespace, IntelliJ doesn't show the code directory as a source/test directory and complains "File invoice.clj is not under a source root." Is it so that only the "test" alias is fully supported regarding extra paths? Any tips? Thank you!

1
cfleming22:05:09

@holyjak That should be fixed in the latest EAP build, 1.8.2-eap2

❤️ 2
holyjak22:05:56

You are incredibly quick 🙂

cfleming22:05:23

I just happened to be here and haven’t started clearing out the channel backlog yet 🙂

holyjak22:05:27

(I was joking, implying quick in releasing a fix :)) Hm, I actually run this version...

cfleming22:05:04

Ah, reading your comment, I think you might be setting the alias in the wrong place.

1
cfleming22:05:55

Open the Clojure Deps toolwindow View | Tool Windows | Clojure Deps, open up the Aliases tree and select your alias there. Then refresh your project.

holyjak22:05:22

Ah, thanks, I would have never figured that out!

holyjak22:05:39

... and fixed. Thank you!!!

cfleming22:05:55

No problem!