Swank cdt is unbelievably awesome and many thanks for the superb
effort!

On windows with swank-clojure 1.4.0-SNAPSHOT, there seems to be a
small issue with displaying source once a breakpoint is hit.
I get a message saying "clojure\set.clj - source not found". Digging
into swank source, the method  swank.commands.basic/source-location-
for-frame seems to be where the problem is, specifically the line -
(str ns-path File/separator (.getFileName frame))

In window, java.io.File/separator returns "\\" . However, in the
method slime-find-resource, the separator is going to cause a
failure ........

user=> (.getResource (clojure.lang.RT/baseLoader) "clojure\\set.clj")
nil

user=> (.getResource (clojure.lang.RT/baseLoader) "clojure/set.clj")
#<URL jar:file:/C:/Users/ajohendran/.m2/repository/org/clojure/clojure/
1.2.1/clojure-1.2.1.jar!/clojure/set.clj>
user=>

http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String)

Can we just use the forward slashes in the method source-location-for-
frame?

Thanks
Aravindh

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to