This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-13
Channels
- # adventofcode (4)
- # announcements (1)
- # babashka (7)
- # beginners (51)
- # calva (18)
- # cider (15)
- # clj-kondo (1)
- # cljsrn (6)
- # clojure (99)
- # clojure-dev (31)
- # clojure-europe (5)
- # clojure-france (2)
- # clojure-italy (3)
- # clojure-nl (14)
- # clojure-seattle (8)
- # clojure-spec (6)
- # clojure-uk (2)
- # clojurescript (23)
- # conjure (3)
- # css (6)
- # data-science (3)
- # datomic (19)
- # events (6)
- # fulcro (13)
- # graalvm (5)
- # honeysql (24)
- # inf-clojure (19)
- # music (10)
- # off-topic (28)
- # pathom (10)
- # rdf (15)
- # re-frame (11)
- # releases (4)
- # sci (1)
- # shadow-cljs (18)
@borkdude For the example in the section on Carve, at https://book.babashka.org/#_uberscript
The executable carve for carve-0.0.2-linux-amd64/carve
It is too aggressive, carving out function delete, and predicate which cause complaints of
○ → time bb glob-uberscript.clj '*.clj'
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: Could not resolve symbol: delete
Location: /tmp/glob-uberscript.clj:108:10
Phase: analysis
----- Context ------------------------------------------------------------------
104: [root & link-options]
105: (when (apply directory? root link-options)
106: (doseq [path (.listFiles (file root))]
107: (apply delete-dir path link-options)))
108: (delete root))
^--- Could not resolve symbol: delete
109:
110: (defn move
111: "Move or rename a file to a target file. Requires Java version 7 or greater. Optional
112: [copy-options]()
113: may be provided."
Using the solution for JVM works.
My environment is Ubuntu 20.04 in WSL1.
Please let me know if you need any more information.
Thanks!@U2QGRCMSM What are you carving? Do you have a repro?
@U2QGRCMSM This is fixed with version 1.6.307
of clj-commons/fs. I'll update the book
🙏 3
@rahul080327 brought to my attention that failjure, a monadic error lib, works with bb: https://github.com/adambard/failjure