This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-15
Channels
- # announcements (1)
- # architecture (8)
- # babashka (7)
- # beginners (5)
- # biff (8)
- # calva (24)
- # cider (9)
- # clerk (14)
- # clj-kondo (7)
- # clojars (13)
- # clojure (49)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (90)
- # clojure-uk (3)
- # clojurescript (5)
- # core-typed (70)
- # cursive (35)
- # data-science (4)
- # datalevin (6)
- # datomic (2)
- # emacs (3)
- # fulcro (1)
- # holy-lambda (1)
- # hyperfiddle (5)
- # lsp (26)
- # malli (28)
- # off-topic (9)
- # re-frame (21)
- # releases (1)
- # shadow-cljs (7)
- # squint (6)
- # testing (14)
Curious on the error message produced by running this:
#!/usr/bin/env bb
#
(require '[babashka.cli :as cli])
(cli/parse-opts ["--port" "1339"] {:coerce {:port :long}})
✅ 1
----- Error --------------------------------------------------------------------
Type: java.lang.ClassCastException
Message: clojure.lang.PersistentList cannot be cast to clojure.lang.Named
This is the first example at https://github.com/babashka/cli?tab=readme-ov-file#options
I am using (excerpt from bb print-deps
)
{:deps
{babashka/babashka.core
{:git/url "",
:git/sha "52a6037bd4b632bffffb04394fb4efd0cdab6b1e"},
org.babashka/cli {:mvn/version "0.8.57"},
installed with brew (borkdude/brew/babashka 1.3.189), and the JDK is openjdk version "21.0.1" 2023-10-17
Where is the list that cannot be cast in those two lines?