Fork me on GitHub
#cider
<
2018-06-09
>
bozhidar04:06:16

You need the middleware, as internally it uses the cljs-tooling where completing logic is.

bozhidar04:06:47

@dpsutton @richiardiandrea The idea is that you might do something that changes the REPL type and it’d be nice for this to be detected and switch the type automatically. The detection is the track-state middleware and it just checks for the presence of some piggieback vars. Probably we can make it more robust.

bozhidar04:06:26

Generally we wanted to not need a different cider-connect function and be able to detect code that converts REPLs between clj and cljs.

bozhidar04:06:25

I’m assuming that fixing the middleware is not going to be complex, but I haven’t paid this much attention as I’m stretched super thin and I use cljs only to test CIDER.

dpsutton04:06:17

I was talking about this today. We need a real world complex cljs app as a reference for testing CIDER

richiardiandrea04:06:43

So @bozhidar are you then saying that the track state middleware is most likely broken? Because according to the scenario I posted it always returns clj

richiardiandrea04:06:05

I basically observed a :changed-namespace message coming on repl "upgrade". And it was always containing clj

xtreak2906:06:01

When I do cider-jack-in it gives Wrong type argument: stringp, package-desc. I am on emacs 26.1 on Mac OS. It gives the same error for even cider-version

xtreak2906:06:08

Please ignore the above upgrading works for now 🙂

bozhidar07:06:12

> I was talking about this today. We need a real world complex cljs app as a reference for testing CIDER

bozhidar07:06:35

I don’t think we need it to be complex, but we certainly need a proper testing app in general. 🙂

bozhidar07:06:49

> So @bozhidar are you then saying that the track state middleware is most likely broken? Because according to the scenario I posted it always returns clj

bozhidar07:06:59

Yes, it’s likely broken. Shortly after we started work on this @malabarba and me both got sidetracked and this was left in a somewhat immature state.

magra11:06:14

When I want to interrupt cider in the repl I can use c-c c-b. How can I stop an evaluation I executed using c-x c-e in a clj buffer?

magra12:06:03

I tried to stop a slurp to a url where something seems to be wrong. Should this be stoppable that way?

bozhidar16:06:50

It should be. If it’s not - you found some bug.

magra19:06:32

On my machine (Thread/sleep 10000) can be interrupted. (slurp "http://joyofclojure.com/hello") can not.

magra19:06:16

cider-version 0.18.0snapshot 20180607.2155

richiardiandrea23:06:56

lazy dev q. how to enable logging of nrepl messages again? 😄

dpsutton23:06:39

nrepl-toggle-message-logging

dpsutton23:06:46

@richiardiandrea ^

richiardiandrea23:06:09

awesome thanks a lot, I was reading 😄

dpsutton23:06:09

no worries!