Fork me on GitHub

Hello, may I know what is a good way to rename keys in a hashmap from say an underscore version like - :lu_textΒ to a dash -Β `:lu-text` ? I saw there is clojure.set/rename-keys but I don't think that's what I want?


Have a look at clojure.walk namespace.


I realised that my use-case for this - jdbc has an inbuilt way to do this πŸ™‚ but thank you!


Take a look at the camel-snake-kebab library as well: πŸ™‚


I'm trying to clojure -Ttools, however I get -T is no longer supported


I'm using clojure 1.11 alpha


update your version of the clojure CLI -- you need a prerelease


the clojure CLI != clojure


How to update


the clojure CLI can launch different versions of clojure


My deps.edn, how to invoke tools


you need to update the command line program clojure, not any deps of your actual project

πŸ‘ 2

I can't find the official link to the prerelease install docs 😞

Alex Miller (Clojure team)14:07:01

use the instructions at to download the latest prerelease version


I tried with brew head it doesn't work

Alex Miller (Clojure team)14:07:57

brew uninstall clojure
brew install clojure/tools/[email protected]

Alex Miller (Clojure team)14:07:44

there may be other steps required depending on the history of your brew installation

Alex Miller (Clojure team)14:07:53

but brew will usually tell you what to do


It works, thanks. Brew upgrade doesn't upgrade to latest version for some reason

Alex Miller (Clojure team)15:07:58

FYI, that version is buggy and there is now a :)

Alex Miller (Clojure team)15:07:18

this is a prerelease so is not yet a stable version available to upgrade


Ohh, thanks

Alex Miller (Clojure team)15:07:55

as a prerelease, you may encounter bugs or unstable behavior - feel free to ask in #tools-deps or file questions at

πŸ‘ 2
Hugo Bonatto19:07:58

Hi there, I'm trying to build a RN + ClojureScript + Krell application running in a windows machine RN project working fine, clj running on windows, but when trying to implement Krell, can't pass through this:

clj -M -m cljs.main -co "{:deps-cmd \"yarn\"}" --install-deps

Hugo Bonatto19:07:14

fails with Error building classpath. Specified aliases are undeclared: [:-m]

Hugo Bonatto19:07:15

in the first attempt, and subsequent attempts results in

Hugo Bonatto19:07:19

Exception in thread "main" cljs.main (The system cannot find the file specified)
        at java.base/ Method)
        at java.base/
        at java.base/<init>(
        at java.base/<init>(
        at clojure.lang.Compiler.loadFile(
        at clojure.main$load_script.invokeStatic(main.clj:452)
        at clojure.main$script_opt.invokeStatic(main.clj:512)
        at clojure.main$script_opt.invoke(main.clj:507)
        at clojure.main$main.invokeStatic(main.clj:598)
        at clojure.main$main.doInvoke(main.clj:561)
        at clojure.lang.RestFn.applyTo(
        at clojure.lang.Var.applyTo(
        at clojure.main.main(


clojure doesn't come with cljs, you'd need to provide it as a dep - what does your deps.edn look like? also that command line looks wrong to me, -M should be immediately followed by some option flag

Hugo Bonatto19:07:11

I'm following this:

Hugo Bonatto19:07:30

{:deps {io.vouch/krell {:git/url ""
                        :sha "08f2bfea96aa48feb8511851e37f5948453986e5"}
        io.vouch/reagent-react-native {:git/url ""
                                       :sha "0fe1c600c9b81180f76b94ef6004c2f85e7d4aa0"}
        reagent/reagent {:mvn/version "0.10.0"
                         :exclusions [cljsjs/react cljsjs/react-dom]}}}


I'm surprised to not see cljs anywhere in there as a dep, and I have no idea what -M should or would do in a command line when it's followed by -m


that is, in both cases I think the tutorial is wrong


@hugo147 compare to this from the clojurescript quick start:

clj -M --main cljs.main --compile hello-world.core --repl


but in their case they also add clojurescript to the deps.edn

Hugo Bonatto19:07:00

for windows, they request to run from cljs.jar

Hugo Bonatto19:07:13

which may ignore my deps.edn


but you didn't specify cljs.jar on your command line and the error is that cljs.main wasn't found