[slime-devel] swank:*globally-redirect-io* behaviour

Slawek Zak slawek.zak at gmail.com
Sat Jan 24 01:10:12 UTC 2009


On ACL i work around it like described here:

http://hacksandglory.blogspot.com/2009/01/io-in-allegro-cl-multiprocessing-code.html

Don't know about SBCL. Sorry.

/S

On Sat, Jan 24, 2009 at 1:21 AM, Austin Haas <austin at pettomato.com> wrote:
>
> I ran into this today, as well. I'm launching swank on a remote server and connecting over ssh through my local emacs. Any output sent to *standard-output* from a thread only appears in the console on the server and not in the SLIME repl.
>
> My example is:
>
> ;;; Started on remote server...
>
> (push "/home/astro/software/clbuild/systems/" asdf:*central-registry*)
> (asdf:oos 'asdf:load-op :swank)
> (setf swank:*globally-redirect-io* t)
> (swank:create-server :dont-close t)
> (sb-impl::toplevel-repl nil)
>
> ;;; Connect to remote swank from client using ssh, emacs, and slime, then evaluate in emacs...
>
> (sb-thread:make-thread
>  (lambda ()
>   (write-line "In some random thread." *standard-output*)))
>
>
> Timur, did you find a solution?
>
> -austin
>
> --
> Austin Haas
> Pet Tomato, Inc.
> http://pettomato.com
>
> On Tue Jan 20 11:25 , Timur Sufiev wrote:
>> Hi.
>>
>> SBCL 1.0.23
>>
>> 2009/1/14 Slawek Zak <slawek.zak at gmail.com>:
>> > Hi,
>> >
>> > Which Common Lisp implementation do you use?
>> >
>> > /S
>> >
>> > On Mon, Jan 12, 2009 at 10:14 PM, Timur Sufiev <tsufiev at gmail.com> wrote:
>> >>
>> >> It seems that we have some misunderstaning of
>> >> swank:*globally-redirect-io* variable. Consider code shown below:
>> >>
>> >>  (setf swank:*globally-redirect-io* t)
>> >>  (setf swank:*use-dedicated-output-stream* nil)
>> >>  (swank:create-server :dont-close t)
>> >>  (threads:make-thread (lambda () (some-processing-function)))
>> >>
>> >> When slime is connected to this program it does not receive any output
>> >> (which goes to any of *standard-output*, *trace-output*, *debug-io*).
>> >> The expected behaviour is output being redirected to slime connected.
>>
>> --
>> Timur Sufiev
>>
>> _______________________________________________
>> slime-devel site list
>> slime-devel at common-lisp.net
>> http://common-lisp.net/mailman/listinfo/slime-devel
>>
>
>
> _______________________________________________
> slime-devel site list
> slime-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/slime-devel
>




More information about the slime-devel mailing list