Fork me on GitHub
#cider
<
2019-10-03
>
bozhidar06:10:16

FYI - I plan to cut a new CIDER release over the weekend. If someone wants to get some fixes in - now would be the time to do so. 🙂

bananadance 8
cider 4
orestis12:10:03

If I throw ex-info with some data assigned to it, should CIDER show the ex-data somehow in the *cider-error* buffer? I'm still in cider 0.21.0 btw.

orestis12:10:54

Aha, CIDER does show the ex-data but not when I attach a "causing" exception.

tianshu13:10:11

Hi, will the clojurescript project size affect the completion speed? I feel like the completion in my project is a little bit slow. But it's just 6k lines of clojurescript.

bozhidar13:10:00

@doglooksgood Did this slowdown begin with CIDER 0.22? Might be something to do with the new cljs completion we employ there.

tianshu13:10:52

maybe, but I'm not sure. I see there's a new option to disable the enhancement cljs completion.

tianshu14:10:44

in my case, the option seems doesn't work. I'm on version 20190926.701.

tianshu14:10:01

😢 After upgrade, cider-find-var is broken.

bozhidar14:10:47

The option was introduced yesterday. 🙂

bozhidar14:10:00

I don’t recall any changes to cider-find-var recently. What exactly is broken for you?

tianshu14:10:44

If I run cider-find-var, it will freeze for a while, then prompt for Symbol:

dpsutton15:10:34

does it work after it prompts for Symbol:?

tianshu15:10:30

@dpsutton No, If I input the symbol name, it will freeze again, then timeout.

tianshu15:10:51

I hope to provide more information, but how?

dpsutton15:10:55

can you enable nrepl message logging and see what's up?

tianshu15:10:28

@dpsutton do you mean the message in nrepl buffer?

dpsutton15:10:54

m-x nrepl-toggle-message-logging

dpsutton15:10:04

invoke the find-var, then check out the (nrepl) messages buffer

tianshu15:10:48

This error also occur with eldoc.

tianshu15:10:00

I found it in nrepl buffer

dpsutton15:10:15

can you check the nrepl messages buffer?

tianshu15:10:21

yes, I'm trying

tianshu15:10:20

@dpsutton I expand the errors, it's pretty long.

dpsutton15:10:54

can you just grab the messages where you are looking for the var?

dpsutton15:10:15

don't need everything. its just a series of requests and responses. so find the requests that interest you. i think op will be "find-var" maybe?

tianshu15:10:26

(-->
  id         "10"
  op         "eldoc"
  session    "b51c61f3-0280-4ed9-8a48-fa9807d4e826"
  time-stamp "2019-10-03 23:18:33.774739750"
  ns         "cat-lotto.core"
  symbol     "cache/api-cache"
)
(-->
  id         "11"
  op         "eldoc"
  session    "b51c61f3-0280-4ed9-8a48-fa9807d4e826"
  time-stamp "2019-10-03 23:18:33.847791097"
  ns         "cat-lotto.core"
  symbol     "mount/start"
)
(<--
  id         "9"
  session    "b51c61f3-0280-4ed9-8a48-fa9807d4e826"
  time-stamp "2019-10-03 23:18:33.940008113"
  err        "ERROR: Unhandled REPL handler exception processing message {:op eldoc, :ns cat-lotto.core, :symbol mount/start, :session b51c61f3-0280-4ed9-8a48-fa9807d4e826, :id 11}
"
)
(<--
  id         "9"
  session    "b51c61f3-0280-4ed9-8a48-fa9807d4e826"
  time-stamp "2019-10-03 23:18:33.959079063"
  err        "ERROR: java.lang.RuntimeException: EOF while readingUnhandled REPL handler exception processing message 
{:op eldoc, :ns cat-lotto.core, :symbol cache/api-cache, :session	at clojure.lang.Util.runtimeException(Util.java:221) b51c61f3-0280-4ed9-8a48-fa9807d4e826, :id 10}

"
)
I think this is it

tianshu15:10:40

same error will occur on find-var and eldoc.

tianshu15:10:33

looks like some form is not sent completely? the error says EOF.

bozhidar15:10:56

@doglooksgood Seems your clojuredocs cache is corrupted.

bozhidar15:10:05

Probably deleting it will fix the problem.

tianshu15:10:12

maybe is because I stick the nrepl at version 0.4.5?

tianshu15:10:22

you mean .cpcache?

bozhidar15:10:25

I think the current CIDER snapshot suppresses all such errors.

bozhidar15:10:52

No, it’s something like clojuredocs-export.edn. Don’t recall the exact file name.

tianshu15:10:22

emmm, where can I find this file?

tianshu15:10:07

Oh, I know, .cache/orchard?

tianshu15:10:16

just deleted it, now restart cider

bozhidar15:10:21

Yep, that’s the one.

tianshu15:10:04

emm, the same problem

tianshu15:10:46

@bozhidar that file export.edn in my case is not finished. It ends with something like:

{:added "1.0",
  :ns "clojure.core",
  :name "some",
  :file "clojure/core.clj",
  :static true,
  :type "function",
  :column 1,
  :see-alsos
  [:clojure.core/every?
   :clojure.core/not-any?
   :clojure.core/keep
   :clojure.core/ke

bozhidar15:10:28

That’s why CIDER blows up for you. It didn’t download properly for some reason.

bozhidar15:10:41

You can just retrieve it manually and replace whatever you current have.

tianshu15:10:34

this file will not change during development?

bozhidar15:10:50

No, it’s lookup only.

tianshu15:10:48

very sad to say, the network is always a huge problem in china.

tianshu15:10:19

thank you very much!

bozhidar16:10:45

You’re welcome!

Drew Verlee16:10:26

Hi cider lovers. I sometimes have a clojure test suite where i just want to run the "tests" at a "testing" point and all their children. e.g

deftest
    testing
       testing <--------- run this
             is awesome
             is really awesome
       testing <--------- not this
             is fail
i'm skimming the docs and the way to do this isn't jumping out at me. I know i can comment the code out, is there another way 🙂

bozhidar16:10:57

@drewverlee I think this can’t be done, as what CIDER does internally is run the function created by the deftest macro.

Drew Verlee16:10:38

Ah ok. Thanks, at least i was right about the commands i was seeing. I had a bit of a head scratchier for a moment because i thought i was targeting a testing tree and i was actually getting everything in the macro 😖

zane19:10:30

I'm noticing some strange behavior when jacked into a deps.edn ClojureScript project.

zane19:10:03

When I start typing in a comment block I first see this printed after the third character or so typed:

{"type":"result","repl":"clojure-agent-send-off-pool-4","status":"success","value":"false"}

zane19:10:16

Then I start getting repeated CIDER middleware errors.

zane19:10:44

I'm on 0.22.1.

zane20:10:44

What on earth?