Hi Slimers,
I'm running the latest stable SBCL:
$ sbcl --version 1.0.47
the most recent version of SLIME shipped by quicklisp:
$ ls -d ~/quicklisp/dists/quicklisp/software/slime-*-cvs /root/quicklisp/dists/quicklisp/software/slime-20110320-cvs
and Emacs 23 shipped with Debian Squeeze:
(emacs-version) => "GNU Emacs 23.2.1 (i486-pc-linux-gnu) of 2010-12-11 on raven, modified by Debian"
When I try to connect to a running SBCL lisp image containing a SWANK server (same version) I immediately end up in the debugger:
--8<---------------cut here---------------start------------->8--- Can't locate module: SWANK-IO-PACKAGE::SWANK-PACKAGE-FU [Condition of type SIMPLE-ERROR]
Restarts: 0: [*ABORT] Return to SLIME's top level. 1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "worker" RUNNING {CD36339}>)
Backtrace: 0: (SWANK::MODULE-FILENAME SWANK-IO-PACKAGE::SWANK-PACKAGE-FU) 1: (SWANK:SWANK-REQUIRE ..) 2: (SB-INT:SIMPLE-EVAL-IN-LEXENV ..) 3: (EVAL ..) 4: (SWANK:EVAL-FOR-EMACS ..) 5: ((LAMBDA ())) 6: (SWANK-BACKEND::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<FUNCTION (LAMBDA #) {A557C25}>) 7: ((FLET SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK) #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<FUNCTION (LAMBDA #) {A557C25}>) 8: ((LAMBDA ())) 9: ((FLET #:WITHOUT-INTERRUPTS-BODY-[BLOCK353]358)) 10: ((FLET SB-THREAD::WITH-MUTEX-THUNK)) 11: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-MUTEX]300)) 12: (SB-THREAD::CALL-WITH-MUTEX ..) 13: (SB-THREAD::INITIAL-THREAD-FUNCTION) 14: ("foreign function: call_into_lisp") 15: ("foreign function: funcall0") 16: ("foreign function: new_thread_trampoline") 17: ("foreign function: #x4002D955") --more-- --8<---------------cut here---------------end--------------->8---
The lisp image uses a core built like this:
(mapc #'ql:quickload '("SWANK" ;;; more packages here ))
(swank-loader:dump-image "foo.core")
sebyte -- Eamcs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap
* Sebastian Tennant [2011-04-22 20:26] writes:
The lisp image uses a core built like this:
(mapc #'ql:quickload '("SWANK" ;;; more packages here ))
(swank-loader:dump-image "foo.core")
Slime can't find contrib/swank-package-fu.lisp. You can fix that by loading it before dumping the image; alternatively you can make it available at runtime in one of the directories listed in swank::*load-path*.
Helmut
Quoth Helmut Eller heller@common-lisp.net:
- Sebastian Tennant [2011-04-22 20:26] writes:
The lisp image uses a core built like this:
(mapc #'ql:quickload '("SWANK" ;;; more packages here ))
(swank-loader:dump-image "foo.core")
Slime can't find contrib/swank-package-fu.lisp. You can fix that by loading it before dumping the image;
Not necessary.
alternatively you can make it available at runtime in one of the directories listed in swank::*load-path*.
Again, not necessary. swank::*load-path* already includes the slime/contrib directory.
The problem was a file permissions problem, entirely of my own making.
Thanks for pointing me in the right direction though.
Seb