This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-17
Channels
- # beginners (45)
- # boot (33)
- # chestnut (9)
- # cider (2)
- # cljs-dev (24)
- # cljsrn (1)
- # clojure (114)
- # clojure-conj (3)
- # clojure-dev (3)
- # clojure-dusseldorf (3)
- # clojure-greece (5)
- # clojure-italy (22)
- # clojure-russia (10)
- # clojure-spec (12)
- # clojure-uk (19)
- # clojurescript (117)
- # core-async (16)
- # cursive (3)
- # data-science (1)
- # datomic (5)
- # docs (13)
- # emacs (1)
- # fulcro (13)
- # graphql (1)
- # hoplon (20)
- # immutant (3)
- # jobs (1)
- # juxt (12)
- # lein-figwheel (1)
- # luminus (4)
- # off-topic (12)
- # onyx (61)
- # portkey (1)
- # re-frame (21)
- # reagent (26)
- # ring-swagger (38)
- # rum (1)
- # shadow-cljs (222)
- # slack-help (4)
- # spacemacs (11)
- # specter (67)
- # uncomplicate (236)
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 ;(
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 doo
s 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
Thanks @U485ZRA58 I'll try that out!
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 ?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
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
Did anyone managed to use code splitting in cljs via latest :modules additions?
Any idea what am I doing wrong? https://github.com/YurySolovyov/retweet-client/blob/modules/build.boot#L29
Fixed. https://github.com/YurySolovyov/retweet-client/commit/de9b5d483efff91e3a0cd5341196d75e12584329 .cljs.edn
thing is very unintuitive and confusing for beginners like me
@yury.solovyov using modules is quite an advanced feature. Multiple .cljs.edn is probably what most people would expect in that case.
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
Now I wonder if it works with boot-reload
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"]])
@qqq Is this boot 2.7.2?
And yes, for some reason Boot does seem quite slow on loading deps
$ 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
looks like 2.7.1 @juhoteperi: should I update ?
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
yes, 2.7.2 should have fix that should affect dependency downloads and uploads: https://github.com/boot-clj/boot/pull/558/files
Updating Boot binary doesn't affect Boot "library" version
$ 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 🙂The fix sped up uploading 50MB artifact from 10min to 5sec, but I think it didn't have as large impact on downloads
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)
againIn 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
Is there anything special I need to do to get live reloading of cljs with :modules?