-
-
Notifications
You must be signed in to change notification settings - Fork 653
Closed
Labels
Description
Expected behavior
After running cider-jack-in-clojurescript
, cider-load-buffer
loads the cljc buffer in both the Clojure and ClojureScript REPLs per the cider-load-buffer
docstring.
Actual behavior
The buffer is evaluated in the Clojure REPL but not the ClojureScript REPL.
Steps to reproduce the problem
- Check out this sample project: https://github.com/leppert/cljc-bug
- Open src/cljc_bug/core.cljc
- Run
cider-jack-in-clojurescript
C-c M-n
to load the namespace. Note: this works correctly in both REPLsC-c C-k
to eval the buffer- Calling
(foo "bar")
in the Clojure REPL will now correctly printbar Hello, World!
- Calling
(foo "bar")
in the ClojureScript REPL will throw the errorWARNING: Use of undeclared Var /foo at line 1 <cljs repl>
Environment & Version information
CIDER version information
;; CIDER 0.15.0snapshot (package: 20161016.424), nREPL 0.2.12
;; Clojure 1.8.0, Java 1.8.0_40
Lein/Boot version
Leiningen 2.7.1 on Java 1.8.0_40 Java HotSpot(TM) 64-Bit Server VM
Emacs version
GNU Emacs 25.1.1 (x86_64-apple-darwin16.0.0, NS appkit-1504.00 Version 10.12 (Build 16A320)) of 2016-09-21
Operating system
macOS 10.12 (16A320)
decoursin