Fork me on GitHub
#cider
<
2018-09-06
>
andrea.crotti09:09:15

morning! I finally moved to 0.18, and trying to start clj and cljs repl I get

Debugger entered--Lisp error: (error "Selecting deleted buffer")
  cider--gather-connect-params(nil #<killed buffer>)
  cider--gather-session-params(("src/finops-admin:localhost:9009" #<killed buffer>))
  #f(compiled-function (ses) #<bytecode 0x45d2d025>)(("src/finops-admin:localhost:9009" #<killed buffer>))
  #f(compiled-function (elt) #<bytecode 0x455edfe5>)(("src/finops-admin:localhost:9009" #<killed buffer>))
  mapc(#f(compiled-function (elt) #<bytecode 0x455edfe5>) (("src/finops-admin:localhost:9009" #<killed buffer>)))
  seq-do(#f(compiled-function (elt) #<bytecode 0x455edfe5>) (("src/finops-admin:localhost:9009" #<killed buffer>)))
  seq-find(#f(compiled-function (ses) #<bytecode 0x45d2d025>) (("src/finops-admin:localhost:9009" #<killed buffer>)))
  cider--check-existing-session((:project-dir "~/src/finops-admin/"))
  cider-jack-in-clj&cljs(nil)
  funcall-interactively(cider-jack-in-clj&cljs nil)
  call-interactively(cider-jack-in-clj&cljs record nil)
  command-execute(cider-jack-in-clj&cljs record)
  helm-M-x(nil #("cider-jack-in-clj&cljs" 0 22 (match-part "cider-jack-in-clj&cljs")))
  funcall-interactively(helm-M-x nil #("cider-jack-in-clj&cljs" 0 22 (match-part "cider-jack-in-clj&cljs")))
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)

andrea.crotti09:09:39

(from M-x cider-jack-in-clj&cljs)

andrea.crotti09:09:42

anyone seen that before?

andrea.crotti09:09:01

actually also jack-in-clj does the same

andrea.crotti09:09:08

ah actually I tried another project and it works fine there

andrea.crotti09:09:41

so maybe related with these settings?

(eval . (cider-register-cljs-repl-type
           'figwheel+integrant
           "(do (require 'figwheel-sidecar.repl-api)
               (require 'integrant.repl)
               (integrant.repl/go)
               (figwheel-sidecar.repl-api/cljs-repl))"))

andrea.crotti09:09:55

(plus (cider-default-cljs-repl . figwheel+integrant))

andrea.crotti10:09:09

looking at the docs https://cider.readthedocs.io/en/latest/clojurescript/ it looks like I'm still doing the right thing though

andrea.crotti10:09:33

yeah I saw there is an existing issue about that as well, so at least I'm not alone

ackerleytng16:09:13

has anyone seen this error in process filter: cider-stacktrace-render-frame: Format specifier doesn’t match argument type ?

ackerleytng16:09:30

;; CIDER 0.18.0 (Saigon), nREPL 0.2.13
;; Clojure 1.9.0, Java 1.8.0_172

mikerod22:09:45

cider-jack-in via lein seems to be using a version of Java that I don’t have setup anywhere else. I don’t think that makes sense though. How would cider-jack-in be getting the env to use for lein? e.g. what if the LEIN_JAVA_CMD was set to something

dpsutton22:09:00

run which lein from command line and (cider--resolve-command "lein") from emacs and compare

dpsutton22:09:22

the system path isn't necessarily what emacs can see. it has its own notion of exec-path

mikerod22:09:02

Will look into that.

mikerod22:09:08

Yeah, it’s pretty confusing to debug

dpsutton22:09:47

if you need an environmental variable there i don't see a good way to do so. see cider--update-jack-in-cmd to see how the command is built and there's no option to prepend that i can see

mikerod22:09:22

I don’t think I need one

mikerod22:09:27

just trying to figure out why things were different

mikerod22:09:36

if I do my own lein repl :headless, then cider-connect to it things are fine

mikerod22:09:46

when cider-jack-in tries, it fails with its lein repl :headless cmd

mikerod22:09:09

it’s an “xml bind” class missing thing, so I am suspecting somehow it is trying to run with a different Java version (I’m expecting jdk8, but module system stuff comes in 9+), but don’t really know

dpsutton22:09:22

that sounds like java 9 issues

mikerod22:09:49

yes, I’m expecting to use Java 8. I do have others installed on computer though, but not the default

mikerod22:09:56

and not what lein -version reports

mikerod22:09:13

I guess it’d be good to get ahold of the lein that cider is using and do a lein -version on it to see

mikerod22:09:22

I can dig around some

mikerod22:09:36

when I tried, cider--resolve-command, it said symbol not found

mikerod22:09:56

still cider-version 0.16.0 , so perhaps things have changed

mikerod22:09:07

(I should look into upgrading soon)

dpsutton22:09:03

i'm checking out 0.16. give me one second

dpsutton22:09:01

(executable-find "lein") is what that ran

mikerod02:09:18

@U11BV7MTK Thanks! Sorry just saw this. I will try this out then soon.

dpsutton22:09:47

i'm not very JVM-y but you can check (getenv "JAVA_HOME") versus echo $JAVA_HOME from a shell

vigilancetech23:09:31

so what are the instructions for boot/cljs now?

richiardiandrea23:09:42

@vigilancetech you are the first one asking this, there is a pending issue with that at the moment