This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-19
Channels
- # adventofcode (7)
- # aws (6)
- # babashka (7)
- # beginners (200)
- # calva (49)
- # chlorine-clover (3)
- # cider (24)
- # clj-kondo (115)
- # cljs-dev (5)
- # cljsrn (16)
- # clojure (44)
- # clojure-australia (9)
- # clojure-czech (1)
- # clojure-dev (1)
- # clojure-europe (63)
- # clojure-france (6)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-spec (27)
- # clojure-uk (77)
- # clojurescript (45)
- # clojurewerkz (3)
- # conjure (5)
- # cryogen (1)
- # cursive (2)
- # datahike (6)
- # datascript (3)
- # datomic (18)
- # fulcro (5)
- # graalvm (55)
- # jobs (3)
- # luminus (4)
- # malli (1)
- # pathom (1)
- # reagent (16)
- # shadow-cljs (67)
- # spacemacs (18)
- # sql (57)
- # testing (6)
- # tools-deps (9)
Probably a clojure beginner question, but i was wondering why the following code snippet does not seem to work..
(require '[babashka.classpath :as cp])
(map cp/add-classpath ["test1" "test2"])
(print (cp/get-classpath))
$ bb runme.clj
--> result nil
As opposed to this one:
(require '[babashka.classpath :as cp])
(cp/add-classpath "test1")
(cp/add-classpath "test2")
(print (cp/get-classpath))
$ bb runme.clj
--> result test1:test2
When using the repl it works in both cases.. but not when using bb
from the command line