Fork me on GitHub
#calva
<
2021-06-16
>
maxp10:06:36

That looks like as a bug in printer

{(keyword "a b") :c :d :e}
  ;; => {:a b, :c :d, :e}

Tero Matinlassi10:06:07

Works for me.Probably not Calva related?

Tero Matinlassi10:06:57

Which REPL you are using?

Alex Miller (Clojure team)11:06:40

This is the expected behavior

maxp12:06:11

the same in clj

Clojure 1.10.3
user=> (keyword "a b")
:a b
user=> {(keyword "a b") :c}
{:a b :c}
user=> {(keyword "a b") :c :d :e}
{:a b :c, :d :e}

maxp12:06:08

fragment from deps.edn

:nrepl
    { :extra-deps
      { nrepl/nrepl                 {:mvn/version "0.8.3"}
        cider/cider-nrepl           {:mvn/version "0.26.0"}}
      :main-opts 
      ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}
    ;
Calva 2.0.200 connected to that nrepl

Tero Matinlassi04:06:44

I should have same versions… if I type that into a file and evaluate it, it shows it correctly.

pez15:06:47

Yeah, works when I do it as well. In the REPL window, inline and also Evaluate to comment:

{(keyword "a b") :c :d :e}
;; => {:a b :c, :d :e}

pez15:06:50

If you can use Jack-in, @U0666UM3J, can you try with that and disabling the :repl alias in your deps.edn, just to see if that could have anything to do with it. (It shouldn’t but with strange things like this, I start to question everything. 😃

pez15:06:17

You can also try with the command Start a standalone REPL. Maybe that can narrow it down a bit.