Fork me on GitHub
#cider
<
2017-02-27
>
bozhidar13:02:58

@hans @pesterhazy I’ll see what we can do to improve the situation in CIDER, but it seems to me that nREPL will need to be patched as well

bozhidar13:02:21

it listens on localhost, but it probably doesn’t play with IPv6 for some reason

bozhidar13:02:35

haven’t looked in the code closely, but I assume the fix would be simple enough

plexus16:02:50

I seemed to have really messed up my setup this time... does this sound familiar to anyone? When I cider-jack-in, a prompt pops up in the minibuffer saying Lisp expression:

plexus16:02:54

when I enter something there (say (+ 1 1)) I get this:

plexus16:02:16

Debugger entered--Lisp error: (error "Not an nREPL dict object: (+ 1 1)")
  signal(error ("Not an nREPL dict object: (+ 1 1)"))
  error("Not an nREPL dict object: %s" (+ 1 1))
  nrepl-dict-get((+ 1 1) "interns")
  cider-resolve-ns-symbols((+ 1 1))
  cider-refresh-dynamic-font-lock((+ 1 1))
  cider-set-buffer-ns((+ 1 1))
  cider-repl-set-initial-ns(#<buffer *cider-repl App*>)
  cider-repl-init(#<buffer *cider-repl App*>)
  cider--connected-handler()
  run-hooks(nrepl-connected-hook)
  nrepl-start-client-process(nil 42389 #<process nrepl-server>)
  nrepl-server-filter(#<process nrepl-server> "nREPL server started on port 42389 on host 127.0.0.1 - )

plexus16:02:40

The *nrepl-server* buffer looks ok

plexus16:02:43

WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: mranderson047.toolsanalyzerjvm.v0v6v9.toolsanalyzer.v0v6v7.clojure.tools.analyzer.utils, being replaced by: #'mranderson047.toolsanalyzerjvm.v0v6v9.toolsanalyzer.v0v6v7.clojure.tools.analyzer.utils/boolean?
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: mranderson047.toolsanalyzerjvm.v0v6v9.toolsanalyzer.v0v6v7.clojure.tools.analyzer, being replaced by: #'mranderson047.toolsanalyzerjvm.v0v6v9.toolsanalyzer.v0v6v7.clojure.tools.analyzer.utils/boolean?
nREPL server started on port 42389 on host 127.0.0.1 - 

plexus16:02:37

The *cider-repl* buffer is empty, but when I press empty I get a prompt saying nil> 😂

plexus16:02:10

hmmm this seems relevant

plexus16:02:13

(--> 
  op  "eval"
  code  "(str *ns*)"
  enlighten  "true"
  session  "b72d41fa-6418-441f-bc52-cc8e7138c986"
  id  "4"
)
(<-- 
  ex  "class java.lang.Exception"
  id  "4"
  root-ex  "class java.lang.Exception"
  session  "b72d41fa-6418-441f-bc52-cc8e7138c986"
  status  ("eval-error")
)
(<-- 
  err  "Exception Debugger not initialized  user/eval27659/fn--27660 (form-init2222324724219143458.clj:1)
"
  id  "4"
  session  "b72d41fa-6418-441f-bc52-cc8e7138c986"
)

jfntn16:02:52

ugh I remember having that issue a while ago but can’t remember how it got resolved… what versions are you using?

plexus16:02:44

Version: 20170129.1941

plexus16:02:56

I thought it was something with my project, but went back to an older commit that should be good and still getting this. same on a different project... cleaned out all generated files (git clean -xfd), nuked ~/.m2, rebooted emacs...

jfntn16:02:06

That’s a shot in the dark but did you try reinstalling the emacs packages?

jfntn16:02:19

I’m using the same version btw

plexus16:02:50

yeah that's the latest version on melpa, let me try reinstalling.

plexus17:02:48

reinstall didn't help, I removed .emacs.desktop and that did the trick

plexus17:02:04

(removed desktop file then restarted)

plexus17:02:23

so I guess some emacs variables had gotten out of wack

plexus17:02:59

@bozhidar I kept the desktop file, do you think it's worth it to investigate further?

fenton18:02:40

is there a way to not have two repls start up with a cider-jack-in-clojurescript command. I don't want the clj repl only the cljs repl.

dpsutton19:02:04

i'm not sure what a desktop file is but i'm willing to take a look

dpsutton19:02:19

it's on my radar

dpsutton19:02:26

i hate that cljs is a callback to creation of clj

dpsutton19:02:08

@plexus if you want to send me the desktop file i'll root around in it

fenton19:02:24

@dpsutton ok cool thanks.

plexus19:02:27

@dpsutton a desktop file is emacs way of storing and restoring state like open buffers between restarts

dpsutton19:02:47

if you don't mind sharing i'll root around

plexus19:02:53

looking through it it seems it had cider-enlighten-mode enabled in a bunch of buffers, that's the most likely culprit

dpsutton19:02:16

i changed some of the signatures in that code pathway to take connections

dpsutton19:02:26

so i was wondering if we had an argument out of order somewhere

plexus19:02:39

yup, enabling cider-enlighten-mode before doing cider-jack-in reproduces it

plexus19:02:15

do you need me to file a ticket or do you know enough?

dpsutton19:02:49

for sure file a ticket

dpsutton19:02:01

but i'll start chasing down that thread

plexus19:02:36

uuuuggh copying code from Slack removes newlines 😞

mikerod19:02:55

Has anyone tried to do any debugging of breakpoints in Java code that was invoked from Clojure in the REPL when using Emacs/Cider?

mikerod19:02:35

I know Cider has a Clojure-centric (and nice) debugger, however, what about when you are interop’ing with Java libs and want to see what is going on there with a “traditional” style of Java debugging.

pesterhazy20:02:46

@hans, I don't think contrib projects take PRs, as a rule