sbcl 0.9.17, win32 slime from CVS head
When I type (quit) in REPL, in *inferior-lisp*:
... ;; Swank started at port: 3878. ;; swank:close-connection: NIL
debugger invoked on a UNBOUND-VARIABLE: The variable SWANK::*REAL-STANDARD-OUTPUT* is unbound.
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level.
(SWANK::REVERT-GLOBAL-IO-REDIRECTION) 0]
Thanks!
Yaroslav Kavenchuk kavenchuk@jenty.by writes:
debugger invoked on a UNBOUND-VARIABLE: The variable SWANK::*REAL-STANDARD-OUTPUT* is unbound.
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level.
(SWANK::REVERT-GLOBAL-IO-REDIRECTION) 0]
can you provide a backtrace?
Marco Baringer wrote:
can you provide a backtrace?
0: (SWANK::REVERT-GLOBAL-IO-REDIRECTION) 1: (SWANK::UPDATE-REDIRECTION-AFTER-CLOSE #<SWANK::CONNECTION {AF6DE51}>) 2: (SWANK::RUN-HOOK (SWANK::UPDATE-REDIRECTION-AFTER-CLOSE) #<SWANK::CONNECTION {AF6DE51}>) 3: (SWANK::CLOSE-CONNECTION #<SWANK::CONNECTION {AF6DE51}> NIL NIL) 4: ((FLET #:CLEANUP-FUN-1183)) 5: (SWANK::SIMPLE-SERVE-REQUESTS #<SWANK::CONNECTION {AF6DE51}>) 6: (SWANK::SERVE-CONNECTION #<SB-BSD-SOCKETS:INET-SOCKET descriptor -1 {AF0B8A9}> NIL NIL :UTF-8-UNIX) 7: (SWANK::SETUP-SERVER 0 #<CLOSURE (LAMBDA #) {AE9C07D}> NIL NIL :UTF-8-UNIX) 8: (SWANK:START-SERVER "c:/Temp/slime.1848" :STYLE NIL :DONT-CLOSE NIL :EXTERNAL-FORMAT :UTF-8-UNIX) 9: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:START-SERVER "c:/Temp/slime.1848" :EXTERNAL-FORMAT :UTF-8-UNIX) #<NULL-LEXENV>) 10: (INTERACTIVE-EVAL (SWANK:START-SERVER "c:/Temp/slime.1848" :EXTERNAL-FORMAT :UTF-8-UNIX)) 11: (SB-IMPL::REPL-FUN NIL) 12: ((LAMBDA ())) 13: ((LAMBDA ())) 14: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (LAMBDA #) {AD52635}>) 15: (SB-IMPL::TOPLEVEL-REPL NIL) 16: (SB-IMPL::TOPLEVEL-INIT) 17: ((LABELS SB-IMPL::RESTART-LISP)) 18: ("foreign function: #x4132A1") 19: ("foreign function: #x40BC7A")
Yaroslav Kavenchuk kavenchuk@jenty.by writes:
Marco Baringer wrote:
can you provide a backtrace?
0: (SWANK::REVERT-GLOBAL-IO-REDIRECTION)
ok, thanks. the problem seems to be that the code for setting up io-redirection on the standard streams has been commented out. if you open up swank.lisp and uncomment these lines:
;; (setup-stream-indirection *standard-output*) ;; (setup-stream-indirection *error-output*) ;; (setup-stream-indirection *trace-output*) ;; (setup-stream-indirection *standard-input*) ;; (setup-stream-indirection *debug-io*) ;; (setup-stream-indirection *query-io*) ;; (setup-stream-indirection *terminal-io*)
it should fix everything.
now, why are these lines commented out in the first place? there's this comment in swank.lisp:
;; FIXME: This doesn't work with Allegros IDE (MAKE-SYNONYM-STREAM ;; doesn't work with their GUI-streams). Maybe we should just drop this ;; global redirection stuff.
is this reason enough to disable global-io redirection? does it have other problems i'm not aware of?