This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-04
Channels
- # aleph (1)
- # asami (6)
- # babashka (44)
- # beginners (20)
- # calva (6)
- # circleci (1)
- # clj-kondo (2)
- # cljdoc (2)
- # clojure (184)
- # clojure-europe (13)
- # clojure-nl (4)
- # clojure-spain (1)
- # clojure-uk (4)
- # clojurescript (35)
- # code-reviews (1)
- # conjure (3)
- # core-async (60)
- # core-logic (1)
- # cursive (5)
- # data-science (2)
- # events (11)
- # graalvm (4)
- # graphql (2)
- # introduce-yourself (1)
- # jobs (2)
- # leiningen (3)
- # malli (16)
- # minecraft (6)
- # practicalli (1)
- # reagent (3)
- # reitit (1)
- # releases (3)
- # remote-jobs (2)
- # rewrite-clj (21)
- # shadow-cljs (12)
- # tools-deps (21)
- # vim (16)
I spotted something strange with Cursive's REPL. I was having issues with some string formatting code I was writing and while debugging I found the cause was that when I eval " a \n b "
it appears to trim the whitespace after the newline on the returned string to " a \nb "
. This is the case whether a function returns that value or just the string is eval-ed but println-ing works fine (see screenshot).
A colleague also reported seeing the same thing. Is there a flag we have checked that's causing this? I've looked through my settings and tried searching for it on the Cursive site but can't find anything.
I should add a section to the Troubleshooting page about this, sorry, that’s Preferences | Languages & Frameworks | Clojure | REPL Options | Split and align multi-line strings
No problem, I obviously didn't look close enough 😅 Thank you for getting back to me so quickly!