cursive

Issues at: https://git.io/cursive-issues
saitouena 2020-11-27T00:52:24.279Z

I usually do it with cljstyle with the integration with file watcher. https://github.com/greglook/cljstyle https://cdn-ak.f.st-hatena.com/images/fotolife/e/egs33/20200214/20200214162956.png

đź‘Ť 1
helios 2020-11-27T09:54:04.280100Z

Something strange. In my require i have [re-frame.context :as re-frame :refer [defc]] (it's a fork of re-frame) But later down in the text, where i have re-frame/subscribe cursive offers to require the ns

imre 2020-11-27T16:30:49.281500Z

Why does cursive format tagged literals like this:

#kaocha/v1
    {:plugins [:kaocha.plugin/profiling
               :kaocha.plugin/print-invocations
               :kaocha.plugin/cloverage
               :kaocha.plugin.alpha/spec-test-check]}
and not like
#kaocha/v1
{:plugins [:kaocha.plugin/profiling
           :kaocha.plugin/print-invocations
           :kaocha.plugin/cloverage
           :kaocha.plugin.alpha/spec-test-check]}
?

pez 2020-11-28T08:10:57.284700Z

Could be a similar artifact in cljfmt, I can't see that the behaviour is documented.

cfleming 2020-11-27T19:49:15.281700Z

Great question, I have no idea - I’d have to look at that.

tony.kay 2020-11-27T22:47:32.282500Z

I’m reading in the docs that ~file-namespace is supposed to sub in REPL commands as the current namespace. It is not expanding for me. Is this a typo in docs?

tony.kay 2020-11-27T22:49:14.282800Z

hm…strangely, it expands if I put it on a line by itself

tony.kay 2020-11-27T22:52:00.284Z

I figured it out. Strange issue, but here it is: I wanted to reload the file myself (so I could catch compiler exceptions), and I tried this: (require '~file-namespace :reload) in the REPL command. That did not expand; however, if I do this it works:

(let [n '~file-namespace]
  (require n :reload))

cfleming 2020-11-28T20:51:56.288100Z

Thanks, I’ll take a look - that should work anywhere.

pez 2020-11-27T23:45:29.284100Z

cljfmt does something similar, although only one space indent. Maybe it is to show what is tagged? It makes a bit of extra sense when readers stack. Like so:

#kaocha/v1
 #foo/bar
  #baz
   {:plugins [:kaocha.plugin/profiling
              :kaocha.plugin/print-invocations
              :kaocha.plugin/cloverage
              :kaocha.plugin.alpha/spec-test-check]}