Archive for the ‘Lisp’ Category.

SLIME Problem with SBCL

When starting up SLIME (M-x slime) I’m getting a hangup error:


;; Swank started at port: 36773.
36773
* 
Process inferior-lisp hangup

From searching, this appears to be a problem with Emacs and my version of the Linux Kernel (2.6.8). The workaround is apparently to set the inferior lisp to “nohup sbcl” which prevents SBCL from receiving the hangup signal. Unfortunately it also redirects STDOUT/STDIN which seems to cause a problem with the SLIME from CVS.

The solution that I’ve found is to start swank (the Lisp portion of SLIME) manually in SBCL.


; Load swank
(load "/path/to/swank-loader.lisp")
 
; Start the swank server
(swank:create-server)

Then in Emacs start SLIME with M-x slime-connect, the defaults of Host: 127.0.0.1 and Port: 4005 should be fine.

SLIME Screenshot

[Digg] [Reddit] [DZone]