Fork me on GitHub
#cider
<
2019-07-25
>
Chase00:07:20

I was getting help today with shadow-cljs and the fix ended up being using this "new" `[nrepl "0.6.0"] dependency instead of the old [cider/cider-nrepl "0.21.1"] dependency I had. Am I understanding that's the new way to do things? Just curious. It does look like the old one is still getting maintained and worked on so I was confused. Another editor tool doesn't work now that I've made the switch and I'm thinking it's related but not sure.

yuhan02:07:18

Any reason why cider-eval commands silently no-op when there is no connection? I've had a few occasions where I forgot to jack-in or the REPL process crashed in the background, and then sat around waiting for an eval command to "complete" when really there was nothing being run.

yuhan02:07:37

It seems like an explicit choice with :auto being passed to cider-map-repls, which then doesn't ensure a current repl.

bartuka03:07:56

something odd is happening, when I use cider-connect and try to use M-. (`cider-find-var`) I got a prompt for Symbol:.... It seems like the functionality to follow the vars are missing

bartuka03:07:23

there are any additional setup other than adding {:plugins [[cider/cider-nrepl "0.22.0-beta8"]]}

dpsutton03:07:03

it usually prompts you for the symbol that you want to find the definition for

dpsutton03:07:13

this is normal behavior, correct?

bartuka03:07:56

no, if I use cider-jack-in to start the repl, it moves the cursor to the definition of the symbol directly

bartuka03:07:27

and even typing the name of the symbol, I get No source location found msg

bartuka03:07:35

cider--jump-to-loc-from-info: No source location

dpsutton03:07:40

seems like cider--should-prompt-for-symbol is what determines to ask for a symbol or try to locate it

dpsutton03:07:43

do you use lsp or anything like that?

bartuka03:07:07

cider along side with clojure-mode and clj-refactor

bartuka03:07:09

let me try with only clojure-mode and cider

dpsutton03:07:11

can you do m-x nrepl-toggle-message-logging and then find a messages buffer? you can watch the messages go back and forth with cider and see what its sending and what it is returning

dpsutton03:07:20

do this with cider-jack-in and also with cider-connect and see what's up

dpsutton03:07:33

is there any docker stuff involved?

bartuka03:07:43

yes, there are

bartuka03:07:57

I will turn it on here

dpsutton03:07:14

> yes there are what do you mean by this?

bartuka03:07:24

sorry, let me explain. I'm doing a setup of a workflow using docker-compose. I know clj-refactor is not working using this. The current setup is running lein repl :headless :port 17019 :host 0.0.0.0 as entrypoint. I can successfully connect in this repl by exposing the 17019 port and running m-x cider-connect

dpsutton03:07:05

are you using a docker container when you run cider-connect?

dpsutton03:07:08

if so, there's an PR open. but its because the source location of your file has a path in the docker container that it doesn't know how to find. ie ~/projects/foo/src/bar.clj is just /src/bar.clj in the docker container

bartuka03:07:09

I run cider-connect in my local emacs gui to connect to the localhost:17019

dpsutton03:07:20

but is that running inside of a docker container

bartuka03:07:51

oh, this is a known issue, so?

bartuka03:07:27

by toggling the log I can see the variable file is not correct with the actual file of my source code

bartuka03:07:42

that's the reason why

dpsutton03:07:24

Yeah. My PR was quick. Needs to be cleaned up a little bit more

bartuka03:07:01

I might get your current solution to have this working

bartuka03:07:02

🙂

dpsutton03:07:52

Grab the patch and clean it up and get it merged if you have time :)

bartuka03:07:26

I'll try to work on it; I was working in another issue related to paredit and clojure-mode

bartuka03:07:18

@dpsutton thanks for the help on this problem. Started with a weird-blind-issue and finished with a PR to be made lol

cider 4
bozhidar06:07:43

> I was getting help today with shadow-cljs and the fix ended up being using this “new” `[nrepl “0.6.0"] dependency instead of the old [cider/cider-nrepl “0.21.1”] dependency I had. Am I understanding that’s the new way to do things? Just curious. It does look like the old one is still getting maintained and worked on so I was confused. Another editor tool doesn’t work now that I’ve made the switch and I’m thinking it’s related but not sure. (edited)

bozhidar06:07:43

The nrepl and cider-nrepl packages are very different, so I don’t quite understand what you mean. nrepl is the REPL server itself and cider-nrepl is a collection of nREPL middleware.

bozhidar06:07:25

> Any reason why cider-eval commands silently no-op when there is no connection? I’ve had a few occasions where I forgot to jack-in or the REPL process crashed in the background, and then sat around waiting for an eval command to “complete” when really there was nothing being run.

bozhidar06:07:21

@qythium Do they? I thought most commands had some check about the presence of a connection. Unfortunately its pretty easy to forget to add one…

practicalli-johnny09:07:03

Cider eval commands do put a message in the mini-buffer if you call them without a repl.

bozhidar09:07:05

Generally it seems it’s better to push those checks lower to the nREPL client code.

bozhidar09:07:18

(so you’ll get them “for free”)