Fork me on GitHub
#cursive
<
2022-09-07
>
wontheone108:09:05

Hello I have a question, While I can execute some code on REPL start from terminal, I don't know how to do that for Cursive REPL startup.

wontheone108:09:21

I have put the same options in Parameters field but the REPL doesn't print 6 as I expected. Can anybody help me with this?

wontheone115:09:05

Anyone please?

helios13:09:16

can you configure to put (or not put) a space in tagged elements? i.e. Clojure CLI

$ clj
(random-uuid)
Clojure 1.11.1
user=> #uuid "46744ee8-a11c-4a4b-9e27-9e3dc4110702"
Cursive
(random-uuid)
=> #uuid"58a6af18-34d9-45eb-90f3-d6446d4016bf"
it leads to unnecessary whitespace changes

serioga14:09:02

If you disable “Pretty print REPL return values” then whitespace will be OK.

👍 1
serioga14:09:03

But pprint itself is fine so the reason is not clear

(clojure.pprint/pprint (random-uuid))
#uuid "4130e408-256e-4ee3-b765-10de9a849e4b"

cfleming21:09:13

This is because Cursive pretty-prints values on the client side. I’ll look at making those values match what Clojure does.

👍 1
Alex Miller (Clojure team)13:09:54

it's surprising to me that those are different. should be controlled by the print-method for UUID, which should be the same?

cfleming21:09:08

Cursive pretty-prints elements on the client side, which would cause this.

Jeffrey Bay16:09:08

it seems like cursive (sometimes) offers to add namespaces to the ns :require form, but not always. Does this only work for some reason if it detects an alias has been used in the project?

Jeffrey Bay16:09:20

um, yeah, i agree with that poster - i'd like for it to require it without a shorthand if the project doesn't have a shorthand (we don't use them) - is there an issue I can upvote or something?

imre16:09:49

not sure, there is an issues bookmark at the top of the channel, I would try searching there

Jeffrey Bay17:09:18

I couldn't find an existing issue, so I created a new one: https://github.com/cursive-ide/cursive/issues/2728

👍 1