run-program locks up in a SLIME at winxp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
New
|
Undecided
|
Unassigned |
Bug Description
Configuration is as at bug #1470458
At SLIME:
CL-USER> (defparameter *myout* *standard-output*)
CL-USER> (run-program "ipconfig" () :search t :output t :wait t)
SLIME locks up and does not respond any more.
switch to *inferior-lisp* buffer:
* (dotimes (i 15) (finish-output *myout*) (sleep 0.5))
after that SLIME unfreezes.
;;; relevant portion of my .emacs:
(add-to-list 'load-path "c:/s2b/
(require 'slime)
(require 'slime-autoloads)
(add-to-list 'slime-contribs 'slime-fancy)
(setq slime-net-
(slime-setup '(slime-fancy slime-asdf slime-indentation)) ;
(setq inferior-
(slime)
;;; EOF .emacs
I noticed that the same problem is in EMACS even without SLIME. I seem to have a workaround:
1. I use a special runner application written in Delphi 2009, sources attached.
2. I run SBCL with a separate console.
; in my .emacs \shortcuts\ \CallBatFromGui Detached. exe cmd /c start C:\\s2b\ \prf\\sbcl- 1.2.12\ \sbcl.exe --core C:\\s2b\ \prf\\sbcl- 1.2.12\ \sbcl.core --load c:\\s2b\ \sw\\slime- init.lisp" )
(defun run-slime ()
(interactive)
(shell-command "c:\\s2b\
(sleep-for 1)
(slime-connect "127.0.0.1" 4005))
(run-slime)
3. To run a program from SBCL, I use my runner application again: run-program
"c:/utils/ CallBatFromGuiD etached. exe"
(defun call-bat (bat args &key (wait t))
(apply #'sb-ext:
(cons bat args)
:wait wait))
CallBatFromGuiD etached. exe can call bat-files, and windows applications. Output can be obtained via stream redirection ">".