This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-30
Channels
- # admin-announcements (1)
- # announcements (1)
- # babashka (8)
- # bristol-clojurians (1)
- # calva (36)
- # clojure (115)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-norway (3)
- # clojure-uk (161)
- # clojuredesign-podcast (3)
- # clojurescript (71)
- # core-async (34)
- # cursive (26)
- # datomic (43)
- # docker (2)
- # emacs (24)
- # figwheel-main (1)
- # fulcro (36)
- # graalvm (7)
- # immutant (2)
- # jackdaw (1)
- # jobs (2)
- # leiningen (8)
- # luminus (5)
- # off-topic (29)
- # onyx (1)
- # other-languages (5)
- # pathom (6)
- # pedestal (3)
- # reagent (11)
- # ring (8)
- # shadow-cljs (42)
- # spacemacs (17)
- # specter (6)
- # tools-deps (80)
- # videos (1)
I think there are two separate problems at play. Something is wrong in Calva when it comes to dealing with even mildly large results, and it also seems to lock up other Calva related commands (e.g. backspace
is a Calva command when in a Clojure file). But I can't see how Calva would cause the REPL server to run amok...
@pez any way to debug why I am getting it and you don't? Is this possible I've got something out of date?
As far as I know there is no workaround, unfortunately. I will see if the cljc version of rewrite-clj behaves any better, so that is the only hope I can provide right now...
But what's surpsising is that it seems to work in other projects, via WSL in Windows if that matters..
Calva is using a forked version. This one, iirc: https://github.com/PEZ/cljfmt/tree/calva-fmt
Agree it is surprising with this one instance of it not working. I don't remember if you have found the actual error message... was it about namespaced keywords?
I've got side question - is this possible to redirect logs and errors from output
tab to repl?
@pez Unchecking Calva › Fmt: Align Map Items
work-arounds this issue (but I'd miss this feature :()
> is this possible to redirect logs and errors from output
tab to repl?
See if the setting regarding Calva async output does what you want.
Please report this issue with what you now know, @slawek098. Even if the rewrite-clj fix might take a while, I should be able to retry formatting w/o map align when it fails like that.
OK, so the difference is that when I evaluate something in REPL, it get's properly printed in repl.
The command with just space
also populates the hover for the evaluated form (so not just in Calva says
).
@grounded_sage I think I know what causes the client side problems for you. I just experienced it myself. I opened a deep .edn
file where everything was on one line. Is that what you do as well? I'll report the bug and will see what I can do to fix it. But until fixed, anyone using Calva should avoid opening large edn files.
I read in a JSON file from disk and convert it to edn in a (def …)
Though possibly related… solution. I think the my problem will resolve with the continued work going into Calva. It’s difficult for me to describe a repro.
Dear Calva-friends: Please be aware that opening Clojure and EDN files with very long lines can cause Calva to become fully locked up and your computer to get quite hot: https://github.com/BetterThanTomorrow/calva/issues/556 I'll look into this and see what can be done about it.