Ok, I finally has some free time to look at this and think I found out what is happening. For instance when compiling this
(defn v[] an-undefined-symbol) via C-c C-k: I get the following message: (:compilation-result ((:message "java.lang.Exception: Unable to resolve symbol: a in this context (test.clj:2)" :severity :error ....)) This causes the regex in swank clojure (defined as #"^clojure\\.lang\ \.Compiler\\$CompilerException: ([^:]+):([^:]+):")) to fail for two reasons: 1) Ir searches for CompilerException while the message string is actually contains java.lang.Exception (even if the exception really is an instance of CompilerException) 2) It will get confused by the colon after symbol I replaced the regex with the following (def *compiler-exception-location-re* #"^*Exception: [^\(]+ \(([^:]+): ([^:]+)\)" ) and now Slime seems to work fine. A better solution however would be to avoid regex parsing all together and make clojure store the information in the CompilerException so that swank-clojure can later retrieve it without flaky regex parsing. I have made a trivial 4 line patch for this, and it works fine. If people are interested I will send the patch to ML. Cheers, V. Segui On 26 mar, 23:08, Tassilo Horn <tass...@member.fsf.org> wrote: > vseguip<vseg...@gmail.com> writes: > > Hi I tried your code but still no luck with errors. > > Then I don't know. I use ut-to-date versions of swank-clojure, > clojure-mode, SLIME and clojure all from their version control systems. > Maybe that makes the difference. > > Bye, > Tassilo --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---