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@gmail.com:
> > Hi,
> >
> > Which Common Lisp implementation do you use?
> >
> > /S
> >
> > On Mon, Jan 12, 2009 at 10:14 PM, Timur Sufiev
tsufiev@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@common-lisp.net
>
http://common-lisp.net/mailman/listinfo/slime-devel
>