This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-18
Channels
- # announcements (10)
- # babashka (21)
- # beginners (99)
- # biff (66)
- # catalyst (3)
- # cherry (1)
- # cider (11)
- # clojure (38)
- # clojure-austin (3)
- # clojure-dev (23)
- # clojure-europe (21)
- # clojure-hungary (10)
- # clojure-nl (2)
- # clojure-norway (57)
- # clojure-uk (2)
- # clojurescript (9)
- # cursive (6)
- # fulcro (5)
- # hyperfiddle (14)
- # integrant (4)
- # introduce-yourself (3)
- # lsp (24)
- # off-topic (14)
- # reagent (12)
- # reitit (13)
- # releases (8)
- # sci (16)
- # shadow-cljs (8)
- # solo-full-stack (1)
- # spacemacs (5)
- # squint (3)
- # xtdb (14)
My project uses figwheel to detect and load file changes into the browser. For Cursive/IntelliJ, the changes occur either on-blur, that is, as soon as I select another application than IntelliJ, or on active save, like Cmd+S. There is also an option to allow Cursive to autosave after a period of time has expired. The minimum setting for this period is 1 second. I would prefer to a) not have to select a different application, as I'm often viewing the code and the browser side by side, and would like for my pointer to stay in the code b) not have to manually save, as I would have to do that loads of times during even short sessions, and I've got enough RSI-inducing keyboard action already 馃檪 c) wait shorter than 1 second for the autosave, since figwheel also takes a little time to reload Do you know of a way to achieve this?
I have spent a stupid amount of time trying to find out what's wrong with str
and str/join
but it looks like it's either nrepl or cursive messing with my head here:
(let [s (str \newline " <- there should be 4 spaces here")]
(prn s)
s)
"\n <- there should be 4 spaces here"
=> "\n<- there should be 4 spaces here"
Somehow the repl won't print the spaces after the newline in the return value.I has a similar issue - https://clojurians.slack.com/archives/C0744GXCJ/p1641329137032000 There's a REPL option for aligning multi string Colin describes in the reply that you may want to turn off
If anyone else comes across this, the solution is https://clojurians.slack.com/archives/C0744GXCJ/p1641329784032400?thread_ts=1641329137.032000&cid=C0744GXCJ (message in the thread @U02SGV34XBQ linked)