Fork me on GitHub
#calva
<
2021-10-07
>
Hukka08:10:29

Bit related to my earlier questions about completions, I couldn't find anything except a very brief mention from Slack years ago… has there been any discussion or thoughts about getting https://github.com/alexander-yakushev/compliment working with calva?

pez08:10:35

It should work, doesn’t it?

Hukka09:10:47

Uh, how? I couldn't find anything when I tried to google for it

pez13:10:44

Well, afaiu compliment is what is being used by cider-nrepl when we look for completions. Maybe I have that wrong. Can you elaborate on what it is you lack that you think compliment would provide?

Hukka18:10:38

I think cider-nrepl has it's inbuilt thing, which is being separated into the incomplete library

Hukka18:10:16

As to what it provides, not sure! But it sure does get mentioned as the… ah… most complete completion system for clojure

Hukka18:10:37

And it's supported in pretty much every relevant editor except calva and cursive

Hukka18:10:01

Kinda intrigued to set it for neovim to give it a spin :thinking_face:

pez20:10:51

Well, at least compliment is listed as leveraged by cider-nrepl here. https://github.com/clojure-emacs/cider-nrepl/blob/master/README.md#hall-of-fame

Hukka06:10:31

Hm hm. I'm not quite yet at the point where I would really dig in to the source an see what' exactly is happening with calva and completion, all the way through the stack. But getting closer.

pez06:10:16

It’s pretty straightforward. Calva sends the complete op to the nREPL server which is assumed to use cider-nrepl to perform it. It’s handled here: https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/complete.clj Where you can see that it is really compliment that takes care of it.

pez06:10:48

I am still curious about what it is you are missing from Calva’s completions? Because whatever it is, it can’t be compliment. 😃

Hukka07:10:30

The biggest problem is how it just refuses to complete without writing more than I'd like. And often it doesn't seem to complete from required namespaces, until it at some point starts doing it. It somehow feels like it's just not completing to what I want, but I can't put my finger on it exactly (not that I have tried to examine it very rigorously) and I guess I was hoping for an easy solution by potentially switching the completion engine.

Hukka07:10:25

One of the best things I like about it is how it does complete to things that do not exist in my code, or any required namespaces, but only in the repl. For example when exploring databases, it makes it much, much handier to drill into the results

pez07:10:43

I think we can fix some of those. You should file an issue about it.

Hukka07:10:43

Oh, ok. I had the impression that the problem is somewhere below (or is it above :?) calva

Hukka07:10:03

Hm, that should have been a different thread. I'll move it.

pez07:10:31

I think the issue is in Calva.

fadrian14:10:21

I'm attempting to jack in from a deps.edn project. Up until yesterday, everything was fine. This morning, when I try to jack in, I'm getting the following: Error building classpath. zip END header not found java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1607) at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1497) ... Jack-in process exited. Status: 1 Since this started today, and I've changed nothing about the deps.edn file, I have no idea about why this is happening. Any suggestions?

fadrian14:10:20

Well, it started working again. I have no idea why.

pez20:10:03

Super strange, @fadrian! It doesn’t seem to be something coming from Calva, but with things like that, who knows...

pez20:10:55

Dear Calva friends, it’s that time of year again, can we have some attention, comments, thumbs up on this VS Code issue, please? https://github.com/microsoft/vscode/issues/3220#issuecomment-430124153 It would enable us to create super awesome evaluation experiences. Thanks in advance 🙏

👍 1