[slime-devel] How to restart the inferior kawa swank server?

Leo sdl.web at gmail.com
Fri Aug 5 01:05:05 UTC 2011


On 2011-08-05 04:18 +0800, Helmut Eller wrote:
> You could start it in a new thread: (future (create-swank-server 4005))

Thanks.

> I never implemented a clean shutdown/restart.  Restarting the whole JVM
> was mostly good enough for me (and is almost unavoidable from time to
> time).

Thanks for the note.

> That could be a bug triggered by SPC and swank tries to find some
> arglist but somehow fails along the way.
>
> It could also be a bug in JDI.  Hard to say exactly.

OK, I can ignore it for now.

> This might be useful:
>
> (defun kawa ()
>   (interactive)
>   (slime 'kawa))
>
> This way M-x kawa starts the 'kawa entry from slime-lisp-implementations.

Thanks.

> slime-interrupt should work to some degree.  E.g we can interrupt and
> continue this example:
>
> (define (foo) (let loop () (loop)))
> (foo)
>
> Sometimes it takes a long time until the JVM stops the thread.
> E.g.
>
> (define (foo) (foo))

This was exactly the same one I tried. Good to know C-c C-b
(slime-interrupt) works in some cases.

Thank you very much. Now swank-kawa is much more usable.

Leo





More information about the slime-devel mailing list