[slime-devel] Re: Problems with swank connection
Henda Carvalho
henda.for.work at gmail.com
Tue Jun 13 17:35:16 UTC 2006
I changed the code to:
(save-current-buffer
(slime-disconnect)
(if (get-buffer "*inferior-lisp*")
(kill-buffer "*inferior-lisp*"))
(slime)
(while (not (slime-connected-p))
(sleep-for 1)))
and it stays in the 'while' loop for more than 5 minutes (i "only" waited 5
minutes), meaning that 'slime-connected-p' is returning 'nil'...
Can you tell why i can't make the connection?
Best regards,
Henda
On 6/12/06, Nikodemus Siivola <nikodemus at random-state.net> wrote:
>
> "Henda Carvalho" <henda.for.work at gmail.com> writes:
>
> > (save-current-buffer
> > (slime-disconnect)
> > (if (get-buffer "*inferior-lisp*")
> > (kill-buffer "*inferior-lisp*"))
> > (slime)
> >
> > (if (not (slime-connected-p))
> > <error, do something> ))
> >
> > The problem is that the function 'slime-connected-p' is returning
> > 'nil', meaning that there isn't a swank connection... Can somebody tell
> me why?
>
> IIRC the call to SLIME returns almost immediately, but setting the
> connection up takes a while -- so you need to wait for it a bit.
>
> Cheers,
>
> -- Nikodemus Schemer: "Buddha is small, clean, and
> serious."
> Lispnik: "Buddha is big, has hairy armpits, and
> laughs."
>
> _______________________________________________
> slime-devel site list
> slime-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/slime-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20060613/c63b76b0/attachment.html>
More information about the slime-devel
mailing list