Fork me on GitHub
#boot
<
2017-10-17
>
ag03:10:59

has anyone figured a good way of testing Clojurescript in Headless Chrome? As far as I can tell crisptrutski/boot-cljs-test does not support it`, basically anything other Phantom didn't really work for me. but a) Phantom is slow b) it's outdated, it is now officially abandoned project. I've been trying to get the right setup but whatever I tried - something just wouldn't work ;(

andre.stylianos08:10:55

For headless chrome doo-0.1.8 is needed. Are you using the latest boot-cljs-test version (`0.3.5-SNAPSHOT`)? That's where they updated their doo version it seems. We run doo using lein and we've been able to use chrome headless without too much fuss. From doos github: "Note that chrome-headless requires karma-chrome-launcher >= 2.0.0 and Chrome >= 59" So this might help: https://github.com/bensu/doo#karma

ag21:10:35

Thanks @U485ZRA58 I'll try that out!

qqq03:10:57

BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0-beta2
BOOT_VERSION=2.7.1
BOOT_EMIT_TARGET=no
BOOT_JVM_OPTIONS="-Djava.library.path=/usr/local/cuda-7.0/targets/x86_64-linux/lib/"
is that enough to get libcudart.so.7.0 to get .loaded up ?

qqq06:10:39

how do I tell boot to use this local package?

.m2/repository/ml/dmlc/mxnet/mxnet-full_2.11-linux-x86_64-gpu/0.11.0-SNAPSHOT/mxnet-full_2.11-linux-x86_64-gpu-0.11.0-SNAPSHOT.jar

qqq06:10:36

alternatively, if I can just add a jar to my boot project, that'd be cool too

qqq06:10:56

I just need to add

~/tmp/mxnet/./scala-package/assembly/linux-x86_64-gpu/target/mxnet-full_2.11-linux-x86_64-gpu-0.11.0-SNAPSHOT.jar

yury.solovyov07:10:09

Did anyone managed to use code splitting in cljs via latest :modules additions?

yury.solovyov12:10:10

Fixed. https://github.com/YurySolovyov/retweet-client/commit/de9b5d483efff91e3a0cd5341196d75e12584329 .cljs.edn thing is very unintuitive and confusing for beginners like me

dominicm12:10:29

@yury.solovyov using modules is quite an advanced feature. Multiple .cljs.edn is probably what most people would expect in that case.

yury.solovyov12:10:07

I was about to give up on it and try following bare cljs build API tutorial, but tried once more after reading David's blog post on code splitting

yury.solovyov12:10:42

Now I wonder if it works with boot-reload

qqq13:10:16

after nuking ~/.m2 , on a 100MB/s netwsork, the following takes 10+ minutes to pull -- is that normal? does maven do anything besides download jar? is there any processing involved?

(set-env!
 :source-paths #{"src"} 
 :resource-paths #{"resources/"}
 :dependencies
 '[;; clojure core 
   [org.clojure/clojure "1.9.0-beta2"]

   ;; client support 
   [org.martinklepsch/boot-garden "1.3.2-0"]
   [reagent "0.8.0-alpha1"] 
   [garden "1.3.2"] 
   [hiccup "1.0.5"]                

   [com.cognitect/transit-clj "0.8.300"] 
   [org.clojure/java.jdbc "0.7.0-alpha3"] 
   [mysql/mysql-connector-java "5.1.42"] 

   [ring/ring-core "1.6.2"]
   [ring/ring-jetty-adapter "1.6.2"] 
   [ring-middleware-format "0.7.2"]

   [org.apache.pdfbox/pdfbox "2.0.7"]

   [http-kit "2.2.0"]

   [cider/cider-nrepl "0.16.0-SNAPSHOT"]
   [portkey "0.1.0-SNAPSHOT"]


   [ml.dmlc.mxnet/mxnet-full_2.11-linux-x86_64-gpu "0.9.3a"]])

juhoteperi13:10:06

@qqq Is this boot 2.7.2?

juhoteperi13:10:25

And yes, for some reason Boot does seem quite slow on loading deps

qqq13:10:55

$ boot --version
#
#Tue Oct 17 06:36:45 MST 2017
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0-beta2
BOOT_VERSION=2.7.1

qqq13:10:06

looks like 2.7.1 @juhoteperi: should I update ?

qqq13:10:49

I could have sworn I just ran sudo bash -c "cd /usr/local/bin && curl -fsSLo boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh && chmod 755 boot" a few days ago

juhoteperi13:10:02

yes, 2.7.2 should have fix that should affect dependency downloads and uploads: https://github.com/boot-clj/boot/pull/558/files

juhoteperi13:10:16

Updating Boot binary doesn't affect Boot "library" version

qqq13:10:21

okay, so I update boot.properties ?

qqq13:10:18

$ boot --version
#
#Tue Oct 17 06:41:05 MST 2017
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0-beta2
BOOT_VERSION=2.7.2
okay, let us see if this works better 🙂

qqq13:10:49

things are definitel 'scrolling by faster' but that may just be placebo effect

juhoteperi13:10:47

The fix sped up uploading 50MB artifact from 10min to 5sec, but I think it didn't have as large impact on downloads

qqq13:10:57

it's getting stuck on

Retrieving scala-library-2.11.8.jar from  (5610k)
Retrieving scala-reflect-2.11.8.jar from  (4467k)
Retrieving log4j-1.2.17.jar from  (478k)
Retrieving slf4j-api-1.7.5.jar from  (25k)
Retrieving slf4j-log4j12-1.7.7.jar from  (9k)
Retrieving args4j-2.0.29.jar from  (83k)
Retrieving scala-parser-combinators_2.11-1.0.4.jar from  (414k)
Retrieving scala-compiler-2.11.8.jar from  (15124k)
Retrieving scala-xml_2.11-1.0.4.jar from  (633k)


again

qqq13:10:06

there's something about scala-xml.jar ... which causes boot to freeze up

qqq13:10:56

oh n/m, scala-xml is the last one it pulls before the nrepl starts up 🙂

qqq13:10:02

2.7.2 appears to have fixed all my complaints; thanks!

adamfrey16:10:36

In 2.7.2 boot exceptions don't seem to be printing the file name, has anyone else seen this? Here's my CLI output with 2.7.1 in my boot.properties:

java.lang.RuntimeException: Map literal must contain an even number of forms
clojure.lang.ExceptionInfo: Map literal must contain an even number of forms
    file: "apij/controllers/users.clj"
    line: 81
and here's after I change it to 2.7.2:
java.lang.RuntimeException: Map literal must contain an even number of forms
clojure.lang.ExceptionInfo: Map literal must contain an even number of forms
    line: 81

yury.solovyov18:10:58

Is there anything special I need to do to get live reloading of cljs with :modules?

ag23:10:22

hey guys, so my file of (input-files fileset) depends on (output-files fileset) so I need to run a task in a tmp-dir! that uses a folder from the first and a folder from the second. what's the idiomatic way of doing that?