technomancy / swank-clojure

Swank/slime support for clojure
Eclipse Public License 1.0
412 stars 83 forks source link

clojure-jack-in on Windows, error in process filter: Non-hex digit used for Unicode escape #79

Closed drpventura closed 13 years ago

drpventura commented 13 years ago

This occurs in both Emacs 23 and Emacs 24.

When I try to use clojure-jack-in I get the error above. I turned on debugging and get the message below.

Debugger entered--Lisp error: (error "Non-hex digit used for Unicode escape") eval-region(43 746) ; Reading at buffer position 143 clojure-eval-bootstrap-region(#)

[(G84100 G84101 process output) "r\305!q\210 c\210)\306\307 \"\205.

Today I was reading the Troubleshooting section on the front page and tried running lein jack-in just as a test, here are the results: C:\Users\pventura\Desktop\clj13-test>lein jack-in 4005 ;;; Bootstrapping bundled version of SLIME; please wait...

(when (not (featurep 'slime-cdf283b4)) (if (file-readable-p "C:\Users\pventura/.emacs.d/swank/slime-cdf2 83b4.elc") (load-file "C:\Users\pventura/.emacs.d/swank/slime-cdf283b4.elc ") (byte-compile-file "C:\Users\pventura/.emacs.d/swank/slime-cdf283 b4.el" t))) (when (not (featurep 'slime-repl-79b38c83)) (if (file-readable-p "C:\Users\pventura/.emacs.d/swank/slime-repl -79b38c83.elc") (load-file "C:\Users\pventura/.emacs.d/swank/slime-repl-79b38c8 3.elc") (byte-compile-file "C:\Users\pventura/.emacs.d/swank/slime-repl-7 9b38c83.el" t))) (sleep-for 0.1) (run-hooks 'slime-load-hook) ; on port 4005 Warning: classpath not declared dynamic and thus is not dynamically rebindable , but its name suggests otherwise. Please either indicate ^:dynamic classpath or change the name. ;;; proceed to jack in

I am wondering if the Warning message is causing the problem. I can't figure out how to turn off the warning though. I added :warn-on-reflection f to my project.clj, but that didn't help. I could not find the classpath variable in the .clj files that are in the swank-clojure-1.3.3.jar file downloaded under the .lein directory.

drpventura commented 13 years ago

I just updated leiningen to the latest version 1.6.1.1 which fixed the warning issue. However, I still cannot jack-in, getting the same error about the non-hex digits.

drpventura commented 13 years ago

The fix proposed at https://github.com/technomancy/swank-clojure/pull/75 fixes the problem.