calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
pez 2020-12-27T11:55:40.432Z

Dear Calva friends: v2.0.138 just out, featuring some refactorings. See https://calva.io/refactoring/

pez 2020-12-27T11:56:37.432200Z

Thanks to @ericdallo for super speedy issue fixing!

🎉 2
1
bringe 2020-12-27T18:59:30.433300Z

I think you mean 2.0.138?

pez 2020-12-27T19:47:13.433700Z

Probably. 😎

😎 1
bringe 2020-12-27T20:00:54.434400Z

These new refactoring commands are pretty sweet! I recommend people try them out

❤️ 1
julianwegkamp 2020-12-27T20:10:19.437800Z

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)

➕ 1
pez 2020-12-27T20:14:47.439800Z

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.

bringe 2020-12-27T20:15:05.440100Z

I actually noticed this yesterday, too @pez

julianwegkamp 2020-12-27T20:15:27.440500Z

Sure

bringe 2020-12-27T20:15:56.441Z

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

julianwegkamp 2020-12-27T20:18:37.442700Z

2.0.134 also has the lag. But I'm pretty sure this is something that started very recently

bringe 2020-12-27T20:20:32.443100Z

That's odd o_O

bringe 2020-12-27T20:20:44.443400Z

@julianwegkamp Would you mind creating an issue for it?

julianwegkamp 2020-12-27T20:20:54.443600Z

Sure no problem

bringe 2020-12-27T20:20:58.443900Z

Thanks

julianwegkamp 2020-12-27T20:24:31.444100Z

https://github.com/BetterThanTomorrow/calva/issues/896

🤘 3
julianwegkamp 2020-12-27T20:24:46.444600Z

Anything else I can do to help?

❤️ 1
pez 2020-12-27T20:27:26.444900Z

I could immediately reproduce this.

pez 2020-12-27T20:29:34.446100Z

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.

2020-12-28T15:56:51.458700Z

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).

pez 2020-12-28T16:04:18.464800Z

Might be something with VS Code then… What version are you using on your work machine?

2020-12-28T16:04:46.465Z

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: 8.3.110.13-electron.0 OS: Darwin x64 19.6.0

pez 2020-12-28T16:05:27.465200Z

So that’s the same as I am using.

2020-12-28T16:05:38.465400Z

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: 8.3.110.13-electron.0 OS: Darwin x64 19.6.0

pez 2020-12-28T16:10:17.465600Z

OK. So it figures with the timeline that this started to happen with 1.52.

2020-12-28T16:17:42.465800Z

Probably, I downgraded to 1.51.1 and it didn’t help.

pez 2020-12-28T16:18:14.466Z

Weirdness

2020-12-28T16:39:10.466200Z

If I turn my wifi off, the lag disappears.

pez 2020-12-28T16:45:45.466400Z

Oh, wow.

pez 2020-12-28T16:50:44.466600Z

Indeed, Same here.

pez 2020-12-28T21:57:14.467Z

With that wifi clue I found that bumping to latest cider-nrepl for jack-in fixes the issue.

2020-12-27T21:18:42.447900Z

Hi ! what’s a good/working setup combo for lein + cljs + calva ? lein-fighweel and figwheel-main templates both are not working

worrelsik 2020-12-28T09:35:29.454500Z

I don't know about aliases, but maybe an alias is not always needed?

2020-12-27T21:40:44.448200Z

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..

pez 2020-12-28T09:17:43.454300Z

There is always time to learn Emacs later. Personally i have no desire to go back to Emacs. It felt like I had to battle with it all the time, whereas Vscode is working together with me. I don't even use a VIM extension, that's how modern I've become. 😎

👍 1
ericdallo 2020-12-27T21:54:06.448300Z

I was a vscode user and changed to :emacs: a couple years ago, I really like vscode but I can't see using other editor after I changed to :emacs:. 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 🙂

bringe 2020-12-27T22:31:02.448600Z

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?

bringe 2020-12-27T22:41:56.448800Z

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.

bringe 2020-12-27T22:42:44.449Z

And Calva is very actively maintained and growing, as you can see 😃

ericdallo 2020-12-27T22:45:40.449200Z

Exactly ☝️ 😄

2020-12-27T22:56:43.449400Z

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.

bringe 2020-12-27T23:00:03.449600Z

I just ran

lein new figwheel-main hello-world.core -- --reagent
and then opened the hello-world.core directory in VS Code, ran Calva's jack-in, selected Leiningen + Figwheel Main -> fig:build -> :dev -> dev and jack-in succeeded. The browser opened to the app and the cljs repl was connected.

bringe 2020-12-27T23:01:37.449800Z

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.

2020-12-27T23:54:50.450Z

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 <