cursive

Issues at: https://git.io/cursive-issues
helios 2021-05-20T11:32:24.014400Z

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

helios 2021-05-20T11:33:14.014500Z

ah i saw the thread, coming soon

2021-05-20T16:44:05.016200Z

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.

2021-05-20T16:44:48.016300Z

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

imre 2021-05-20T16:49:04.016500Z

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

imre 2021-05-20T16:49:34.016700Z

which was a TIL for me about 2 months ago

2021-05-20T16:58:30.016900Z

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 😞

Ivar Refsdal 2021-05-20T18:14:37.018400Z

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?

Ivar Refsdal 2021-05-21T07:13:24.020800Z

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

Ivar Refsdal 2021-05-21T07:14:07.021Z

I found this answer from 2017: https://stackoverflow.com/a/42473920

2021-05-21T07:21:40.021300Z

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

Ivar Refsdal 2021-05-21T09:44:30.022Z

I opened an issue: https://github.com/cursive-ide/cursive/issues/2555 🤞

⚡ 1
Azzurite 2021-05-23T12:37:35.023700Z

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 Refsdal 2021-05-23T17:18:43.023900Z

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

cfleming 2021-05-25T02:47:44.024200Z

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

☕ 1
❤️ 1
cfleming 2021-05-25T02:48:24.024500Z

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.

cfleming 2021-05-25T02:50:08.024700Z

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

Ivar Refsdal 2021-05-25T08:55:38.025100Z

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

pez 2021-05-20T19:45:05.019300Z

Replete gives the same as Cursive. Just noting.

2021-05-20T19:46:12.020200Z

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