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`.
2021-02-03T07:23:25.086100Z

You need to update nrepl-cider to the latest.

pez 2021-02-03T12:38:42.087Z

New release announced. Please visit #announcements and cheer it on with emojis and replies. πŸ˜ƒ

❀️ 1
πŸ™Œ 2
pez 2021-02-03T12:42:55.087100Z

And if you find typos and stuff in the announcement article, please let me know. Written in a bit of too much hurry. ❀️

flowthing 2021-02-03T12:58:24.087300Z

You guys ship features at a breakneck speed. Kudos!

❀️ 2
🀘 2
Aleksander Rendtslev 2021-02-03T15:54:12.088700Z

I’m trying to run the deps.edn + shadow.cljs command, but the cljs part keeps failing with the following:

cljκž‰userκž‰>Β 
; Creating cljs repl session...
; Connecting cljs repl: deps.edn + shadow-cljs...
;   The Calva Connection Log might have more connection progress information.
; Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:471).
shadow.cljs.devtools.api
Any clues? (I’m back to trying to make Calva be my daily driver. For some reason, writing clojure is a lot smoother for me in VSCode than Emacs)

pez 2021-02-15T16:09:06.390Z

Hopefully it is a general solution for deps.edn + shadow-cljs

n2o 2021-02-15T16:27:12.390600Z

Hm, I’m getting this error message when I try this approach with my fullstack Clojure / ClojureScript plugin with shadow-cljs and re-frame:

shadow-cljs - HTTP server available at <http://localhost:8700>
shadow-cljs - server version: 2.11.18 running at <http://localhost:9630>
shadow-cljs - nREPL server started on port 8777
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Compiling ...
[2021-02-15 17:26:16.000 - WARNING] :shadow.cljs.devtools.server.util/handle-ex - {:msg {:type :start-autobuild}}
NoClassDefFoundError com/google/common/collect/Streams

n2o 2021-02-15T16:27:48.390800Z

The REPL is available, but building my cljs project failed. Any ideas on this? :thinking_face: Thanks πŸ™‚

pez 2021-02-15T16:39:37.391Z

Can you share your configs? (I think it might be wise to continue this in a new thread. This one might go down Slack’s memory hole at any time now.

Marian 2021-02-26T01:41:50.117400Z

@n2o Have you found the problem? I’m trying to setup clojurescript in clojure project and I get similar ClassNotFoundException com/google/common/collect/Streams

n2o 2021-02-26T21:26:15.120200Z

Jep, manually add the Guava library to your project.

gabo 2021-02-03T16:46:22.088900Z

Hi there. Can you share your deps.edn ? I think you have to add an alias for shadow. I use it like this:

:aliases
 { :ui
  {:extra-deps {thheller/shadow-cljs {:mvn/version "2.11.15"}}}

  :watch
  {:main-opts ["-m" "shadow.cljs.devtools.cli"
               "watch" ":frontend"]}
And select those aliases when prompted by calva

gabo 2021-02-03T16:47:37.089100Z

(if you have shadow-clj on your main deps you could omit the ui alias)

Aleksander Rendtslev 2021-02-03T17:09:31.089300Z

sweet jesus

Aleksander Rendtslev 2021-02-03T17:09:32.089500Z

that did it

Aleksander Rendtslev 2021-02-03T17:09:44.090100Z

Thank you @gldidonna!

gabo 2021-02-03T17:11:17.090300Z

You're welcome πŸ˜„

pez 2021-02-03T17:22:53.090500Z

Thank you @gldidonna!

πŸ˜„ 1
Aleksander Rendtslev 2021-02-03T17:27:29.090700Z

@pez this works perfectly with Fulcro. It allows for evaluating both client and server side with output in the same repl window. So we could update the Calva documentation accordingly

πŸ‘ 1
pez 2021-02-03T17:29:27.091Z

So awesome! We should have a page on http://calva.io about that as well.

seancorfield 2021-02-03T18:28:41.092600Z

@pez given that I installed that .vsix file you linked to, in order to test the hide REPL UI setting, will that Calva install auto-update to new releases as they become available?

seancorfield 2021-02-03T18:29:46.093600Z

(I just fired up VS Code on my Windows/WSL2 laptop and I see it has already sync'd the Calva extension and settings from my Mac desktop -- which always pleases me about VS Code πŸ™‚ )

seancorfield 2021-02-03T18:31:22.094600Z

Hmm, looks like 2.0.158 is what is installed on my laptop so the answer is "yes" -- and my Mac install just needed a reload to pick up that version too. Slick.

pez 2021-02-03T18:38:35.097400Z

@seancorfield VS Code is pretty awesome with the updates and settings sync. πŸ˜ƒ We version our test VSIX builds such they should play together with the auto-update when we make releases. NB: You will probably need to set your options for hiding the REPL UI again, because I renamed it.

bringe 2021-02-03T18:41:36.097600Z

I agree. @aleksander990 A doc addition to explain usage with Fulcro would be great!

bringe 2021-02-03T18:43:22.097800Z

Maybe an update to this section: https://calva.io/jack-in-guide/#about-full-stack-applications And then a new page like "Using Calva with Fuclro" might be good, to go under the "Using Calva with X" section.

2021-02-03T18:47:37.099Z

Hey @pez @brandon.ringe, did you guys do a release recently? I think the slurping/barfing key commands aren't working. Just fyi πŸ‘Ό . I get more comfortable with Calva by the day, and I like it!

bringe 2021-02-03T18:48:30.099400Z

These have been changed recently, check the keybindings in vs code :simple_smile:

bringe 2021-02-03T18:48:59.100100Z

There was an info popup about it when the new version first ran - or should have been at least. It only appears once, informing that some keybindings changed.

bringe 2021-02-03T18:50:55.101800Z

Just a bit of retraining the fingers/brain. The previous slurp/barf shortcuts overrode what some people expect to be navigation shortcuts. Also, ctrl+w now closes tabs as many might expect, instead of expanding the selection (now that's shift+alt+rightArrow

2021-02-03T18:55:25.102200Z

Awesome, thanks

πŸ‘ 1
pez 2021-02-03T18:56:33.103100Z

Changing the bindings back to what you are used to is what I would recommend, @andyfry01.

clyfe 2021-02-03T19:32:16.105700Z

Short update on lsp/kondo memory spike (long thread in lsp): we can introduce some conf in Calva - and folks with low memory can toggle it, such that lsp runs with less memory but takes longer to init a project (just first run until caches are build, it's fast after). This can placate the folks that see freezes and such.

clyfe 2021-02-03T19:32:59.105900Z

Thread here: https://clojurians.slack.com/archives/CPABC1H61/p1612291172229700

bringe 2021-02-03T19:34:27.106900Z

I think the setting would exist in the lsp conf, but yeah, if we can verify that that works, it may be a good option, at least temporarily.

seancorfield 2021-02-03T19:39:46.107200Z

Thanks. Done. cmd-, and type hide. VS Code makes finding this stuff so easy!

pez 2021-02-03T19:43:05.110Z

We should hint a bit about this at http://calva.io. People coming from other editors often bring expectations that makes it easy to miss how easy some things are in vscode. πŸ˜€

pez 2021-02-03T19:44:40.110600Z

A bit in this spirit: https://calva.io/finding-commands/

seancorfield 2021-02-03T19:47:35.110900Z

I have to be honest, I continue to be pleasantly surprised by VS Code, almost on a daily basis... The WSL2 integration on Windows is phenomenal and having the same key bindings and behavior automatically sync'd back and forth between my Mac desktop and my Windows laptop is so much more seamless than what I was used to with Atom (for the previous four or five years!).

seancorfield 2021-02-03T19:48:44.111100Z

And with us being all-in with Atlassian products at work, I love the Jira/BitBucket integration -- and some of my colleagues are getting jealous that I pretty much never have to visit http://atlassian.net: I can do all the ticket/pull request stuff inside VS Code πŸ™‚

πŸ˜€ 1