can not install clojure-test-mode using elpa (package.el)

86 views
Skip to first unread message

B Smith-Mannschott

unread,
Jun 13, 2010, 4:28:33 PM6/13/10
to clo...@googlegroups.com
Hi Clojurians,

This weekend, while off the grid, I discovered that mvn clojure:swank
and M-x slime-connect no longer talk to eachother.

When I got back, I looked in M-x package-list-packages to see that
there had been updates to clojure-mode (1.7.2), clojure-test-mode
(1.4), slime (20100404). (swank-clojure is still at 1.1.0 though 1.2.0
is tagged in git; is that bad?)

I'm tearing my hair out trying to get this crap to install, and it's
past my bed time, so I'm hoping that I'm missing something obvious.
Maybe someone has a pointer for me.

Installing clojure-mode seems to run without error.

Installing clojure-test-mode, however errors with the *Message*s:

Reading [text/plain]... 28k of 28k (100%)
Reading... done.
let: File exists: /home/smithma/.emacs.d/elpa/clojure-mode-1.7.1/clojure-mode.el

Well, no $%!7, it's already installed, why are you trying to install
it again!? And even if you are trying to install it redundantly, how
*exactly* is it an error that it's already there.

End result: clojure-test-mode doesn't get installed. Installing
swank-clojure produces the same error. slime installs without apparent
error.

emacs 23.2.50.1 (from source)
package.el: 0.9

the sha1 of archive-contents downloaded by package.el
e1094cd7c51e81040c7f90230643b86a3bf759b2 archive-content

can some kind soul offer me advice?

// ben

Phil Hagelberg

unread,
Jun 13, 2010, 5:26:19 PM6/13/10
to clo...@googlegroups.com

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.

-Phil

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

B Smith-Mannschott

unread,
Jun 14, 2010, 1:16:31 AM6/14/10
to clo...@googlegroups.com
On Sun, Jun 13, 2010 at 23:26, Phil Hagelberg <ph...@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.

// ben

B Smith-Mannschott

unread,
Jun 14, 2010, 6:46:56 AM6/14/10
to clo...@googlegroups.com

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:

[smithma@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

Reply all
Reply to author
Forward
0 new messages