Fork me on GitHub
#calva
<
2021-09-02
>
Alexander Kouznetsov21:09:45

I’m experiencing the following issue: when I use several println s in a row and evaluate the code, some of the prints are not shown in output.calva-repl (like every second sometimes). I also see the following in the debug log which I sthink is related:

[2021-09-02 14:20:15.137] [renderer1] [error] Error: file:///.../.calva/output-window/output.calva-repl has changed in the meantime
    at h.apply ()
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async r._performTextEdits ()
    at async r.perform ()
    at async n.apply ()
[2021-09-02 14:20:15.137] [renderer1] [warning] IGNORING workspace edit {}
Has anyone seen this before? What can be done to fix it?

Alexander Kouznetsov18:09:23

@U0ETXRFEW? Is this specific to my environment only? Evaluation of something like this:

(do (println (with-out-str (clojure.pprint/pprint ["1"])))
    (println (with-out-str (clojure.pprint/pprint ["2"])))
    (println (with-out-str (clojure.pprint/pprint ["3"])))
    (println (with-out-str (clojure.pprint/pprint ["4"]))))
Produces outputs like:
["1"]
["3"]

["4"]
or even
["1"]

bringe19:09:37

I just tried to reproduce this issue and I cannot. I get the following output with the code above:

["1"]

["2"]

["3"]

["4"]

nil

bringe19:09:19

So, it likely is related to your setup somehow. If you manage to find what the issue is, I’d love to know. Maybe we can document it, or maybe there is something to fix.

bringe19:09:08

Try a new minimal project first, and see if it happens there. There could be some dependency causing an issue. The output comes from nrepl/cider-nrepl, so maybe it’s something to do with the version you’re using (if different from what Calva injects at jack-in).

bringe19:09:52

If you can share a minimal repro project along with the steps to reproduce then maybe we can narrow the problem down more.