Skip to content

:select nil in popup-rules for cider REPL buffer causes error on cider-jack-in-cljs #2515

@glittershark

Description

@glittershark

Expected behavior

cider-jack-in-cljs and cider-jack-in-clj&cljs both launch a repl, then launch figwheel as a sibling

Actual behavior

If I'm in a cljs file and I run either of the above, I get the following messages:

[nREPL] Starting server via /usr/bin/lein update-in :dependencies conj \[nrepl\ \"0.4.5\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.3.10\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.19.0-SNAPSHOT\"\] -- repl :headless :host localhost...
[nREPL] server started on 45765
[nREPL] Establishing direct connection to localhost:45765 ...

Followed by the following error:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  nrepl-send-request(("op" "eval" "code" "(when (clojure.core/resolve 'clojure.main/repl-requires)\n       (clojure.core/map clojure.core/require clojure.main/repl-requires))" "inhibit-cider-middleware" "true") #f(compiled-function (resp) #<bytecode 0x1ffd049241ad>) nil nil)
  nrepl-send-sync-request(("op" "eval" "code" "(when (clojure.core/resolve 'clojure.main/repl-requires)\n       (clojure.core/map clojure.core/require clojure.main/repl-requires))" "inhibit-cider-middleware" "true") nil)
  cider-repl-require-repl-utils()
  cider-repl-init(#<buffer *cider-repl urb/ciml:localhost:45765(pending-cljs)*>)
  cider--connected-handler()
  run-hooks(nrepl-connected-hook)
  nrepl-start-client-process("localhost" 45765 #<process nrepl-server> #f(compiled-function (_) #<bytecode 0x1ffd049b1575>))
  cider-nrepl-connect((:project-dir "~/code/urb/ciml/" :jack-in-cmd "/usr/bin/lein update-in :dependencies conj \\[nrepl\\ \\\"0.4.5\\\"\\] -- update-in :dependencies conj \\[cider/piggieback\\ \\\"0.3.10\\\"\\] -- update-in :plugins conj \\[refactor-nrepl\\ \\\"2.4.0\\\"\\] -- update-in :plugins conj \\[cider/cider-nrepl\\ \\\"0.19.0-SNAPSHOT\\\"\\] -- repl :headless :host localhost" :host "localhost" :port 45765 :project-dir "~/code/urb/ciml/" :server #<process nrepl-server> :server-command "/usr/bin/lein update-in :dependencies conj \\[nrepl\\ \\\"0.4.5\\\"\\] -- update-in :dependencies conj \\[cider/piggieback\\ \\\"0.3.10\\\"\\] -- update-in :plugins conj \\[refactor-nrepl\\ \\\"2.4.0\\\"\\] -- update-in :plugins conj \\[cider/cider-nrepl\\ \\\"0.19.0-SNAPSHOT\\\"\\] -- repl :headless :host localhost" :cljs-repl-type figwheel :repl-init-function #f(compiled-function () #<bytecode 0x1ffd049b1561>) :session-name nil :repl-type "pending-cljs"))
  cider-connect-sibling-cljs((:project-dir "~/code/urb/ciml/" :jack-in-cmd "/usr/bin/lein update-in :dependencies conj \\[nrepl\\ \\\"0.4.5\\\"\\] -- update-in :dependencies conj \\[cider/piggieback\\ \\\"0.3.10\\\"\\] -- update-in :plugins conj \\[refactor-nrepl\\ \\\"2.4.0\\\"\\] -- update-in :plugins conj \\[cider/cider-nrepl\\ \\\"0.19.0-SNAPSHOT\\\"\\] -- repl :headless :host localhost") #<buffer  *nrepl-server urb/ciml:localhost*>)
  #f(compiled-function (server-buffer) #<bytecode 0x1ffd04948429>)(#<buffer  *nrepl-server urb/ciml:localhost*>)
  nrepl-server-filter(#<process nrepl-server> "nREPL server started on port 45765 on host localhost - nrepl://localhost:45765\n")

Steps to reproduce the problem

I can reproduce this on a fresh project created with the lein-re-frame template:

lein new re-frame repro +cider

Open any cljs buffer in the resulting project, and run M-x cider-jack-in-cljs RET fighweel RET

Note that I have tried the troubleshooting tips mentioned by #1390 (eg reinstalling cider), and that didn't appear to help

Environment & Version information

CIDER 0.19.0snapshot

CIDER version information

;; CIDER 0.19.0snapshot, nREPL 0.2.12
;; Clojure 1.8.0, Java 1.8.0_181

Lein version

❯ lein --version
Leiningen 2.8.1 on Java 1.8.0_181 OpenJDK 64-Bit Server VM

Emacs version

26.1

Operating system

Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions