summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-05-14 09:37:57 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-05-14 09:37:57 +0300
commitc64b3e5b971cb70bf57575b299ce4e87d3b7b057 (patch)
treeb9f7dc4964da34130c6a87c973a5f72323d172d9
parentff3bfa2642cfcd4eb5f2756280ea057dc69f8aff (diff)
Require the nashorn REPL before trying to use it
-rw-r--r--cider.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/cider.el b/cider.el
index 27262762..278f05f3 100644
--- a/cider.el
+++ b/cider.el
@@ -682,7 +682,7 @@ The supplied string will be wrapped in a do form if needed."
(format "(do %s)" form))))
(defvar cider-cljs-repl-types
- '((nashorn "(cider.piggieback/cljs-repl (cljs.repl.nashorn/repl-env))"
+ '((nashorn "(do (require 'cljs.repl.nashorn) (cider.piggieback/cljs-repl (cljs.repl.nashorn/repl-env)))"
cider-check-nashorn-requirements)
(figwheel "(do (require 'figwheel-sidecar.repl-api) (figwheel-sidecar.repl-api/start-figwheel!) (figwheel-sidecar.repl-api/cljs-repl))"
cider-check-figwheel-requirements)