Fork me on GitHub
#cider
<
2015-09-23
>
bozhidar08:09:20

@michal: without doing this CIDER can’t match connections and project files

bozhidar08:09:34

the benefits might not be clear when you’re having a single connection

bozhidar08:09:56

but they become apparent when you’re working on several projects at the same time

bozhidar08:09:01

using several connections

malabarba10:09:00

@pandeiro: This lack of syntax highlighting is just a symptom of the fact you're getting an error while the mode tries to load. So the whole mode is gonna have issues.

malabarba10:09:12

But the snippet you posted looks ok

malabarba10:09:21

@michal: @pandeiro: Adding a variable to skip the prompt should make a nice PR simple_smile

pandeiro10:09:46

@malabarba How could I debug this?

malabarba10:09:29

First make sure that's really the form that causes this. It could be some other config or some previous version of that code that still happens to be loaded.

pandeiro10:09:03

Commenting out that portion eliminates the issue. Obviously there's a lot of other wisp being loaded by other packages and my own configuration but this was working fine as-is until about two months ago.

pandeiro10:09:54

I would like to get my custom indenting of -> back but I haven't figured out how to even debug this properly.

malabarba10:09:50

Ok, then do M-x toggle-debug-on-error

malabarba10:09:56

And reproduce the problem.

malabarba10:09:02

What's the backtrace you get?

pandeiro10:09:04

Thanks, I'll check that as soon as I'm at my desk.

ljosa14:09:19

is it possible to work on two projects at a time with cider? in other words, run cider multiple times in the same emacs, connected to different nrepls in different JVMs?

bozhidar14:09:42

cider has supported multiple connections for ages

bozhidar14:09:54

over since version 0.1.8 or 0.2 if memory serves

malabarba14:09:59

ljosa: It's been possible for a while. In the latest snapshots it's also become more automated

ljosa14:09:02

yes!!! my life just got much better! thanks, cider devs!

ljosa14:09:46

(I swear I tried it a few months back without any luck … maybe that's the "more automated" part you're referring to. now, a cider-jack-in just worked.)

bozhidar15:09:48

previous when dealing with more connections you had to manually specify which one to use at any given moment

bozhidar15:09:56

probably many people weren’t aware of this

bozhidar15:09:30

right now we try to figure out the connection matching some project automatically

bozhidar15:09:42

this is easy when people are using cider-jack-in

bozhidar15:09:56

but when using cider-connect an extra step is required

bozhidar15:09:10

specify which is the project for the particular connection

ljosa15:09:20

is or will it be possible to connect the same project to two nrepls, e.g., my local jvm and one running on a server?

malabarba15:09:28

Yes, it's possible. But you'll have to manually cycle between the connections

malabarba15:09:48

(`C-c M-r` I think)

malabarba15:09:59

Cause if two connections are on the same project, CIDER has no way to know which to which server you want to send evaluations.

ljosa15:09:10

excellent. I was worried about client-side per-project state.

malabarba16:09:04

There's a little bit of client side state, but it's generally well updated. Even if it gets confused with a lot of connection switching it can only have some minor cosmetic effects.

sgrove21:09:36

Is there a command to ask cider “which namespace require/use this namespace”?

voxdolo23:09:33

sgrove: with refactor-nrepl you can use cljr-find-usages