Fork me on GitHub
#cursive
<
2018-01-18
>
Empperi09:01:32

encountered a strange bug in Cursive:

Empperi09:01:42

”   lol\n    lal”
=> ”   lol\nlal”
(count *1)
=> 14

Empperi09:01:26

Cursive REPL removes whitespaces after \n character within a String

Empperi09:01:37

it’s just a display issue but still a bug

Empperi09:01:31

simpler example

“\n    lol”
=> “\nlol”

Empperi10:01:27

and just to make sure that people don’t think it’s a more general bug here’s a similar example from lein repl:

user=> “\n    lol”
“\n    lol”

cfleming18:01:21

@niklas.collin You can disable that with Settings-&gt;Languages &amp; Frameworks-&gt;Clojure-&gt;Split and align multi-line strings

cfleming18:01:56

It’s part of Cursive output formatting, but it has some issues with shorter strings due to the way the formatting works.

Empperi18:01:54

Weird it would work like that, it's ignoring the EOL characters but removing the whitespaces

Empperi18:01:40

But good to know :)

Drew Verlee21:01:42

is cursive (paid) included with when you get the intelliji package? https://www.jetbrains.com/datagrip/buy/#edition=personal i dont see it listed as an integrated development environment

tony.kay21:01:20

@drewverlee they are separate companies. Two licenses.

tony.kay21:01:31

but worth every penny, I think

Drew Verlee21:01:22

@tony.kay so cursive doesn’t depend on having the paid version of intelliji in any way?

manutter5121:01:30

@drewverlee From the Getting Started guide for Cursive: First, if you haven't already, download IntelliJ here. If you don't have a licence for the Ultimate Edition, the free Community Edition is fine.

Drew Verlee21:01:37

Thanks. @manutter51 i should have caught that.