This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-12
Channels
- # beginners (81)
- # boot (29)
- # cider (7)
- # cljs-dev (147)
- # cljsrn (5)
- # clojure (121)
- # clojure-austin (4)
- # clojure-conj (4)
- # clojure-italy (9)
- # clojure-russia (20)
- # clojure-sg (1)
- # clojure-spec (25)
- # clojure-uk (34)
- # clojurescript (137)
- # cryogen (2)
- # cursive (1)
- # data-science (1)
- # datomic (29)
- # events (9)
- # figwheel (1)
- # hoplon (14)
- # jobs (2)
- # luminus (2)
- # off-topic (7)
- # om (36)
- # onyx (6)
- # parinfer (14)
- # re-frame (13)
- # reagent (74)
- # specter (2)
- # test-check (1)
- # untangled (43)
- # vim (14)
- # yada (36)
$ boot -xd cheshire repl
nREPL server started on port 44805 on host 127.0.0.1 -
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_91-b14
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Examples from : [clojuredocs or cdoc]
(user/clojuredocs name-here)
(user/clojuredocs "ns-here" "name-here")
boot.user=> (require '[cheshire.core :as json])
nil
boot.user=> (json/generate-string {:asdf "qwer"})
"{\"asdf\":\"qwer\"}"
you can also make an interpreted script that is a single file, it can pull in dependencies
$ cat doit.boot
#!/usr/bin/env boot
(set-env! :dependencies '[[org.clojure/clojure "1.8.0"] [cheshire "RELEASE"]])
(require '[cheshire.core :as json])
(defn -main [& args]
(println (json/generate-string {:hello "world"})))
$ ./doit.boot
{"hello":"world"}
boot.user=> (set-env! :dependencies '[[com.walmartlabs/lacinia "0.17.0"]])
Classpath conflict: org.clojure/clojure version 1.7.0 already loaded, NOT loading version 1.8.0
nil
boot.user=> (require '[com.walmartlabs.lacinia :refer [execute]])
java.lang.RuntimeException: No such var: str/starts-with?
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No such var: str/starts-with?, compiling:(com/walmartlabs/lacinia/internal_utils.clj:119:3)
It's a lacinia problem? Same error with -xd
$ cat ~/.boot/boot.properties
#
#Fri Dec 23 12:48:01 EST 2016
BOOT_EMIT_TARGET=no
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.8.0
BOOT_VERSION=2.7.1
I cant understand why default boot target's to 1.7.0.... My system-wide clojure was 1.8.0 (`/usr/bin/clojure`)
Any chance of merging in https://github.com/boot-clj/boot-bin/pull/4 ? I've been testing it locally again boot-2.7.2-SNAPSHOT and JDK-9 -- all good.
have you tested on 7 by any chance?
that’s the earliest we’ve claimed to support
ok I'm testing it in a docker jdk7 container, it's downloading the whole earth (which means: it's working so far)
/app # BOOT_AS_ROOT=yes ./build/boot -V
#
#Mon Jun 12 15:26:37 GMT 2017
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.8.0
BOOT_VERSION=2.7.2-SNAPSHOT
/app # java -version
java version "1.7.0_131"
OpenJDK Runtime Environment (IcedTea 2.6.9) (Alpine 7.131.2.6.9-r1)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)