Skip to content

Commit

Permalink
Document embedded-nREPL workaround for clojure-emacs#447 in README
Browse files Browse the repository at this point in the history
Per Bozhidar in
clojure-emacs#447 (comment)
we are documenting the necessity of manual namespace resolution until clojure-emacs#464 is resolved.
  • Loading branch information
daveliepmann committed Feb 25, 2018
1 parent b8fc3eb commit 53ac5da
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,18 @@ server with CIDER's own nREPL handler.

```clojure
(ns my-app
(:require [clojure.tools.nrepl.server :as nrepl-server]
[cider.nrepl :refer (cider-nrepl-handler)]))
(:require [clojure.tools.nrepl.server :as nrepl-server]))

(defn -main
[]
(nrepl-server/start-server :port 7888 :handler cider-nrepl-handler))
(defn nrepl-handler []
(require 'cider.nrepl)
(ns-resolve 'cider.nrepl 'cider-nrepl-handler))

(defn -main []
(nrepl-server/start-server :port 7888 :handler (nrepl-handler)))
```

(See [issue #447](https://github.com/clojure-emacs/cider-nrepl/issues/447) for why the manual namespace resolution of `cider-nrepl-handler` is currently necessary.)

### With JBoss AS/JBoss EAP/WildFly

Using the advanced features of the `info` middleware with one of the
Expand Down

0 comments on commit 53ac5da

Please sign in to comment.