This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-17
Channels
- # aws (3)
- # beginners (81)
- # boot (155)
- # capetown (2)
- # cider (32)
- # clara (14)
- # cljs-dev (40)
- # cljsrn (12)
- # clojure (158)
- # clojure-austin (5)
- # clojure-korea (6)
- # clojure-poland (1)
- # clojure-russia (63)
- # clojure-spec (45)
- # clojure-uk (75)
- # clojurescript (109)
- # code-reviews (1)
- # core-logic (12)
- # core-matrix (1)
- # cursive (36)
- # datomic (16)
- # defnpodcast (1)
- # devcards (2)
- # editors (3)
- # euroclojure (1)
- # events (3)
- # flambo (1)
- # hoplon (19)
- # javascript (4)
- # jobs (1)
- # lein-figwheel (4)
- # leiningen (1)
- # off-topic (1)
- # om (177)
- # onyx (121)
- # pedestal (14)
- # planck (19)
- # proton (3)
- # re-frame (36)
- # reagent (21)
- # remote-jobs (1)
- # ring (4)
- # ring-swagger (6)
- # spacemacs (1)
- # specter (2)
- # test-check (4)
- # untangled (9)
- # utah-clojurians (1)
- # yada (2)
Someone here wanted cursive to remove unused imports, but I'm having this problem when not using type hints which is always:
@yonatanel the code uses now reflection. You can add (set! *warn-on-reflection* true)
to get warnings of these. Add ^Date
hint to the latter and it鈥檚 all good (into the let after a-date
.
In (some-> m :date (.getTime))
getTime is not resolved but in (some-> m (:date) (.getTime))
it is. :thinking_face:
From http://clojure.org/guides/threading_macros: A bare symbol or keyword without parentheses is interpreted as a simple function invocation with a single argument.
@yonatanel It might get guesses by Cursive, but the clojure compiler will still do reflection
"not resolvable" warnings in cursive don't indicate "this won't work", they indicate "I don't know if this will work or not but it will be slow"
well, I don't know if cursive aims to guarantee that it will always tell you something will be slow, but it would be useful if it does
something in my setup seems to be leaking memory and the longer I have a repl running the slower the whole ide becomes and eventually it runs out of java memory
@imre I actually saw that the other day. What it seemed to be was something holding the head of a seq in the nREPL client code.
@bfabry Cursive does aim to do that, but has some bugs currently. In particular, it doesn鈥檛 do the right thing in a total absence of type hints (should warn always, but that perhaps should be a configurable strict mode).
@cfleming let me know if I can send you anything that could help tracking the issue down
Is there any way to replace a common keyword namespace on all occurrences, for example when rearranging clojure specs?
@cfleming greetings! is this possible in IDEA? https://twitter.com/mraleph/status/799284624115568641
@yonatanel You can rename a namespace alias, is that what you mean? So you can rename str/trim
to string/trim
or ::str/keyword` to
::string/keyword
Currently you can only rename the last segment of a namespace name, because renaming other segments involves moving things around which is more complicated, and not implemented yet.