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`.
worrelsik 2020-12-17T11:52:35.242500Z

I cloned the re-frame.git repository and cd'd into the examples/todomvc directory. Its README tells me to use '''lein-watch''' to kick off a clean build. How does that translate to Jack-in with Calva, i.e. is that enough information to select the project type? It seems to me I should choose '''Leiningen + shadow-cljs''' or '''Leiningen + lein-shadow''', but I don't know really on which grounds I should pick one or the other.

pez 2020-12-17T11:55:27.243700Z

I’ll have to check the example before giving and answer, @roger429. I’ll try to do it in a moment. Remind me if I seem to forget.

worrelsik 2020-12-17T11:58:14.245600Z

@pez Thanks! of course I should try them out myself, but that's more like trial-and-err than making a well-reasoned choice.

worrelsik 2020-12-17T11:59:49.246700Z

I've got the app running now, so now I should try to reproduce the choices I made and attach a mental map to that

pez 2020-12-17T12:26:32.247300Z

I should write some more about this question in general to the Calva docs.

worrelsik 2020-12-17T12:27:39.248400Z

I chose 'Leiningen + lein-shadow' as project-type; ':client' for build to start, and 'watch' as the alias to launch

worrelsik 2020-12-17T12:30:30.250300Z

@pez: I would welcome that; Step 3 on the https://calva.io/connect/ page is for newbies quite cryptic: we don't know yet about project types and profiles, and how to determine what some project on github uses.

pez 2020-12-17T12:41:21.252500Z

Thing is that this (from a bit further down the page) will be true for some time to come: > You will need some basic knowledge about the project and the project type terminologies to answer the prompts. But it should probably be mentioned earlier and there should probably be some pointers about how to figure these things out and encouraging experimentation and such…

pez 2020-12-17T12:42:41.253500Z

There are ways Calva could be smarter, but I have avoided that so far because I am not smart enough to forsee all the kinds of setups ingenious Clojure devs invent… 😃

worrelsik 2020-12-17T12:49:49.256900Z

I agree it's probably some rabbit hole. Maybe we can use a Wiki page to collect some hints, like 'If you see [...] in a file prj.lein, choose profile type [...]' etc. When in due time enough hints are collected, some wisdom may be extracted from that which is worthy to be included on that http://calva.io/connect page.

pez 2020-12-17T12:52:06.258400Z

I think we between us (in this channel) we already have info that should go on the docs page. And probably also Calva can help you find that page when jacking in.

pez 2020-12-17T12:57:50.259200Z

And crowdsourcing more via the wiki is an awesome idea. We should do that as well.

pez 2020-12-17T12:58:09.259600Z

It is publicly editable for a reason.

worrelsik 2020-12-17T13:22:40.263300Z

> And probably also Calva can help you find that page when jacking in. That would be neat, e.g. to show an entry 'Need a clue? Visit https://github.com/BetterThanTomorrow/calva/wiki/Jack-In-Clues' in the drop-down menu. Or change the place-holder text to something like: 'Please select a project type (see [link to wiki-page] for clues)'

pez 2020-12-17T13:29:02.263700Z

I like it!

worrelsik 2020-12-17T13:54:59.264100Z

I took a first stab: https://github.com/BetterThanTomorrow/calva/wiki/Jack-In-Clues

1
2020-12-17T14:17:26.266300Z

This may be an old question but can I use the Calva - Paredit outside of Clojure? - It seems that I remember it changed from being a separate thing to part of Calva generally. I want to use it with Racket and Fennel that I am starting to use VSCode for

pez 2020-12-17T15:12:38.267Z

That is some awesome tips @roger429. Thanks!

pez 2020-12-17T15:19:08.271800Z

@tbrooke There were a time when Calva Paredit was a standalone extension. But it is since then an integrated part of Calva itself. I have tried disentangle it enough to be able to build a standalone extension from it again, but not been able to finish that. However, there was a dev who I spoke to recently, don’t have access to my conversation history though,… anyway, he had also started this in a separate repo. And he said he might have time during christmas to tend more to it. It was not specifically Paredit, but the things in Calva that it relies on. So, we might get there again, but not in a jiffy.

pez 2020-12-17T15:20:20.273Z

All that said, Calva Paredit is quite Clojure specific. I guess it should work on scheme and other code as well, but I am not sure about it. Not familiar enough with those LISPs.

pez 2020-12-17T15:22:38.274300Z

You could try this paredit extension: https://github.com/clptn/code-paredit Which is quite limited compared to Calva’s but Calva users made do with it for quite a while.

pez 2020-12-17T15:23:41.275400Z

There is also this one, which is a fork of old Calva Paredit, which is also quite limited, but probably better than no paredit 😃 https://github.com/ailisp/strict-paredit-vscode

bringe 2020-12-17T16:53:25.275900Z

Thanks for this! I edited the title slightly for more clarification and linked it in the docs here at step 3: https://calva.io/connect/#jack-in-let-calva-start-the-repl-for-you

bringe 2020-12-17T18:38:41.276500Z

Has anyone tried this vsix on Windows?

pez 2020-12-20T10:19:15.280100Z

I've been using my own dev branches lately. Will try to figure out a workflow where I can use the lsp changes at the same time.

bringe 2020-12-20T19:06:34.293500Z

Since I asked this, I installed Windows 10 in a VM on my linux machine and tested lsp. I didn't notice any Windows issues

bringe 2020-12-20T19:06:59.293700Z

There are 1 or 2 issues in the lsp repo about Windows though. I need to check those

2020-12-17T21:54:04.276800Z

Thanks I’ll check them out — I could use Emacs but now that I’m in VS-Code it would be nice to have everything in one editor