Hello,
I am having trouble getting SLIME to start on Windows 7. I'm afraid I'm not at all clear how to debug this and am looking for a starting point. Here is a link to the output from *inferior-lisp* (it is too large for pasting, and I have no idea which part is relevant): http://pages.cs.wisc.edu/~mick/downloads/20120202-slime_errors.txt
OS: Windows 7 64-bit Emacs: GNU Emacs 23.4.1 Slime: slime-20120208-cvs from Quicklisp Implementation: SBCL 1.0.55
I have had SLIME work in the past with SBCL on Windows 7. I was also able to get this version of SLIME to start with Clozure Common Lisp 1.7 32-bit.
Thanks for any help, Mick
* Mick Beaver [2012-03-02 21:12] writes:
Hello,
I am having trouble getting SLIME to start on Windows 7. I'm afraid I'm not at all clear how to debug this and am looking for a starting point. Here is a link to the output from *inferior-lisp* (it is too large for pasting, and I have no idea which part is relevant): http://pages.cs.wisc.edu/~mick/downloads/20120202-slime_errors.txt
OS: Windows 7 64-bit Emacs: GNU Emacs 23.4.1 Slime: slime-20120208-cvs from Quicklisp Implementation: SBCL 1.0.55
Should be fixed in HEAD now. It will take a while until Quicklisp picks it up.
Helmut
Hello,
On Tue, Mar 6, 2012 at 3:48 PM, Helmut Eller heller@common-lisp.net wrote:
Should be fixed in HEAD now. It will take a while until Quicklisp picks it up.
Thank you very much for fixing this. Is there a specific commit that I could look at to see what the fix was? I'm hoping to learn from this...
Thanks, Mick
* Mick Beaver [2012-03-06 22:16] writes:
Hello,
On Tue, Mar 6, 2012 at 3:48 PM, Helmut Eller heller@common-lisp.net wrote:
Should be fixed in HEAD now. It will take a while until Quicklisp picks it up.
Thank you very much for fixing this. Is there a specific commit that I could look at to see what the fix was? I'm hoping to learn from this...
There's not much to learn: somebody accidentally removed fd-stream-input-buffer-empty-p. Here is the patch:
diff --git a/swank-sbcl.lisp b/swank-sbcl.lisp --- a/swank-sbcl.lisp +++ b/swank-sbcl.lisp @@ -195,12 +195,15 @@ (return nil)) (sleep 0.1))))
+(defun fd-stream-input-buffer-empty-p (stream) + (let ((buffer (sb-impl::fd-stream-ibuf stream))) + (or (not buffer) + (= (sb-impl::buffer-head buffer) + (sb-impl::buffer-tail buffer))))) + #-win32 (defun input-ready-p (stream) - (or (let ((buffer (sb-impl::fd-stream-ibuf stream))) - (when buffer - (< (sb-impl::buffer-head buffer) - (sb-impl::buffer-tail buffer)))) + (or (not (fd-stream-input-buffer-empty-p stream)) #+#.(swank-backend:with-symbol 'fd-stream-fd-type 'sb-impl) (eq :regular (sb-impl::fd-stream-fd-type stream)) (not (sb-impl::sysread-may-block-p stream))))
Helmut