This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-17
Channels
- # bangalore-clj (2)
- # beginners (51)
- # boot (20)
- # cider (14)
- # clara (1)
- # cljs-dev (14)
- # cljsrn (50)
- # clojure (140)
- # clojure-dev (5)
- # clojure-france (1)
- # clojure-gamedev (3)
- # clojure-italy (4)
- # clojure-poland (3)
- # clojure-russia (8)
- # clojure-sg (1)
- # clojure-spec (64)
- # clojure-uk (51)
- # clojurescript (54)
- # core-typed (1)
- # data-science (2)
- # datomic (61)
- # docker (1)
- # emacs (6)
- # events (1)
- # graphql (1)
- # hoplon (14)
- # leiningen (8)
- # luminus (3)
- # mount (6)
- # off-topic (18)
- # om (17)
- # parinfer (34)
- # pedestal (47)
- # play-clj (1)
- # protorepl (1)
- # re-frame (56)
- # reagent (11)
- # ring-swagger (5)
- # rum (6)
- # sql (1)
- # uncomplicate (2)
- # vim (3)
- # yada (31)
morning 😴
@jonpither I assume the Juxt crew is going?
could this be used to create 'native' cljs apps? https://github.com/pmq20/node-compiler
ok... just reading the Ruby version of the tool. they just package everything in on executable and don't actually do AOT compilation by the looks of it. still quite neat though IMHO
I'm looking for speakers for 1st August London Clojurians talk night, at SkillsMatter as usual. One caveat is that is a strike day by Aslef so if you are travelling by Southern you probably wont make it (I'm cycling in to London these days)
Hello All… I am not operating at 100% today - only just figured out that I was staring at a 1-1 conversation with @dominicm and wondering why there was no traffic on #clojure-uk today…
Why is this happening when I try to run - boot run -p prod:
[ec2-user@ip-172-31-32-147 platform-beta]$ boot run -p prod
java.lang.Thread.run Thread.java: 748
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 617
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1142
java.util.concurrent.FutureTask.run FutureTask.java: 266
...
clojure.core/binding-conveyor-fn/fn core.clj: 2020
boot.core/boot/fn core.clj: 1030
...
boot.core/construct-tasks core.clj: 992
clojure.core/apply core.clj: 657
...
boot.user/eval38018/fn boot.user2796444862284606776.clj: 33
...
boot.user/eval37980/fn boot.user2796444862284606776.clj: 31
java.lang.IllegalArgumentException: no value supplied for option :prod
clojure.lang.ExceptionInfo: no value supplied for option :prod
file: "/tmp/boot.user2796444862284606776.clj"
line: 55
It’s like I am in touching distance of getting this thing work on my “prod” server, but I need the config profile for Aero to get picked up so that the app is connecting to the right DB and ES Cluster…
looks like it’s due to deftask
-> clifn
-> split-args
blowing up in the boot (`cli.clj`) I’ve not got much experience in macros (which deftask and clifn are) but for some reason it’s expecting a key value pair somewhere
@maleghast Can you share your run
task for that project?
@seancorfield I think this function may have a bug
https://github.com/boot-clj/boot/blob/master/boot/core/src/boot/cli.clj#L165
When I run boot run -p prod
, arg
is '("-p" :prod)
How Boot deals with arguments depends on how they are declared in tasks. That's why I wanted to see @maleghast 's run
task.
oh I see. I was able to replicate it a version of edge
I have checked out.
The task is:
(deftask run [p profile VAL kw "Profile"]
(comp
(repl :server true
:port (case profile :prod 5601 :beta 5602 5600)
:init-ns 'user)
(run-system (or profile :prod))
(wait)))
(deftask run [p profile VAL kw "Profile"]
(println "profile" profile)
identity)
and boot run -p prod
works just fine and prints profile :prod
as expected.Strange, so I did a fresh checkout of https://github.com/juxt/edge
I ran boot run -p prod
. That gave the exception.
boot -V =>
#
#Mon Jul 17 17:55:53 BST 2017
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0-alpha17
BOOT_VERSION=2.7.1
The error is this line in edge's build.boot
I believe:
(run-system (or profile :prod))
I think it should be (run-system :profile (or profile :prod))
What version of boot
is in play?
(and maybe this should shift to the #boot channel?)
The error is this line in edge's build.boot
I believe:
(run-system (or profile :prod))
I think it should be (run-system :profile (or profile :prod))
Well, almost. run-system
expects a string so it needs to be (run-system :profile (name (or profile :prod)))
Yup, with that last change, it actually runs now.