pallet / ritz

SWANK and nREPL servers for clojure providing JPDA based debuggers
318 stars 33 forks source link

ritz-nrepl not working on osx #103

Open instilled opened 11 years ago

instilled commented 11 years ago

Hi,

I would like to use ritz-nrepl for debugging purposes from within Emacs. Because it already fails with lein ritz-nrepl I did not go further with the Emacs integration yet.

Exception in thread "main" com.sun.jdi.connect.VMStartException: VM initialization failed for: ...

I know that this exception was around for some time and that there are potential fixes for it, A Working nrepl-ritz Setup?, Can't get emacs + ritz-nrepl working on a Macintosh system.

Otherwise, nrepl et al. are working perfectly fine on my system. I'm using clojure 1.5.1 with

$> lein version
Leiningen 2.2.0 on Java 1.7.0_25 Java HotSpot(TM) 64-Bit Server VM

My ~/.lein/profiles.clj looks like this:

{:user
 {:plugins [[lein-ritz "0.7.0"]]
  :dependencies [[nrepl-inspect "0.3.0"]
                 [org.clojure/tools.trace "0.7.5"]
                 [ritz/ritz-nrepl-middleware "0.7.0"]
                 [ritz/ritz-debugger "0.7.0"]
                 [clojure-complete "0.2.3"]]
  :repl-options {:nrepl-middleware
                 [ritz.nrepl.middleware.javadoc/wrap-javadoc
                  ritz.nrepl.middleware.simple-complete/wrap-simple-complete
                  inspector.middleware/wrap-inspect]}}}

From within a lein project I run lein ritz-nrepl. But this fails with the above exception. I've run lein ritz-nrepl -l trace but found no useful output. What can I do to get this running?

BTW. I've tested this with the the ritz 0.7.1-SNAPSHOT but the error persists.

Any help is greatly appreciated.

Fabio