Fork me on GitHub
#cursive
<
2017-03-31
>
jimmy06:03:08

can we sort and remove duplicate deps ( in :require and :import ) in cursive ?

cfleming07:03:41

@nxqd Not yet, but that’s coming soon.

jimmy07:03:29

@cfleming great, it's good to know 😄

lsenta07:03:11

How do you use reader conditionals + parinfer + code reformatting?

lsenta07:03:39

My requires get all messed up

cfleming08:03:04

@lsenta Got an example?

lsenta09:03:57

@cfleming I talked too fast, the code end up weirdly formatted but not broken.

lsenta09:03:16

(ns ...
  (:require ...
            [taoensso.timbre :as log :include-macros true]
    #?(:clj
            [clojure.core.async :as async :refer [<! >! go]]
       :cljs [cljs.core.async :as async :refer [<! >! go]]))
  #?(:cljs
     (:require-macros [cljs.core.async.macros :refer [go]])))
Are the line return and non alignment expected?

lsenta06:04:05

@cfleming

(ns budb.test.helpers
  (:require
    [taoensso.timbre :as log :include-macros true]
    #?(:clj
       [clojure.core.async :refer [<! >! go go-loop put! <!! timeout]]
       :cljs
       [cljs.core.async :refer [put! chan <! >! timeout close! take! alts!]])))

lsenta06:04:19

Or

(ns budb.test.helpers
  (:require
    [taoensso.timbre :as log :include-macros true]
    #?(:clj [clojure.core.async :refer [<! >! go go-loop put! <!! timeout]]
       :cljs [cljs.core.async :refer [put! chan <! >! timeout close! take! alts!]])))

lsenta06:04:57

After autoformat, the code becomes

(ns budb.test.helpers
  (:require
    [taoensso.timbre :as log :include-macros true]
    #?(:clj) ;; <<<< PROBLEM
    [clojure.core.async :refer [<! >! go go-loop put! <!! timeout]
       :cljs [cljs.core.async :refer [put! chan <! >! timeout close! take! alts!]]]))

cfleming07:04:36

@lsenta Thanks, I’ll take a look on Monday

rauh21:03:06

Since the last update I'm getting a 100% CPU usage my clojure process when I connect a CLJ repl to it. I can see the NREPL thread running at 100% of my process. Killing the REPL windows in cursive brings it back down to 0.

rauh22:03:26

I don't think I had the #1554 issue before the update

rauh22:03:02

Also seems to be constantly loading new classes (or define classes probably)

rauh22:03:33

(not a clojurescript repl)

cfleming23:03:19

@rauh Ugh, ok, thanks, I’ll take a look on Monday