This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-19
Channels
- # announcements (1)
- # babashka (26)
- # beginners (42)
- # calva (3)
- # cider (5)
- # cljs-dev (7)
- # cljsjs (1)
- # cljsrn (13)
- # clojure (95)
- # clojure-europe (12)
- # clojure-germany (3)
- # clojure-italy (12)
- # clojure-nl (1)
- # clojure-spec (16)
- # clojure-uk (25)
- # clojurescript (13)
- # clojureverse-ops (5)
- # community-development (1)
- # conjure (8)
- # cryogen (3)
- # datomic (5)
- # deps-new (7)
- # exercism (1)
- # fulcro (34)
- # honeysql (9)
- # hyperfiddle (3)
- # instaparse (2)
- # introduce-yourself (2)
- # jobs (6)
- # kaocha (1)
- # lambdaisland (1)
- # lsp (47)
- # malli (3)
- # membrane (38)
- # off-topic (9)
- # polylith (36)
- # reitit (7)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (11)
- # spacemacs (7)
- # sql (7)
- # tools-deps (19)
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: https://clj-commons.org/camel-snake-kebab/ π
you need to update the command line program clojure
, not any deps of your actual project
are you on macOS @konanki.sivaram?
use the instructions at https://github.com/clojure/homebrew-tools#version-archive-tool-releases to download the latest prerelease version 1.10.3.916
brew uninstall clojure
brew install clojure/tools/[email protected]
there may be other steps required depending on the history of your brew installation
but brew will usually tell you what to do
FYI, that version is buggy and there is now a 1.10.3.920 :)
this is a prerelease so is not yet a stable version available to upgrade
as a prerelease, you may encounter bugs or unstable behavior - feel free to ask in #tools-deps or file questions at https://ask.clojure.org
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
fails with
Error building classpath. Specified aliases are undeclared: [:-m]
in the first attempt, and subsequent attempts results in
Exception in thread "main" java.io.FileNotFoundException: cljs.main (The system cannot find the file specified)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
at clojure.lang.Compiler.loadFile(Compiler.java:7570)
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(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.main.main(main.java:37)
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
I'm following this:
my deps.edn
{: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
https://clojurescript.org/guides/quick-startbut in their case they also add clojurescript to the deps.edn
for windows, they request to run from cljs.jar
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