This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-08
Channels
- # aleph (2)
- # aws (1)
- # beginners (172)
- # boot (15)
- # cider (17)
- # clara (7)
- # cljs-dev (22)
- # cljsrn (12)
- # clojars (3)
- # clojure (110)
- # clojure-dev (5)
- # clojure-italy (13)
- # clojure-sanfrancisco (5)
- # clojure-spec (3)
- # clojure-uk (31)
- # clojurescript (110)
- # community-development (2)
- # cursive (16)
- # datomic (19)
- # docs (4)
- # emacs (49)
- # fulcro (24)
- # jobs (5)
- # keechma (2)
- # lein-figwheel (41)
- # leiningen (10)
- # luminus (4)
- # lumo (24)
- # mount (24)
- # numerical-computing (1)
- # off-topic (16)
- # om (4)
- # onyx (6)
- # parinfer (9)
- # planck (8)
- # re-frame (7)
- # reagent (6)
- # shadow-cljs (125)
- # sql (5)
- # test-check (9)
- # unrepl (6)
- # yada (5)
I have an issue with adzerk.env in the REPL, I have a REPL task that runs (env/def FOO "1")
and I can access that var in the REPL but then when I try to require an ns that has (env/def FOO :required)
it throws a compile error saying Required env vars:[FOO] missing-vars [FOO]
. Am I using the library wrong somehow?
You need to set the environment variable FOO before running the REPL. e.g. export FOO=1234 && boot repl
@candera Ok but isn’t it enough that I def the variable in the boot task?
(deftask my-repl
[]
(env/def FOO "1")
(repl))
In the REPL I can do (get (env/env) "FOO")
and get "1"
before requiring the ns where I have (env/def FOO :required)
So, it looks like what’s happening is that you’re saying in one place, “Give me the value of the FOO env var, or “1" if it’s not defined”. And then elsewhere you’re saying, “Give me the value of the FOO env var, and throw an exception if it’s not defined.”
@candera But the env/def
should set the systemProperty
: https://github.com/adzerk-oss/env/blob/e2f07fc5fe734828aacc1609f5a82cf0fef40c7b/src/adzerk/env.clj#L11
But somehow it seems that those properties are not available when I’m compiling from the REPL
Hmm. Interesting. I haven’t used the library before to set the environment - I’ve always just used it to read things.
I'm increasingly running into this macOS-level error when running complex Boot tasks
(FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
I gather setting ulimit -n
higher will help but is this symptomatic of something in Boot that should be addressed?I used to get that all the time. Now I don’t. No idea what changed. OS upgrade maybe?
@seancorfield you might want to try this: https://github.com/boot-clj/boot/pull/663 Also would be curious about approx. number of files in fileset
While #633 might be a solution something that works without additional configuration would clearly be preferred
Interesting. I have no idea how many files are in the fileset when I start seeing that error, to be honest. I don't use .bootignore
tho'...