Fork me on GitHub
#cider
<
2021-08-20
>
anonimitoraf11:08:55

Hi guys, anyone getting the same error for CIDER's company completion previews? I wasn't getting this error before. Not sure what changed

bozhidar12:08:09

To my knowledge there's only 1 commit that added the previews and that's it.

bozhidar12:08:43

I have to admit I've never tried those fancy icons.

anonimitoraf12:08:18

Oh, I can try removing the icons. Do you mind linking me that commit @bozhidar?

anonimitoraf12:08:23

Actually, could it be the fact that I don't have cider-nrepl running in my server? I had to disable it because it was causing my AWS t2.small instance to use up 100% CPU constantly

djm12:08:27

They used to work for me, when I used company (icons and all). It looks like you’re using Doom. It may have changed since I last used it, but I think I needed (company +childframe) in my ~/.doom.d/config.el get get previws.

anonimitoraf12:08:52

Yep I've got that too

anonimitoraf12:08:14

I can also try rolling back CIDER to an older commit

anonimitoraf13:08:38

To clarify, the commit you linked @bozhidar adds these right?

bozhidar13:08:41

Nope, it adds the icons in front of the candidate names.

bozhidar13:08:25

> Actually, could it be the fact that I don't have cider-nrepl running in my server?

bozhidar13:08:56

Depends on the version of nREPL you're using. Newer versions of nREPL offer some built-in completion that should work more or less the same, but you might have hit some edge case with that completion system.

anonimitoraf14:08:24

Oh, weird. I rolled back CIDER but still have those icons :thinking_face: Ah thanks, good to know. I'll try out the newest nREPL

anonimitoraf15:08:49

BTW, found out that it is indeed because I don't have cider-nrepl installed

bozhidar16:08:19

Hmm, that's weird. I wonder if the docstring is missing from the nREPL response. Hard to tell without the full backtrace, though.

anonimitoraf17:08:16

The backtrace disappears when I move my mouse/press a key. Is this screenshot helpful?

solf17:08:24

You can turn on nrepl logging via M-x nrepl-toggle-message-logging

solf17:08:37

Ah sorry, disregard my message, it’s not nrepl logging that you’re looking for

anonimitoraf17:08:02

Oh right. I tried it out nonetheless and got this:

bozhidar05:08:15

(-->
  id         "35"
  op         "lookup"
  session    "80f17f7f-6dbd-49e6-9b01-6e7669cf6cfe"
  time-stamp "2021-08-21 03:12:31.431575916"
  ns         #("integration.eventbrite" 0 22 (fontified nil help-echo cider--help-echo cider-locals nil cider-block-dynamic-font-lock t face font-lock-type-face))
  sym        #("taoensso.timbre/*context*" 0 1 (type "var" ns nil))
)

bozhidar05:08:18

I wonder if those fontified strings are not causing some problem.

bozhidar05:08:43

Normally they shouldn't be, but I definitely have to strip those properties.

anonimitoraf08:08:58

Oh right. Weird, seems to all work fine when cider-nrepl is installed for me 🙂

bendlas18:08:00

I'd like to connect to an nrepl on a unix domain socket (the --socket option), but cider-connect seems to expect host and port. has anybody done this setup?