Fork me on GitHub
#clojure
<
2016-10-23
>
cddr03:10:09

Couldn't find a "how to" style guide but did you already find the doc? https://github.com/boot-clj/boot/blob/master/doc/boot.task.built-in.md#push

Tim04:10:51

I have this in my repl:

ve=> g
#object[scala.tools.nsc.Global 0x39436bc6 "scala.tools.nsc.Global@39436bc6"]
ve=>
and I would like to do something like this scala> (new g.Run).compile(List("a.scala"))

Tim04:10:55

is that possible?

Tim04:10:19

tried this:

(.-Run g)

java.lang.IllegalArgumentException: No matching field found: Run for class scala.tools.nsc.Global

Tim04:10:28

and a few others but failed

johanatan04:10:41

@tmtwd what about (.Run g) ?

Tim05:10:59

no:

ve=> (.Run g)

java.lang.IllegalArgumentException: No matching field found: Run for class scala.tools.nsc.Global

eslachance06:10:41

Quick question: this comes up when I load my repl, I don't recall adding anything in regards to logging or SLF4J or whatever. How do I remove it?

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See  for further details.

deas08:10:51

There still is no leiningen native way to rewrite/relocate packages like maven shade can do, right?

Shantanu Kumar08:10:15

@eslachance Looks like you have SLF4j in your classpath (verify with lein deps :tree) you can probably just ignore it, or add [org.slf4j/slf4j-simple “1.7.5”] dependency to have simple logging anyway

Shantanu Kumar08:10:46

In the latter case, make sure the slf4j-simple version matches the slf4j-api version you already have

lambeta10:10:04

hivemind, does clojure.spec discourage us to use property based testing? seems fdef already did it.

lambeta10:10:11

and where is the clojure.spec.test/run-tests, which is documented in fdef?

lvh14:10:30

Is (apply max-key f coll)the preferred way to find the x in coll for which (f x) is greatest

jotaro14:10:09

hi there. I have a question about reader macro

jotaro14:10:52

How (meta '^{:bar "foo"} Obj) is translated into this (meta (with-meta 'Obj {:bar "foo"} ))

jotaro15:10:33

why quote macro is evaluated after meta macro? Is there any reader macro evaluation order?

gfredericks15:10:39

jotaro: are you asking why ^:foo 'bar doesn't work?

patrkris17:10:29

whenever I start my program using lein run it prints something like 2016-10-23 19:08:42.915:INFO::main: Logging initialized @3725ms. I guess it is one my my dependencies being initialized and hence its logging. Any suggestions on how to find the culprit?

gfredericks18:10:43

patrkris: lein deps :tree can tell you which deps are using logging libs

jrheard18:10:48

also you could grep through ~/.m2/repository i believe

gfredericks21:10:47

bugeats: (inch 123)