diff --git a/project.clj b/project.clj index a5018a5..131bab7 100644 --- a/project.clj +++ b/project.clj @@ -5,7 +5,7 @@ :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.8.40"] [binaryage/devtools "0.6.1"] - [binaryage/dirac "0.2.0"]] + [binaryage/dirac "0.3.0"]] :plugins [[lein-cljsbuild "1.1.3"] [lein-shell "0.5.0"] @@ -64,7 +64,7 @@ ; -------------------------------------------------------------------------------------------------------------- :repl {:repl-options {:port 8230 - :nrepl-middleware [dirac.nrepl.middleware/dirac-repl] + :nrepl-middleware [dirac.nrepl/middleware] :init (do (require 'dirac.agent) (dirac.agent/boot!))}} diff --git a/src/demo/dirac_sample/demo.cljs b/src/demo/dirac_sample/demo.cljs index 4267736..7028d64 100644 --- a/src/demo/dirac_sample/demo.cljs +++ b/src/demo/dirac_sample/demo.cljs @@ -24,4 +24,18 @@ (defn ^:export breakpoint-demo-handler [] (log "calling breakpoint-demo:") - (breakpoint-demo 3)) \ No newline at end of file + (breakpoint-demo 3)) + +(comment + ; + ; some things to test in "joined" Cursive REPL + ; + ; 0. make sure nREPL server is up and running and your Dirac DevTools REPL is connected + ; 1. connect Cursive to remote REPL on port 8230 + ; 2. run (dirac! :join) + ; 3. switch to this file, + ; 4 use Cursive's Tools -> REPL -> 'Switch REPL NS to current file' + ; 5. use Cursive's Tools -> REPL -> 'Load File in REPL' + ; 6. move cursor at closing brace of following form and use Cursive's Tools -> REPL -> 'Send ... to REPL' + ; + (hello! "from Cursive REPL")) \ No newline at end of file