This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-26
Channels
- # aleph (2)
- # beginners (119)
- # boot (18)
- # cider (19)
- # cljs-dev (46)
- # cljsjs (1)
- # cljsrn (30)
- # clojure (101)
- # clojure-dusseldorf (12)
- # clojure-finland (1)
- # clojure-greece (7)
- # clojure-india (2)
- # clojure-italy (6)
- # clojure-poland (4)
- # clojure-russia (120)
- # clojure-sg (3)
- # clojure-spec (147)
- # clojure-uk (75)
- # clojurescript (86)
- # cursive (4)
- # datomic (50)
- # docker (1)
- # emacs (4)
- # juxt (51)
- # leiningen (16)
- # liberator (1)
- # luminus (1)
- # lumo (116)
- # mount (2)
- # off-topic (2)
- # onyx (38)
- # pedestal (4)
- # protorepl (2)
- # re-frame (44)
- # reagent (8)
- # ring-swagger (16)
- # schema (5)
- # specter (16)
- # test-check (226)
Hi. I'm experiencing something odd in a REPL session. Can anyone shed some light on it?
cli.core=> *clojure-version*
{:major 1, :minor 9, :incremental 0, :qualifier "alpha15"}
cli.core=> (defn foo [] "bar")
#'cli.core/foo
cli.core=> (foo)
java.lang.IllegalStateException: Attempting to call unbound fn: #'cli.core/foo
@ejemba Haven’t done it myself but I think so. There’s a task to compile java: boot javac -h
@martinklepsch thanks I'll try to find a project with java
the secret is out
i love boot
if i have a symbol containing the version of my project in my build.boot, what's the idiomatic way to get access to it for log purposes at runtime in [project].core/-main and at devtime via a task?
@colliderwriter I put it in resources/version.txt
and slurp
it into both build.boot
and {project}.core
as needed…
…well, I use a delay
so it only gets read in once.
(but then I have a lot of config stuff in text and EDN files that my Boot tasks load up, and my app can also read in if it wants)
seems reasonable. i'll follow suit. is there anything to know about the delay?
that seems to work perfectly. i guess i should ask the same question about the project name. currently just a constant but
Example:
(ns myns.core)
(def project-version "1.0.0")
;; in build.boot
(require '[myns.core :as core])
(task-options!
pom {:project project
:version core/project-version
:description "FIXME: write description"
:url ""
:scm {:url ""}
:license {"Eclipse Public License"
""}})
i see. thanks for the help