Fork me on GitHub
#calva
<
2021-01-01
>
Faris06:01:53

Thank you for all your work @pez and the rest of the Calva team!

❤️ 2
calva 1
practicalli11:01:47

Happy new year. Is there a list of Calva function names or some API docs? I'd like to add key bindings to VSpaceCode that call Calva functions. For example, defining , e f to evaluate a top level form by calling a function such as calva.evalCurrentTopLevelForm Alternative, I guess I could clone the Calva project and poke around and hopefully use auto-complere to discover function names. Thanks.

pez11:01:43

If you open the Calva extension in the Extensions pane, there is a tab there Feature Contributions and in there you find a section for Commands. Most commands take no arguments.

👍 1
practicalli00:01:20

This looks really useful, thanks. Is there a way in VS Code command pallet to show all the Calva related functions?

practicalli03:01:24

I have some of the most useful key bindings added to vspacecode and they seem to work very well. There are lots of useful key bindings in the Evaluation sub-menu There are still quite a few key bindings to add (I had forgotten how tedious and error prone writing json can be). I've only needed to over-ride the Calva escape key binding with space+escape . I've added a , e l key binding to clear all evaluations as well

pez10:01:19

Awesome! Let’s see when you come to paredit. Haha.

practicalli17:01:03

paredit seems just as straight forward. There seem to be more paredit commands than I am familiar with, so will require a bit of though about the keys to use The rewrap function is part of refactor in Spacemacs, but it makes sense to add it in structured editing using the same key binding as Calva - i.e. using the ({[" pscq keys I believe I can skip the selecting s-expressions of paredit, as VSpaceCode already has the same selection tools that seem to work.

pez11:01:29

I’d be very interested in publishing any bindings you produce that way on http://calva.io somewhere.

pez11:01:33

Some (I guess most) shortcuts are contextual, using the when clause. I don’t know what VSpaceCode allows, but anyway, to find the when clauses, open the Keyboard Shortcuts pane and look for the commands.

👍 1
practicalli17:01:53

Initially starting with just languageId, adding any when clauses if required

Eugen11:01:08

happy new year !

Eugen11:01:28

is there a way to reload compiled classes in Calva? Right now I just close vscode, open and re-jack-in . I compile java classes with gen-class that I need to reload

Eugen11:01:52

or at least a command to restart and re-jack in without closing vscode ?

roelof11:01:57

@eugen.stan happy new year from the Netherlands

parrot 2
🎆 1
pez12:01:30

Happy New Year, @eugen.stan! I’m not sure what it takes to reload compiled classes. But StackOverflow suggests to leave a (comment (compile ')) in the file. Where the comment hides the compile command from itself. Then you should be able to use Calva’s Evaluate Top Level Form on that.

👍 1
pez12:01:57

To restart the REPL, if it is started with Jack-in, you can use the Disconnect REPL command. I’m not sure that is going to stay like that, because it is a bit weird that disconnect also jacks out, I think. But what you can rely on to remain is that if you jack-in again, the process will start with jacking out. So I change my suggestion to “Just jack in again” 😃 .

👍 1
pez14:01:02

New Year’s release of Calva, v2.0.144, with these changes: • https://github.com/BetterThanTomorrow/calva/issues/915https://github.com/BetterThanTomorrow/calva/issues/910https://github.com/BetterThanTomorrow/calva/issues/904 See these docs for info about loading current namespace in the repl window https://calva.io/output/#load-current-namespace

👍 1
🎆 2
roelof14:01:53

installling right now

calva 2
roelof15:01:16

are there here some people who work in linux ?

Eugen17:01:28

I work on linux

roelof17:01:11

oke, I try to find out if there is a problem wth my setip or a problem in a crux tutorial

roelof17:01:28

expeciallty the entity-history part

roelof17:01:49

with my it hangs and with the tutorial maker it works