Re: Can clisp use swank ?

Vladimir Tzankov <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <CAHWYE6LVD7ePy1wYTLHvN1KQZKAOuWH3N1jfq78bVwtV2q81eA@mail.gmail.com>
Here is what I get after changing preferred communication style to :spawn:

[1]> (load #p"~/quicklisp/dists/quicklisp/software/slime-20120909-cvs/start-swank.lisp")
..................
;; Swank started at port: 4005.
[2]> (list-threads)
(#<THREAD "Swank 4005"> #<THREAD "Swank Sentinel"> #<THREAD "main thread">)

So, I get back to the repl and have two new threads for handling swank stuff.
Wondering why you do not get the repl - can you check that you have
these new threads (after interrupting with CTRL-C)?

>> (load "~/.vim/slime/start-swank.lisp")
Please check that this launches the correct swank version.

I am running clisp built from current source repository but I do not
think this is related.

Vlad

PS: please write to clisp-devel instead directly to me.

On Wed, Oct 10, 2012 at 4:07 AM, z_axis <[email protected]> wrote:
> $cat
> ~/quicklisp/dists/quicklisp/software/slime-20120909-cvs/swank-clisp.lisp |
> grep preferred
> (defimplementation preferred-communication-style () :spawn)
>
>> (lisp-implementation-version)
>
> "2.49 (2010-07-07) (built 3558763409) (memory 3558763794)"
>
>> *features*
>
> ((:QUICKLISP :ASDF2 :ASDF :ASDF-UNIX :READLINE :REGEXP :SYSCALLS :I18N :LOOP
> :COMPILER :CLOS :MOP :CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :MT
>  :SOCKETS :GENERIC-STREAMS :LOGICAL-PATHNAMES :SCREEN :FFI :GETTEXT :UNICODE
> :BASE-CHAR=CHARACTER :PC386 :UNIX)
>
>> (load "~/.vim/slime/start-swank.lisp")
>
> ...
> ;;; Swank started at port: 4005.
>
>
> then i can not use clisp unless pressing Ctrl+C to break.
>
> C(+ 1 2)
> ^C
> ** - Continuable Error
> Condition of type SYSTEM::INTERRUPT-CONDITION.
> If you continue (by typing 'continue'): Ctrl-C: User break
> The following restarts are also available:
> SKIP           :R1      skip (CREATE-SERVER PORT 4005 ...)
> RETRY          :R2      retry (CREATE-SERVER PORT 4005 ...)
> STOP           :R3      stop loading file
> /home/sw2wolf/.vim/slime/start-swank.lisp
> ABORT          :R4      Abort main loopondition of type
> SYSTEM::INTERRUPT-CONDITION.
>
>
> Regards!
>
> 在 Wed, 10 Oct 2012 03:59:30 +0800,Vladimir Tzankov <[email protected]> 写道:
>
>
>> On Tue, Oct 9, 2012 at 11:03 AM, z_axis <[email protected]> wrote:
>>>
>>> Would you like shed a light on me ?
>>> http://stackoverflow.com/questions/12650082/about-stumpwm-and-swank
>>>
>>> Once swank server is started, i can do nothing using stumpwm .
>>
>>
>> The swank server supports several communication styles. Latest version
>> does not specify preferred one for clisp and it fallbacks to
>> singlethreaded-connection. This means that all i/o, processing, etc
>> happens in the clisp main thread, i.e. you may have single swank
>> connection and start-server never returns.
>>
>> If you want to have multiple connections - change (in
>> swank-clisp.lisp) preferred-communication-style to return :spawn
>> (however did not test this - just reading the code).
>>
>> Vlad
>
>

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.