I am struggling to setup swank-clojure and connect emacs with a lein
swank session.

I am on Windows XP. I followed the instructions at: 

 
http://clojure02.managed.contegix.com/display/doc/Getting+Started+with+E
macs

I installed clojure-mode from marmalade. I added the following to my
.emacs file:

  (add-to-list 'load-path "~/.emacs.d/elpa/clojure-mode/")
  (require 'clojure-mode)

And also added the following to my lein project.clj file:

  :dev-dependencies [[swank-clojure "1.2.1"]]   

I did a "lein deps" to get everything updated. However my problem starts
when I try to install swank-clojure from: 

   https://github.com/technomancy/swank-clojure

Again I am following the instructions: 
1. Install clojure-mode either from Marmalade or from git. ==> DONE
2. lein plugin install swank-clojure 1.3.1 ==> DONE
3. From inside a project, invoke M-x clojure-jack-in ==> ERROR

When I perform step 3 from within EMACS, and specify the path to my lein
project.clj file,  I get the following error:

  Starting swank server...
  cd c:/projects/pasclj && lein jack-in 1187: exited abnormally with
code 1.

Also when I execute the following command "lein swank" from the command
line, I get the following error:

C:\projects\pasclj>lein swank
Exception in thread "main" java.lang.IllegalArgumentException: No value
supplied for key: 4005 (NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5440)
        at clojure.lang.Compiler.eval(Compiler.java:5414)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5391)
        at clojure.core$eval.invoke(core.clj:2382)
        ....

On my other machine which runs Windows 7, I see the same error above
from within Emacs when I invoke M-x clojure-jack-in and specify the path
to my lein project.clj file.

Anybody else experienced similar issues. Any help guidance greatly
appreciated. 

-- Shoeb

-- 
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