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`.
porkostomus 2020-12-31T00:28:37.494200Z

I was having this issue awhile back and it turned out that somehow the keyboard shortcuts had gotten disabled in the settings! Perhaps it's worth a look...

pez 2020-12-31T00:29:58.494400Z

Yes, that was actually the case. Calva has a keyboard shortcut defined for disabling its keyboard shortcuts… @brandon.ringe has removed it for the next Calva release, fortunately.

bringe 2020-12-31T02:57:31.497Z

Calva version 2.0.143 is out with the following changes. Windows users, please try out navigating into a jar dependency (Go to Definition), and try out one of the new https://calva.io/refactoring/, and let us know if you have any issues. β€’ Update clojure-lsp to include https://github.com/clojure-lsp/clojure-lsp/issues/223 β€’ Fix: https://github.com/BetterThanTomorrow/calva/issues/911 β€’ https://github.com/BetterThanTomorrow/calva/issues/815

πŸ‘ 1
practicalli-john 2020-12-31T04:49:27.000600Z

Is there a way to disable clojure-lsp in Calva? I just updated Calva and am experiencing several Gb of RAM being used by the clojure-lsp process on one project. The project code is not that complicated although I believe the 4 dependencies have quite a few dependencies themselves. It seems to be taking quite a time to process too, although at least its not blocking.

πŸ‘ 1
pez 2020-12-31T17:25:44.001400Z

No way to disable it currently, @jr0cket. Please file an issue about it.

bringe 2020-12-31T17:27:51.002600Z

@jr0cket I've been thinking lately this would be requested due to memory usage, and maybe some people just don't want it to start for certain projects

bringe 2020-12-31T17:28:40.003700Z

I think a simple setting would be good to enable/disable. Haven't thought it through yet though

ericdallo 2020-12-31T17:30:02.005400Z

We could also add a flag in clojure-lsp to do not scans jars early (which take most of the time to start)

practicalli-john 2020-12-31T17:30:03.005500Z

@pez ouch, its not very welcoming to add a feature that consumes large amound of memory with no option to disable. I'll downgrade Calva to an earlier version for now until its possible to run without clojure-lsp

bringe 2020-12-31T17:31:19.005600Z

That's an interesting idea

bringe 2020-12-31T17:35:41.006100Z

But if a user tries to navigate to a jar dep after lsp has started, but before the dep has been scanned, what would/should happen?

ericdallo 2020-12-31T17:37:22.006300Z

THat's what we need to test it πŸ˜…

πŸ‘ 1
πŸ˜„ 1
pez 2020-12-31T17:44:43.010200Z

We weren’t quite aware of the memory consumption, @jr0cket. But we try to be quick to fix problems we create by being quick to develop Calva. We’re not like Facebook. It’s rather Move fast. Be quick to fix things if they break, πŸ˜ƒ

practicalli-john 2020-12-31T17:52:57.013400Z

I am afraid this gives me less confidence in recommending Calva

practicalli-john 2020-12-31T17:54:29.015100Z

@pez oh, I though it was a well known problem with clojure-lsp. I've discussed this many times with people using clojure-lsp with Emacs, which is a far worse situation as clojure-lsp didn't run as a background process. Although clojure-lsp is a very promising approach, for myself I consider it an optional tool until it matures and becomes more efficient. I was going to invest time to learn Calva better in 2021, but not if "have" to use clojure-lsp without a choice, sorry.

ericdallo 2020-12-31T18:08:21.017800Z

Good news, I tested and reduced a lot the startup time... I'll try to find the drawbacks of doing this.. Another aproach is no async crawling jars using clojure.async

bringe 2020-12-31T18:27:56.019500Z

Thanks for the feedback, @jr0cket. You have very valid points, and I'm going to prioritize this.

bringe 2020-12-31T18:29:49.020600Z

Sweet

practicalli-john 2020-12-31T18:36:39.020800Z

Thank you. I dont like to be negative, but feel this is a big change to the Calva experience and wouldn't want anything to detract from the amazing work done so far. Thanks again.

❀️ 1
bringe 2020-12-31T18:51:51.021100Z

I started this issue to track the memory issue https://github.com/clojure-lsp/clojure-lsp/issues/229

πŸ‘ 1
ericdallo 2020-12-31T20:31:17.021500Z

Well, I managed to make the crawling jars async using clojure.async , I'm adding it behind a flag async-scan-jars-on-startup? . While the jars are not scanned, it's not possible to go to a jar or something like that, but I think it's more important for users to scan the project and then later scan the jars... wdyt?

ericdallo 2020-12-31T20:31:35.021700Z

I was wondering also if the default of this flag should be true or false

ericdallo 2020-12-31T20:32:13.021900Z

I have plans in the future to improve this code later to use more clojure core async to crawl source dirs and clj-kondo

bringe 2020-12-31T20:38:00.022100Z

I think making it false by default (like current behavior) would be good for now at least

ericdallo 2020-12-31T20:38:45.022300Z

Ok, I'll open a PR soon, would you mind helping test with Calva also?

bringe 2020-12-31T20:38:56.022500Z

Sure, np

πŸ‘ 1
ericdallo 2020-12-31T21:09:47.022800Z

:reviewplease: https://github.com/clojure-lsp/clojure-lsp/pull/230

bringe 2020-12-31T21:58:37.023100Z

sweet, I'll get to this when I can, it may be a little while

πŸ‘ 1
pez 2020-12-31T23:22:16.027100Z

Happy New Year, friends! (We just celebrated here in Sweden). 2021 is the year of Clojure, I am sure. And the Calva team shall be here, offering VS Code people tools they need to join and enjoy the ride. Cheers!

πŸŽ† 3
πŸŽ‰ 6
roelof 2020-12-31T23:22:54.027500Z

@pez Same wishes to you

roelof 2020-12-31T23:23:01.027700Z

happy new year

❀️ 1