This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-31
Channels
- # aleph (12)
- # announcements (4)
- # asami (7)
- # babashka (20)
- # beginners (92)
- # calva (74)
- # clj-kondo (8)
- # cljdoc (70)
- # clojure (47)
- # clojure-dev (29)
- # clojure-europe (27)
- # clojure-nl (7)
- # clojure-norway (3)
- # clojurescript (7)
- # cursive (2)
- # datomic (1)
- # emacs (8)
- # events (5)
- # fulcro (36)
- # gratitude (4)
- # humbleui (25)
- # introduce-yourself (1)
- # lsp (26)
- # malli (6)
- # missionary (8)
- # nbb (50)
- # off-topic (9)
- # pathom (2)
- # pedestal (3)
- # portal (32)
- # practicalli (5)
- # reitit (5)
- # releases (1)
- # ring (6)
- # shadow-cljs (87)
- # sql (31)
- # tools-deps (26)
- # vim (3)
- # xtdb (15)
When I run clojure -Sdescribe
I get a map with symbols as keys instead of keywords. Any idea why? (macOS, clojure installed with homebrew)
❯ clojure -Sdescribe
{ version "1.11.1.1182"
config-files ["/usr/local/Cellar/clojure/1.11.1.1182/deps.edn" "/Users/thomas/.clojure/deps.edn" ]
config-user "/Users/thomas/.clojure/deps.edn"
config-project "deps.edn"
install-dir "/usr/local/Cellar/clojure/1.11.1.1182"
config-dir "/Users/thomas/.clojure"
cache-dir "/Users/thomas/.clojure/.cpcache"
force false
repro false
main-aliases ""
repl-aliases ""}
are you sure the : just isn't printing for some reason? there is a suspicious space in front there
if you have hexdump something like clojure -Sdescribe | hexdump -b|head -1 | awk '{print $3}'
should print 072 (octal for ':')
looks like that map should come pretty directly from here https://github.com/clojure/brew-install/blob/1.11.1/src/main/resources/clojure/install/clojure#L464-L475
that's .... pretty weird
maybe try a different terminal?
something with encoding?
I would try editing the map in the clojure shell script (add an extra key or something) and see if it prints out when you run -Sdescribe again
what shell are you using ( echo $0
)?
I’m using fish.
❯ /usr/bin/env bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.
Fish uses spaces to define lists (e.g. a PATH
in fish is separated by spaces, not colons). To be backwards compatible with bash, there are code paths that will automagically swap between colons and spaces. From the docs:
> Variables whose name ends in “PATH” are automatically split on colons to become lists. They are joined using colons when exported to subcommands. This is for compatibility with other tools, which expect $PATH to use colons.
I suspect @tskardal may be hitting some weird corner case. 😅 Note: I am not a fish user, but did try looking this up out of curiosity. :)