This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-13
Channels
- # babashka (10)
- # beginners (27)
- # calva (91)
- # cestmeetup (3)
- # cider (27)
- # clj-kondo (12)
- # cljs-dev (4)
- # clojars (13)
- # clojure (35)
- # clojure-europe (30)
- # clojure-france (3)
- # clojure-houston (1)
- # clojure-nl (11)
- # clojure-norway (29)
- # clojure-spec (23)
- # clojure-sweden (5)
- # clojure-uk (128)
- # clojurescript (69)
- # conjure (44)
- # core-async (27)
- # cursive (13)
- # emacs (9)
- # events (3)
- # fulcro (52)
- # graphql (4)
- # jobs (2)
- # jobs-discuss (46)
- # kaocha (4)
- # luminus (12)
- # nrepl (10)
- # off-topic (29)
- # re-frame (17)
- # reitit (20)
- # remote-jobs (4)
- # rewrite-clj (1)
- # ring (4)
- # rum (13)
- # shadow-cljs (40)
- # sql (1)
- # xtdb (1)
When connecting to a babashka nrepl-server via CIDER, and requiring camel-snake-kebab.core
, I’m seeing
clojure.lang.ExceptionInfo: Can't change/establish root binding of #'*warn-on-reflection* with set [at camel_snake_kebab/internals/string_separator.cljc, line 4, column 1]
Using the same class path, requiring it from bb directly works just fine. (e.g.,
bb --classpath $(clojure -A:bb -Spath) "(require '[camel-snake-kebab.core :as csk]) (csk/->kebab-case :FooBar)"
:foo-bar
This is a bug in the nREPL server. Temporary workaround:
(binding [*warn-on-reflection* true]
(require '[camel-snake-kebab.core :as csk]))
I'll make an issueThanks! https://github.com/borkdude/babashka/commit/1761aac14ab98f146059a43dc51909ae977c9aea
Is it possible to get the name the bb script was called as, similar to $0
in bash? I have a symbolic link from ~/bin
to the directory with the babashka script. In the “usage” message, I’d like to use the symbolic link name instead of the file name of the script, since they’re different. *file*
gives me the file name, not the link name.