Fork me on GitHub
#calva
<
2020-01-08
>
dennisa14:01:47

When printing to Calva repl i'm getting <repl#7> before each line, ie (print "test") <repl#7>test Is this a Calva thing (and how can i get rid of it ) or something else?

pez14:01:50

I think it might be a Calva thing... The way to get rid of it is by sending a PR. Or at least file an issue about it. It was a while since this was added, and I don't remember the rationale.

dennisa14:01:25

Alright, shall make one. It appears to be affecting :node-repl mostly... If I look closely, the printout side effect appears above the func. call line in the repl. (hmm:)

pez14:01:08

It's out-of-band prints. So when the evaluation is finised, but there are still printing side effects from it, they get printed like that.

dennisa10:01:22

Issue is done. Is it possible at all to address the out of band print outs and do you need a separate issue for this?

pez11:01:12

What do you want to address with the out of band print outs?

ibarrick16:01:35

Calva causes my editor to be brutally slow on large files. I tried disabling auto-format but to no avail. I'm happy to change the code to resolve this because there is basically no competition in Clojure extensions so I really need Calva to work. Can someone give me some direction on where to look for what may be causing this performance hit?

pez16:01:18

How large are the files?

pez17:01:28

Start switching off all calva.highlight settings. I doubt that is the culprit, but we have to start somewhere. Also try if disabling clj-kondo makes any difference. (Even more unlikely, but anyway.)

ibarrick18:01:39

No difference. The only thing that helps is disabling calva

ibarrick18:01:09

I use the VSCode from the Arch repo which has an issue that prevents me from debugging extension host

ibarrick18:01:45

I'm on a time crunch to get something done now, but later I can try to use a different install to profile the extension and get a better handle on what the issue is

pez18:01:00

Then it is probably the TokenCursor. This can prove quite tricky to fix!

pez20:01:02

Is there something else special with the files? I am trying with clojure.core and things are not blazingly speedy, but not super slow either. Even if I copy paste the whole file again, making a 15k line file, things still tug along…

ibarrick21:01:09

The file contains the definition to a couple macros which are then used as almost every top-level form in the file. Other than that it's just a normal file. The main thing is while typing, the text input lags behind my typing by 2 seconds (and that lag grows as I continue typing and not waiting for it)

pez07:01:24

That doesn’t happen to me. The formatting is slow, and I think I know how to fix that, but the there is no input lag. Is there a chance you can try Calva on thos files with a Mac or a Windows machine, to see if the problem is there regardless?