@@ -211,67 +211,6 @@ different configurations.
211211In this example, the path `/src` will be translated to the correct path of your
212212Clojure project on the host machine. And `/root/.m2` to the host's `~/.m2` folder.
213213
214- == Use a Local Copy of the JDK API Documentation
215-
216- If you are targeting the JVM and prefer a local copy of the JDK API
217- documentation over Oracle's official copy (e.g., for
218- http://docs.oracle.com/javase/8/docs/api/[JavaSE 8]), per nREPL's
219- http://docs.oracle.com/javase/8/docs/api/[`javadoc-info` logic (accurate as of 29 Dec 2014)],
220- you can arrange your project to include the *root* path of the local API doc
221- (i.e., where the `index.html` is located) to be included on your classpath
222- (i.e., where the doc HTML files can be located by
223- `clojure.java.io/resource`). For example, for Leiningen, with the local API
224- path being `/usr/share/doc/java/api/`, put the following line in
225- `project.clj`:
226-
227- [source,clojure]
228- ----
229- :dev {:resource-paths ["/usr/share/doc/java/api/"]}
230- ----
231-
232- *or* the following line in `$HOME/.lein/profiles.clj`:
233-
234- [source,clojure]
235- ----
236- :user {:resource-paths ["/usr/share/doc/java/api/"]}
237- ----
238-
239- More details can be found https://github.com/clojure-emacs/cider/issues/930[here].
240-
241- == Use a Local Copy of the Java Source Code
242-
243- When an exception is thrown, e.g. when eval-ing `(. clojure.lang.RT foo)`, a
244- stack trace pops up. Some places of the stack trace link to Clojure files,
245- others to Java files. By default, you can click the Clojure file links to
246- navigate there. If you configure `cider-jdk-src-paths`, you can also click the
247- Java file links to navigate there.
248-
249- On Windows and macOS the JDK source code is bundled with the JDK. On Windows its
250- typical location is `+C:\Program Files\Java\{jdk-version}\src.zip+`
251- and on macOS it's `+/Library/Java/JavaVirtualMachines/{jdk-version}/Contents/Home/src.zip+`.
252-
253- On Linux distributions usually the source code is distributed as a separate package.
254- Here's how do get the JDK 8 source on Debian/Ubuntu:
255-
256- $ sudo apt install openjdk-8-source
257-
258- The zip is installed to `/usr/lib/jvm/openjdk-8/src.zip`.
259-
260- Here's how to get the JDK 11 source on Red Hat/Fedora:
261-
262- $ sudo dnf install java-11-openjdk-src
263-
264- You can download Clojure Java source code from
265- https://repo1.maven.org/maven2/org/clojure/clojure/1.8.0/clojure-1.8.0-sources.jar[here].
266-
267- Extract both and configure e.g. like so:
268-
269- (setq cider-jdk-src-paths '("~/java/clojure-1.8.0-sources"
270- "~/java/openjvm-8-src"))
271-
272- It's possible to point `cider-jdk-src-paths` to `jar` or `zip` files, but extracting
273- them is better since you can use features like `ag` or `dired-jump`.
274-
275214== Filter out namespaces in certain namespace-related commands
276215
277216You can hide all nREPL middleware details from `cider-browse-ns*` and `cider-apropos*`
0 commit comments