how can i get a Babashka repl in cursive? :thinking_face:
ah i saw the thread, coming soon
in run with deps
in aliases it complains that compiler.test.run
is not a valid alias name, because of the dots - but cursive seems happy with it elsewhere.
so.. I guess it is valid. This is from the clojurescript project deps.edn
according to the clojure docs, keywords aren't supposed to contain periods in their name part https://clojure.org/reference/reader#_literals
which was a TIL for me about 2 months ago
thanks didn't know that. @dnolen can the Clojurescript deps.edn aliases be changed? It seems the names are not valid (keywords containing dots) and Cursive doesn't allow them 😞
Hi.
I tried evaluating (send to repl) (println "\r1111\r222")
and it outputs:
1111
222
whereas in regular clj/clojure
it will output 2221
.
Is there any way to support the \r
character in Cursive REPL?The run console is not the same as the REPL console?
I found this answer from 2017: https://stackoverflow.com/a/42473920
> The run console is not the same as the REPL console True, but i figured they might be pretty similar (at least it wouldn't work out of the box). Good find on the SO answer though!
I opened an issue: https://github.com/cursive-ide/cursive/issues/2555 🤞
just be prepared for it never being supported 😄 I'm not bashing Cursive/cfleming, there's just a huge backlog of things to do so the ETA for that may be "never"
Sure I agree the backlog is huge. However other people may know it's been requested if nothing else.
It’s sad but true. However there may be a workaround now - Cursive does have some limited support for ANSI codes. I just tested this, and this works in Cursive:
(println (str "Hello" \u001b "[1KWorld"))
However it doesn’t do exactly the same thing in the terminal - in the terminal it erases the Hello with spaces but doesn’t move the caret to the start of the line.
However the ETA for “make Cursive a full terminal emulator” is definitely “never” 🙂
Excellent @cfleming ❤️ Thanks! That's all I need for using progrock
Replete gives the same as Cursive. Just noting.
I looked into this issue a while back. Apperantly it's an IntelliJ issue. It might be this one https://youtrack.jetbrains.com/issue/IDEA-147282