Fork me on GitHub
#calva
<
2021-05-22
>
Stuart16:05:26

Is it possible to not have Calva put extra line breaks between my repl output? e.g. calling cljs.pprint/print-table

Stuart16:05:36

Or just three println in a row

Stuart16:05:42

odd, could i have accidentally borked a setting ?

pez16:05:13

I don’t think so. Let me try with CLJS.

pez16:05:24

Same withe CLJS here. Are you on Windows?

pez16:05:51

Yes, we have established that before, come to think about it… What’s the Line End Sequence setting of the repl window file? (You see it right beside the file type.)

Stuart16:05:43

where do i see the line end sequence?

Stuart16:05:10

hmm, i ahve CRLFand you have LF

pez16:05:24

Yes, but that is as it should.

Stuart16:05:48

yeah, changing it did this

pez16:05:11

I was thinking that if you had LF then maybe when both CR and LF ends the lines it would produce two newlines.

pez16:05:50

Changing it throws Calva’s parser out of wack. You’ll need to close the repl output and open it again.

pez16:05:24

See how it behaves in a plain minimal project. Like what if you open a new VS Code window and start a standalone REPL, or the Getting Started REPL.

Stuart16:05:42

let me check, ill try clojure, not clojurescript

pez16:05:19

Yeah, I’ve not added standalone ClojureScript REPLs yet.

Stuart16:05:47

back to this error about not being able to parse "0.8.3"

Stuart16:05:52

must be a cljs thing?

pez16:05:00

The way to fix that error is to use some other Java than the Oracle one.

pez16:05:16

Try with a plain CLJS project also.

Stuart16:05:42

this is my java, do I just install something like openJDK ?

pez16:05:27

The important thing is that you don’t use Oracle’s installer.

Stuart17:05:51

yeah, must be cljs

Stuart17:05:57

a basic cljs shadow project

pez17:05:55

The way to try a plain ClojureScript project is to create a project structure as instructed here: https://clojurescript.org/guides/quick-start then jack in using deps.edn + ClojureScript built-in for node

Stuart17:05:25

gah, i get the parse error again tryign this. Right, it's time to fix my java 😄