cider

Harold 2025-12-15T17:28:10.518369Z

Some characters are being dropped from the printed representation of some of our types in the REPL:

user> (deftype Foo []
        Object
        (toString [this] "[[1 2 3]\n [4 5 6]\n [7 8 9]]"))
user.Foo
user> (defmethod print-method Foo [x writer] (.write writer (.toString x)))
#multifn[print-method 0x61590795]
user> (Foo.)
[[1 2 3]
 [4 5 6]
[7 8 9]]
user> (str (Foo.))
"[[1 2 3]\n [4 5 6]\n [7 8 9]]"
After the second newline there, the space is getting dropped. Anyone seen anything like this?

➕ 2
Alex Miller (Clojure team) 2025-12-15T17:53:27.531509Z

doesn't seem to happen in clj repl

👍 1
1
Harold 2025-12-15T18:00:20.688019Z

@daslu --- fwiw, this thread may be relevant to printing things we were seeing during the development of your recent post. We are actively working on improving this area.

Daniel Slutsky 2025-12-15T19:09:50.051529Z

thanks!