Fork me on GitHub
#cursive
<
2018-03-09
>
genekim07:03:16

@mfikes Thanks so much for talking with me a couple of days ago — and helping me get tubular running so I could run a Planck REPL. Super cool! I can type in the REPL window, but everytime I send a form to the REPL, I get a namespace error.. What do I type in the REPL to get in the correct namespace? Thx again!

genekim07:03:00

( @mfikes — sorry I couldn’t upload screenshot here.. getting the “your storage space exceeded” error from Slack. :)

rarous08:03:44

@genekim send the whole file or the ns form first

mfikes12:03:29

@genekim In Cursive, I usually do Tools > REPL > Switch REPL NS to Current File. This should issue an in-ns command, that you could also type directly into the REPL. It is also important to load the namespace that you want to work in either using Cursive’s Tools > REPL > Load File in REPL. This will issue a load-file, but you can invoke require directly in the REPL.

danm13:03:20

When I write Clojure, I often have several namespaces (particularly if following the functional core/imperative shell pattern). I know Cursive can do "run tests in current NS in repl", but can it do "Run all tests in module in REPL"?

jjfine15:03:36

how does cursive suggest namespaces? i just invalidated my cache and its still suggesting a namespace of a library that i removed a long time ago. eg i type in the REPL (d/ and its suggesting datascript.core which isn't anywhere in my code anymore

jjfine15:03:10

ah, it was still in my "External Libraries" deleted it and now i'm good

rauh15:03:39

Not an answer but: I've also had the same issue. Used pedestal.logging :as log ages ago and then switched to clojure.tools.logging. When writing log/info it still sometimes aut-inserts the pedestal logging ns.