Thanks very much for this bug report Young!
I'm going to summarize your findings here for everyone else.
Basically, you found 3 problems:
1. The set-bp command requires full name-space qualification of the
function name.
2. On Windows, if attach.dll isn't on the java-library path, you get
the following errors:
on stdout:
java.util.ServiceConfigurationError:
com.sun.tools.attach.spi.AttachProvider: Pr
ovider sun.tools.attach.WindowsAttachProvider could not be
instantiated: java.la
ng.UnsatisfiedLinkError: no attach in java.library.path
at the repl:
CDT 1.4.0a startup failed: #<RuntimeException
java.lang.RuntimeException: java.io.IOException: no providers
installed>
The fix is to add something like the following to your project.clj:
:jvm-opts ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n"
"-Djava.library.path=C:\\usr\\lang\\java\\jdk\\jre\\bin"]
:extra-classpath-dirs ["C:\\usr\\lang\\java\\jdk\\lib\\tools.jar"]
3. You are seeing a problem with how swank-cdt handles file separators
on
Windows, which may be the same problem reported by Andrew above. I'll
have you try the fix I send him and see if it helps you as well.
Thanks again!
On Dec 7, 2:57 am, Young Kim <[email protected]> wrote:
> I posted the related problem
> onhttps://github.com/technomancy/swank-clojure/issues/86
> Please refer to it! I hope that it will be helpful for you.
>
> On Dec 7, 12:47 pm, Andrew <[email protected]> wrote:
>
> > Thanks for taking the time Sean! You're right...
>
> > - I'm on Windows XP
> > - I had to copy tools.jar to my projects lib manually after lein deps
> > (not sure how to change the classpath)
> > - My emacs setup is munged -- I can run M-x eshell but not M-x shell; I
> > have to do lein swank and M-x slime-connect because I can't M-x
> > clojure-jack-in
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en