clearly, I'm too dense to upgrade slime/swank/clojure-mode... help?

2011-04-01 Thread B Smith-Mannschott
Some months ago my ability to send non-ascii characters to clojure
running in a swank server started with maven clojure:swank broke,
despite the fact that I'm doing this:

 (set-language-environment UTF-8)
 (setq slime-net-coding-system 'utf-8-unix)

In my .emacs file as suggested back in June 2009.

Since I haven't updated any of my tooling for quite some time, I
though, I'd give it a try and upgrade to current releases of
clojure-mode, clojure-swank and slime. I guess I hoped that the
breakage might be a bug since fixed.

I'm using Emacs 23.3.1; package.el 0.9

Here's what I was using before the upgrade:
- slime-20100404 via package.el
- slime-repl20100404 via package.el
- swank-clojure-1.1.0 via package.el
- clojure-test-mode-1.4
- clojure-mode 1.7
- clojure-maven-plugin 1.3.3
- swank-clojure 1.2.1

This combination worked pretty well, except that I can't get non-ascii
text to the clojure process via the slime repl. When I attempt this,
the repl just seems to freeze. I can continue to type at it, but the
prompt never reappears and no output is produced. The console from
which mvn clojure:swank was started does not show any output (e.g. no
stack trace).

I took this as an opportunity to upgrade my tooling. I remember the
tooling upgrade was quite a pain for me back with the clojure 1.1-1.2
transition, but hoped that things would work out better this time.

I tried to upgrade first from within package.el, but the default
package.el repository is (1) slow and (2) outdated. I discovered the
advice on https://github.com/technomancy/swank-clojure/ and:

(add-to-list 'package-archives
 '(marmalade . http://marmalade-repo.org/packages/;) t)

marmelade was also very slow, but after some minutes presented me with
a list containing more recent versions of various clojure related
packages. Unfortunately, installation took many minutes before finally
taking many minutes to 'parse the http repose header' (or words
thereabout) and then doing nothing and not actually installing
anything.

I scrapped that idea, and proceeded to install the upgrades by hand
from git sources:
- clojure-mode 1.8.0
- clojure-test-mode 1.5.4
- slime, slime-repl c27dd18db765c005bbdac9044b8ab513805e7e75
  https://github.com/technomancy/slime.git
- clojure-maven-plugin 1.3.8
- swank-clojure 1.3.0

Results:
- M-x slime-connect no longer works out of the box.
  M-x load-library slime is necessary
- When the repl starts, it is not displayed.
  M-x load-library slime-repl, M-x slime repl is necessary
- The repl is not clojure compatible, displaying instead the promt CL-USER

So. Experiment a failure. Thankfully I keep my emacs stuff under
version control, so I'll just revert back to the last known good state
and live without non-ascii characters.

It's not at all clear to me what combinations of what versions of
these various components are intended to work together.  The use
package.el advice is nice, but, again, it didn't work for me. Should
I just give up on slime and just run inferior clojure process and use
(load ...) or copy/paste? Is it possible to diagnose from this
meandering tale, where I went wrong?

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


Re: clearly, I'm too dense to upgrade slime/swank/clojure-mode... help?

2011-04-01 Thread Dennis Crenshaw
I have a problem with swank with an upgrade recently, clojure1.3-alpha5
works, clojure-1.3alpha6 does not, to my knowledge-- which Clojure version
are you using in your project?

-- 
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: clearly, I'm too dense to upgrade slime/swank/clojure-mode... help?

2011-04-01 Thread B Smith-Mannschott
On Fri, Apr 1, 2011 at 22:23, Dennis Crenshaw crensha...@gmail.com wrote:
 I have a problem with swank with an upgrade recently, clojure1.3-alpha5
 works, clojure-1.3alpha6 does not, to my knowledge-- which Clojure version
 are you using in your project?

Silly me, I forgot to mention that. I'm on Clojure 1.2.0.

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

-- 
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: clearly, I'm too dense to upgrade slime/swank/clojure-mode... help?

2011-04-01 Thread B Smith-Mannschott
(I'm using Clojure 1.2.0; I neglected to mention that in my first message.)

I was able to upgrade to clojure-mode 1.8.0 and clojure-test-mode
1.5.4 after installing a later package.el 0.9 than the one I had
installed previously:

  commit e47f392dd688ac5f7bb06eeb96b7a29d95de1ce7
  Author: Phil Hagelberg technoma...@gmail.com
  Date:   2010-12-12 13:45:25 -0800

Update with latest version from Emacs 24

All is once again well, except that utf-8 via slime to clojure started
by mvn clojure:swank still doesn't work. Now I am seeing an exception,
so i thought I'd post it here:

(1) type ä [RETURN] into the REPL.

 in the *slime-repl clojure* buffer 
user ä [RETURN]

 in the *slime-events* buffer 
(:emacs-rex
 (swank:listener-eval \ä\\n)
 user :repl-thread 3)
(:write-string \ä\\n :repl-result)
---

(2) type [RETURN] (a second time) into the REPL

 in the *slime-events* buffer 
(:emacs-rex
 (swank:listener-eval \n)
 user :repl-thread 4)
 in the mvn clojure:swank console 
exception in read loop
java.lang.NumberFormatException: For input string: 
3
at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at swank.core.protocol$read_swank_message.invoke(protocol.clj:41)
at swank.core.connection$read_from_connection.invoke(connection.clj:59)
at swank.core$read_loop.invoke(core.clj:337)
at swank.swank$connection_serve$fn__1568$fn__1569.invoke(swank.clj:41)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:540)
at swank.swank$connection_serve$fn__1568.doInvoke(swank.clj:38)
at clojure.lang.RestFn.invoke(RestFn.java:398)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:680)


Does this ring any bells with anyone?

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