On Mon, Jun 14, 2010 at 07:16, B Smith-Mannschott <bsmith.o...@gmail.com> wrote:
> On Sun, Jun 13, 2010 at 23:26, Phil Hagelberg <p...@hagelb.org> wrote:
>> There are some bugs in package.el that I have fixed in my personal fork but
>> have not yet made it upstream yet. Try clearing out .emacs.d/elpa and trying
>> again with the version at http://GitHub.com/technomancy/package.el and it
>> should work although you will get byte compilation warnings.
>>
>> Sorry for the hassle. I hope my patches are applied soon so the situation
>> improves.
>
> thanks! i am now able to install clojure, clojure-test, slime,
> clojure-swank etc. without error. When I try to C-c C-k to load the
> currently open clojure file into the slime repl, however, I get this:
>
>
> Wrong number of args (4) passed to: basic$eval633$compile-file-for-emacs
>  [Thrown class java.lang.IllegalArgumentException]
>
> Restarts:
>  0: [ABORT] Return to SLIME's top level.
>
> Backtrace:
>  0: clojure.lang.AFn.throwArity(AFn.java:439)
>  1: clojure.lang.AFn.invoke(AFn.java:51)
>  2: clojure.lang.Var.invoke(Var.java:377)
>  3: user$eval1304.invoke(NO_SOURCE_FILE)
>  4: clojure.lang.Compiler.eval(Compiler.java:5421)
>  5: clojure.lang.Compiler.eval(Compiler.java:5388)
>  6: clojure.core$eval.invoke(core.clj:2370)
>  7: swank.core$eval_in_emacs_package.invoke(core.clj:59)
>  8: swank.core$eval_for_emacs.invoke(core.clj:128)
>  9: clojure.lang.Var.invoke(Var.java:373)
>  10: clojure.lang.AFn.applyToHelper(AFn.java:169)
>  11: clojure.lang.Var.applyTo(Var.java:482)
>  12: clojure.core$apply.invoke(core.clj:540)
>  13: swank.core$eval_from_control.invoke(core.clj:66)
>  14: swank.core$spawn_worker_thread$fn__367$fn__368.invoke(core.clj:172)
>  15: clojure.lang.AFn.applyToHelper(AFn.java:159)
>  16: clojure.lang.AFn.applyTo(AFn.java:151)
>  17: clojure.core$apply.invoke(core.clj:540)
>  18: swank.core$spawn_worker_thread$fn__367.doInvoke(core.clj:168)
>  19: clojure.lang.RestFn.invoke(RestFn.java:398)
>  20: clojure.lang.AFn.run(AFn.java:24)
>
> This used to work. Would it help to try to manually install
> swank-clojure 1.2.0 do you think? (package.el only provides 1.1.0).
> I'm developing against clojure 1.2.0-SNAPSHOT, while swank-clojure
> 1.1.0 seems to use clojure 1.1.0.

The "swank-clojure 1.1.0" I'm referring to above, is the version of
the package as provided by package.el, which dumps a few jar files in
~/.swank-clojure:

[smit...@oberon:~/.swank-clojure]
$ ls -1
clojure-1.1.0-master-20091202.150145-1.jar
clojure-contrib-1.1.0-master-20091212.205045-1.jar
swank-clojure-1.1.0.jar

But, I think that isn't actually relevant.  At least, I was able to
solve the problem by upgrading the swank-clojure dependency in my
project's pom file form 1.1.0 to 1.2.1.

--- a/pom.xml
+++ b/pom.xml
@@ -41,7 +41,7 @@
       <!-- swank-clojure is for emacs slime integration, clojure:swank goal -->
       <groupId>swank-clojure</groupId>
       <artifactId>swank-clojure</artifactId>
-      <version>1.1.0</version>
+      <version>1.2.1</version>
     </dependency>

I tried 1.2.0, but that didn't work because of

  java.lang.Exception: No such var: swank.swank/ignore-protocol-version

Somewhere in the recesses of my mind I remembered this problem being
fixed with a 1.2.1 version, so I tried that and it worked.  However, I
do find it irritating that there manifestly *is* a release 1.2.1
available in Maven, and yet, no such tag has been defined in
http://github.com/technomancy/swank-clojure.git

Perhaps one should tag 0af258a279d42ea03ac1 as 1.2.1.

http://github.com/technomancy/swank-clojure/commit/0af258a279d42ea03ac12782fb2700f3602e9a78

// Ben

// Ben

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