Re: swank-clojure/lein/emacs
I have the identical problem to Shoeb. Toohey's suggestion did not work for me. But I got it to work. What I found is that lein deps downloaded the wrong version of swank-clojure. Note that previous to this I had done lein plugin install swank-clojure 1.3.1 That installed swank-clojure-1.3.1.jar in ~/.lein/plugins . My project.clj is... (defproject incanter 0.0.1-SNAPSHOT :description Play with incanter :dependencies [[incanter 1.2.3] [clojure 1.2.0] [clojure-contrib 1.2.0]] :dev-dependencies [[swank-clojure 1.3.1]]) I do lib deps But in my lib directory, I see swank- clojure-1.3.0-20110104.084027-21.jar . Doing lein swank gives the error Shoeb described. If I simply delete the file swank- clojure-1.3.0-20110104.084027-21.jar from my project's lib directory, then lein swank works. Why am I getting this wrong version of swank-clojure.jar? --- Adam On Jun 6, 3:00 pm, John Toohey j...@parspro.com wrote: I had this problem on OSX. To fix it, I removed the swank dependency from my project.clj file, then I ranleindeps to clear any old copies. Follow that withleinplugin install clojure-swank 1.3.1 and finallyleinswank. On Sun, Jun 5, 2011 at 17:26, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: Yes it is 4005. But I am just using the defaults. Does the problem have anything to do with the number 4005? Again, I am just following simple instructions outlined to get swank running usinglein, so that I can connect to it using emacs. I am not doing anything special or different. As a newcomer to clojure I am just struggling with getting a basic setup so I can use a repl in emacs and connect to swank launched bylein. Did anybody face similar problem/error? Are there any more detailed clearer instructions anywhere else? Thanks Shoeb -Original Message- From: clojure@googlegroups.com on behalf of Ambrose Bonnaire-Sergeant Sent: Sun 6/5/2011 3:56 PM To: clojure@googlegroups.com Subject: Re: swank-clojure/lein/emacs On Mon, Jun 6, 2011 at 3:46 AM, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: Exception in thread main java.lang.IllegalArgumentException: No value supplied for key: 4005 (NO_SOURCE_FILE:1) Might be a coincidence, isn't the swank port 4005? Ambrose -- 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 -- 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 -- ~JT -- 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
RE: swank-clojure/lein/emacs
I figured out the cause of my problem. It is the presence of incanter! Having it in leiningen project.clj file as a dependency causes lein swank to throw the following error: C:\projects\pascljlein 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) When I remove [incanter 1.2.3] from my project.clj file the problem goes away. Obviously there is some incompatibility between incanter and swank-clojure. Anybody else face this issue or know of how to make incanter work with swank-clojure? Thanks Shoeb -Original Message- From: clojure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf Of Phil Hagelberg Sent: Monday, June 06, 2011 12:16 AM To: Clojure Subject: Re: swank-clojure/lein/emacs On Jun 5, 9:09 am, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: 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) This is not necessary; if you install via marmalade then the autoloads will handle this for you. And also added the following to my lein project.clj file: :dev-dependencies [[swank-clojure 1.2.1]] This is a rather old version of swank. You should stick with 1.3.1 at least. 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. This is probably due to the old swank version. Also when I execute the following command lein swank from the command line, I get the following error: C:\projects\pascljlein 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) There's also a bug when mismatched versions are in lib/dev vs ~/.lein/ plugins that can cause behaviour like this. It's best not to put swank in dev-deps at all but just stick with lein plugin install. Just inspect ~/.lein/plugins to make sure only 1.3.1 is in there. I'll update the readme to explain this issue. -Phil -- 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 -- 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
Re: swank-clojure/lein/emacs
I had this problem on OSX. To fix it, I removed the swank dependency from my project.clj file, then I ran lein deps to clear any old copies. Follow that with lein plugin install clojure-swank 1.3.1 and finally lein swank. On Sun, Jun 5, 2011 at 17:26, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: Yes it is 4005. But I am just using the defaults. Does the problem have anything to do with the number 4005? Again, I am just following simple instructions outlined to get swank running using lein, so that I can connect to it using emacs. I am not doing anything special or different. As a newcomer to clojure I am just struggling with getting a basic setup so I can use a repl in emacs and connect to swank launched by lein. Did anybody face similar problem/error? Are there any more detailed clearer instructions anywhere else? Thanks Shoeb -Original Message- From: clojure@googlegroups.com on behalf of Ambrose Bonnaire-Sergeant Sent: Sun 6/5/2011 3:56 PM To: clojure@googlegroups.com Subject: Re: swank-clojure/lein/emacs On Mon, Jun 6, 2011 at 3:46 AM, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: Exception in thread main java.lang.IllegalArgumentException: No value supplied for key: 4005 (NO_SOURCE_FILE:1) Might be a coincidence, isn't the swank port 4005? Ambrose -- 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 -- 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 -- ~JT -- 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
Re: swank-clojure/lein/emacs
I don't think you need to add the :dev-dependency, can you try again by removing the line ? ./vijay On Jun 5, 2011, at 6:09 PM, Bhinderwala, Shoeb wrote: 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+Emacs 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\pascljlein 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 -- 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
RE: swank-clojure/lein/emacs
I tried removing the :dev-dependencies but I am still having the same problem. I gave up on running clojure-jack-in. However, I am still facing issues running lein swank. Can someone please help me with lein swank? Here is my project.clj file: (defproject expclj 1.0.0-SNAPSHOT :description my description :dependencies [[org.clojure/clojure 1.2.1] [clojure-contrib 1.2.0] [incanter 1.2.3]]) I am using clojure 1.2.1 and clojure-contrib 1.2.0. I tried removing incanter but the problem does not go away. I installed the lein swank plugin by running the following command: lein plugin install swank-clojure 1.3.1 My leinengen version is: Leiningen 1.5.2 on Java 1.6.0_25 Java HotSpot(TM) 64-Bit Server VM I am running all this on Windows 7 - 64bit. When I run lein swank, I get the following error and then my console hangs: 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) at clojure.main$eval_opt.invoke(main.clj:235) at clojure.main$initialize.invoke(main.clj:254) at clojure.main$null_opt.invoke(main.clj:279) at clojure.main$main.doInvoke(main.clj:354) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:369) at clojure.lang.AFn.applyToHelper(AFn.java:163) at clojure.lang.Var.applyTo(Var.java:482) at clojure.main.main(main.java:37) Please can someone from the group help me with this problem. Is there anything wrong with my configuration? I simply can't get lein swank to work. I haven't even tried the emacs integration yet. Shoeb -Original Message- From: clojure@googlegroups.com on behalf of Vijay Kiran Sent: Sun 6/5/2011 12:42 PM To: clojure@googlegroups.com Subject: Re: swank-clojure/lein/emacs I don't think you need to add the :dev-dependency, can you try again by removing the line ? ./vijay On Jun 5, 2011, at 6:09 PM, Bhinderwala, Shoeb wrote: 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+Emacs 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\pascljlein 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 -- 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
Re: swank-clojure/lein/emacs
On Mon, Jun 6, 2011 at 3:46 AM, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: Exception in thread main java.lang.IllegalArgumentException: No value supplied for key: 4005 (NO_SOURCE_FILE:1) Might be a coincidence, isn't the swank port 4005? Ambrose -- 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
RE: swank-clojure/lein/emacs
Yes it is 4005. But I am just using the defaults. Does the problem have anything to do with the number 4005? Again, I am just following simple instructions outlined to get swank running using lein, so that I can connect to it using emacs. I am not doing anything special or different. As a newcomer to clojure I am just struggling with getting a basic setup so I can use a repl in emacs and connect to swank launched by lein. Did anybody face similar problem/error? Are there any more detailed clearer instructions anywhere else? Thanks Shoeb -Original Message- From: clojure@googlegroups.com on behalf of Ambrose Bonnaire-Sergeant Sent: Sun 6/5/2011 3:56 PM To: clojure@googlegroups.com Subject: Re: swank-clojure/lein/emacs On Mon, Jun 6, 2011 at 3:46 AM, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: Exception in thread main java.lang.IllegalArgumentException: No value supplied for key: 4005 (NO_SOURCE_FILE:1) Might be a coincidence, isn't the swank port 4005? Ambrose -- 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 -- 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
Re: swank-clojure/lein/emacs
On Jun 5, 9:09 am, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote: 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) This is not necessary; if you install via marmalade then the autoloads will handle this for you. And also added the following to my lein project.clj file: :dev-dependencies [[swank-clojure 1.2.1]] This is a rather old version of swank. You should stick with 1.3.1 at least. 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. This is probably due to the old swank version. Also when I execute the following command lein swank from the command line, I get the following error: C:\projects\pascljlein 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) There's also a bug when mismatched versions are in lib/dev vs ~/.lein/ plugins that can cause behaviour like this. It's best not to put swank in dev-deps at all but just stick with lein plugin install. Just inspect ~/.lein/plugins to make sure only 1.3.1 is in there. I'll update the readme to explain this issue. -Phil -- 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