Fork me on GitHub
#cursive
<
2021-05-20
>
helios11:05:24

how can i get a Babashka repl in cursive? :thinking_face:

helios11:05:14

ah i saw the thread, coming soon

henryw37416:05:05

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.

henryw37416:05:48

so.. I guess it is valid. This is from the clojurescript project deps.edn

imre16:05:04

according to the clojure docs, keywords aren't supposed to contain periods in their name part https://clojure.org/reference/reader#_literals

imre16:05:34

which was a TIL for me about 2 months ago

henryw37416:05:30

thanks didn't know that. @U050B88UR can the Clojurescript deps.edn aliases be changed? It seems the names are not valid (keywords containing dots) and Cursive doesn't allow them 😞

Ivar Refsdal18:05:37

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?

pez19:05:05

Replete gives the same as Cursive. Just noting.

thumbnail19:05:12

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

Ivar Refsdal07:05:24

The run console is not the same as the REPL console?

thumbnail07:05:40

> 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!

Azzurite12:05:35

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"

Ivar Refsdal17:05:43

Sure I agree the backlog is huge. However other people may know it's been requested if nothing else.

cfleming02:05:44

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"))

3
❤️ 3
cfleming02:05:24

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.

cfleming02:05:08

However the ETA for “make Cursive a full terminal emulator” is definitely “never” 🙂

Ivar Refsdal08:05:38

Excellent @U0567Q30W ❤️ Thanks! That's all I need for using progrock