Skip to content

cljc buffers not evaluated in cljs repl by cider-load-buffer #1875

@leppert

Description

@leppert

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

  1. Check out this sample project: https://github.com/leppert/cljc-bug
  2. Open src/cljc_bug/core.cljc
  3. Run cider-jack-in-clojurescript
  4. C-c M-n to load the namespace. Note: this works correctly in both REPLs
  5. C-c C-k to eval the buffer
  6. Calling (foo "bar") in the Clojure REPL will now correctly print bar Hello, World!
  7. Calling (foo "bar") in the ClojureScript REPL will throw the error WARNING: Use of undeclared Var /foo at line 1 <cljs repl>

image

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions