This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # adventofcode (7)
- # announcements (31)
- # babashka (15)
- # beginners (14)
- # calva (45)
- # circleci (6)
- # clj-new (7)
- # clojure (27)
- # clojure-europe (19)
- # clojure-france (2)
- # clojure-gamedev (4)
- # clojure-uk (2)
- # clojurescript (26)
- # conjure (14)
- # data-science (6)
- # depstar (4)
- # emacs (13)
- # events (1)
- # fulcro (20)
- # graalvm (2)
- # hoplon (30)
- # joker (11)
- # london-clojurians (1)
- # malli (26)
- # pathom (2)
- # re-frame (13)
- # reagent (8)
- # reclojure (3)
- # reveal (8)
- # robots (4)
- # shadow-cljs (29)
- # sql (5)
- # tools-deps (28)
- # vim (4)
Hi there! I'm experiencing lag in the REPL response when the evaluation of the form throws an exception. It takes a couple of seconds (5 to 10) to show the exception info and return the prompt. I've never had this before AFAIK. Is this a known issue? (VSC 1.52.1 and Calva 2.0.138)
We recently made some changes to how we deal with exceptions, so this might be a regression, @julianwegkamp. If you can try with version 2.0.134 as well, that would be extra awesome.
I guess I was caught up in what I was doing and thought maybe it was something with my machine. Glad we have a confirmation
2.0.134 also has the lag. But I'm pretty sure this is something that started very recently
Which is extra strange, because when I made the changes to suppress the stack trace I provoked these errors a lot in testing, and did not notice any lag.
Yes, that’s weird, I noticed that lag a few days ago. I re-installed
Calva, but it didn’t help. Also I tried one before the change, and the lag was still there for some reason. Finally, I tested it on my work machine, there was no lag (the latest version).
Local Version: 1.52.1 Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523 Date: 2020-12-16T16:30:02.420Z (1 wk ago) Electron: 9.3.5 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 184.108.40.206-electron.0 OS: Darwin x64 19.6.0
Work Version: 1.51.1 Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-11T01:11:34.018Z (1 mo ago) Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 220.127.116.11-electron.0 OS: Darwin x64 19.6.0
With that wifi clue I found that bumping to latest cider-nrepl for jack-in fixes the issue.
Hi ! what’s a good/working setup combo for lein + cljs + calva ? lein-fighweel and figwheel-main templates both are not working
Hi! This doesn't sound good. Can you provide repro steps, starting with the command to create the project from the template, and onward into how you tried to jack-in, or what you're trying that's not working?
I just ran
and then opened the
lein new figwheel-main hello-world.core -- --reagent
hello-world.coredirectory in VS Code, ran Calva's jack-in, selected
Leiningen + Figwheel Main->
devand jack-in succeeded. The browser opened to the app and the cljs repl was connected.
If this or some other combination of steps or templates are not working for you, please create an issue and we can look into it more. If you file the issue from the Help menu -> Report Issue, this will give us your system details which can be helpful.
hmm for some reason for me, calva doesn’t ask me alias
it goes from
Leiningen + Figwheel Main and then asks for profile and then automatically runs
lein update-in :dependencies conj '[nrepl"0.8.2"]' -- update-in :dependencies conj '[clj-kondo"2020.04.05"]' -- update-in :dependencies conj '[cider/piggieback"0.4.2"]' -- update-in :plugins conj '[cider/cider-nrepl"0.23.0"]' -- update-in '[:repl-options :nrepl-middleware]' conj '["cider.nrepl/cider-middleware"]' -- update-in '[:repl-options :nrepl-middleware]' conj '["cider.piggieback/wrap-cljs-repl"]' -- with-profile +dev repl :headless <
I observe Calva from some time, I see it's gaining a momentum. What would you advice for someone starting with Clojure and having to choose between Emacs and Calva assuming no experience at all with both? I see many Clojure professionals using Emacs. Does it still beat Calva? Does it pay off long term to learn Emacs having modern IDEs like Intellij, VSCode..
I was a vscode user and changed to a couple years ago, I really like vscode but I can't see using other editor after I changed to . I think it depends how much time do you want to spend learning/hacking your IDE, for low/mid-time I'd recommend VSCode, for long term, Emacs. Both have a lot of libs, Calva is really good, but Clojure has more Emacs libs. I'd suggest you try both if you have time 🙂
Just to add to this, if you're just starting Clojure, I recommend Calva as that way you can focus more on learning Clojure, and less on learning the editor. When I was starting out I made the decision to forgo Emacs since from what I read/hear it's lot to learn (but it pays off later to learn it). Also I was already familiar with VS Code. Emacs and Cider are very mature and have all the bells and whistles, but Calva is also a very capable editor extension with its own bells and whistles. I've used it a good bit for hobby and professional dev.
I learned emacs a few years ago to start with Clojure. I suggest the vscode/Calva path. At this point, I’ve read “mastering emacs”, I’m comfortable and even prefer emacs over vim; still, it will cause distraction and complexity if your goal is learning and creating with Clojure, IMHO.