Fork me on GitHub
#cursive
<
2019-05-20
>
cfleming00:05:38

@nxtk I just looked at the *print-namespaced-maps* thing. It’s definitely fixed in recent nREPL versions. I’m not sure why it doesn’t work in :init, but it also doesn’t work in :init in lein repl:

~/d/c/cursive-1541> cat project.clj
(defproject cursive-1541 "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url ""
  :license {:name "Eclipse Public License"
            :url ""}
  :dependencies [[org.clojure/clojure "1.9.0-alpha13"]]
  :repl-options {:init (set! *print-namespace-maps* false)})
~/d/c/cursive-1541> lein repl
nREPL server started on port 53237 on host 127.0.0.1 - 
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.9.0-alpha13
Java HotSpot(TM) 64-Bit Server VM 1.8.0_144-b01
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> *print-namespace-maps*
true
user=>

cfleming00:05:00

Perhaps ask over in #clojure how people solve this?

cfleming00:05:01

The :welcome thing is because lein translates that internally into an option that it then passes to REPL-y (https://github.com/trptcolin/reply), which Cursive doesn’t use.

jeremys08:05:16

@cfleming thanks you I didn’t know I could exclude files this way!

mfikes21:05:55

Cursive doesn't have a way to only format VCS changed text, right? (It seems you have to manually select a scope to be formatted, or format the entire file.)

cfleming23:05:09

By default it doesn’t pop that dialog up any more, so you need the Emacs Claw invocation to show the dialog rather than just automatically reformatting the current file.

cfleming23:05:24

(I’ve never actually tried that BTW, but at least the doc claims it’s possible. I think that might be new, I don’t recall seeing it previously).