Hello,
Monday I did an update on Debian unstable
[UPGRADE] slime 1:20071202-1 -> 1:20080223-1
and now when I start slime I get an error:
(progn (load "/usr/share/common-lisp/source/slime/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.27531" :coding-system "iso-latin-1-unix"))
This is SBCL 1.0.14.debian, an implementation of ANSI Common Lisp. More information about SBCL is available at http://www.sbcl.org/.
SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. CL-USER(1): ; loading #P"/usr/share/common-lisp/source/slime/swank-loader.lisp" ; in: LAMBDA NIL ; (SB-INT:NAMED-LAMBDA SWANK-LOADER::BINARY-PATHNAME ; (SWANK-LOADER::SRC-PATHNAME SWANK-LOADER::BINARY-DIR) ; (DECLARE (IGNORE SWANK-LOADER::BINARY-DIRECTORY)) ; (BLOCK SWANK-LOADER::BINARY-PATHNAME ; (LET ((SWANK-LOADER::CFP #)) ; (MERGE-PATHNAMES ; (MAKE-PATHNAME :DIRECTORY `# :NAME # :TYPE #) ; (COMMON-LISP-CONTROLLER:CALCULATE-FASL-ROOT))))) ; ==> ; #'(SB-INT:NAMED-LAMBDA SWANK-LOADER::BINARY-PATHNAME ; (SWANK-LOADER::SRC-PATHNAME SWANK-LOADER::BINARY-DIR) ; (DECLARE (IGNORE SWANK-LOADER::BINARY-DIRECTORY)) ; (BLOCK SWANK-LOADER::BINARY-PATHNAME ; (LET ((SWANK-LOADER::CFP #)) ; (MERGE-PATHNAMES ; (MAKE-PATHNAME :DIRECTORY `# :NAME # :TYPE #) ; (COMMON-LISP-CONTROLLER:CALCULATE-FASL-ROOT))))) ; ; caught STYLE-WARNING: ; declaring unknown variable BINARY-DIRECTORY to be ignored ; ; caught STYLE-WARNING: ; The variable BINARY-DIR is defined but never used. ; in: LAMBDA NIL ; (SWANK-LOADER::UNIQUE-DIRECTORY-NAME) ; ; caught STYLE-WARNING: ; undefined function: UNIQUE-DIRECTORY-NAME
; ; caught STYLE-WARNING: ; This function is undefined: ; UNIQUE-DIRECTORY-NAME ; ; compilation unit finished ; caught 4 STYLE-WARNING conditions
debugger invoked on a UNDEFINED-FUNCTION in thread #<THREAD "initial thread" {10046D2CA1}>: The function SWANK-LOADER::UNIQUE-DIRECTORY-NAME is undefined.
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.
("bogus stack frame") 0]
and of course I never get a slime REPL. Before I file a bug report with Debian I thought I'd ask here to see if anybody knew about this, if there is a workaround etc.
Thanks, Liam
* Liam Healy [2008-02-27 23:26+0100] writes:
Before I file a bug report with Debian I thought I'd ask here to see if anybody knew about this, if there is a workaround etc.
This seems to be Debian specific. The missing function UNIQUE-DIRECTORY-NAME is now called UNIQUE-DIR-NAME. Peter Van Eynde should probably set *FASL-DIRECTORY* instead of hard-coding the paths.
Helmut.
forwarded 468087 http://common-lisp.net/pipermail/slime-devel/2008-February/007120.html tags 468087 + patch thanks
Hello!
On Thu, 28 Feb 2008 15:47:33 +0100, Helmut Eller wrote:
- Liam Healy [2008-02-27 23:26+0100] writes:
Before I file a bug report with Debian I thought I'd ask here to see if anybody knew about this, if there is a workaround etc.
Liam: please, either directly report it to Debian first [1] or, better, check if it hasn't been reported yet: it's bug #468087 [2] (cc:ing the submitter and the bug report as well).
This seems to be Debian specific. The missing function UNIQUE-DIRECTORY-NAME is now called UNIQUE-DIR-NAME.
Indeed, thank you for having checked that. However, it seems that nothing about this change is in the ChangeLog nor in the CVS commit for slime/swank-loader.lisp [3]:
===== revision 1.78 date: 2008-02-16 20:26:22 +0100; author: heller; state: Exp; lines: +54 -60 Split loading and initialization (again).
* swank-loader.lisp (init): New. Delete old packages only if explicitly requested. Also, if the swank package already exists don't load swank again. (setup): New function.
* swank.lisp (setup): New function. Moved over here from swank-loader.lisp.
* slime.el (slime-init-command): Call swank-loader:init.
In the REPL, mark the trailing newline also as input.
* slime.el (slime-repl-send-input): Mark the newline with the 'slime-repl-old-input property. (slime-repl-grab-old-input): Strip the newline. =====
Peter Van Eynde should probably set *FASL-DIRECTORY* instead of hard-coding the paths.
Thank you for the advice, I'll check later about that (FWIW, SLIME is now in team maintenance [4]). For the moment, the fix is easy and, obviously, Debian specific:
--8<---------------cut here---------------start------------->8--- --- swank-loader.lisp.ORG 2008-02-28 18:28:21.000000000 +0100 +++ swank-loader.lisp 2008-02-28 18:30:21.000000000 +0100 @@ -123,7 +123,7 @@ (let ((cfp (compile-file-pathname src-pathname))) (merge-pathnames (make-pathname :directory - `(:relative "swank" "fasl" ,(unique-directory-name)) + `(:relative "swank" "fasl" ,(unique-dir-name)) :name (pathname-name cfp) :type (pathname-type cfp)) (clc:calculate-fasl-root)))) --8<---------------cut here---------------end--------------->8---
Thx, bye, Gismo / Luca
Footnotes: [1] http://bugs.debian.org [2] http://bugs.debian.org/468087 [3] http://common-lisp.net/cgi-bin/viewcvs.cgi/slime/swank-loader.lisp?root=slim... [4] http://pkg-common-lisp.alioth.debian.org
Thanks, I submitted the report http://bugs.debian.org/468429
On 2/28/08, Helmut Eller heller@common-lisp.net wrote:
- Liam Healy [2008-02-27 23:26+0100] writes:
Before I file a bug report with Debian I thought I'd ask here to see if anybody knew about this, if there is a workaround etc.
This seems to be Debian specific. The missing function UNIQUE-DIRECTORY-NAME is now called UNIQUE-DIR-NAME. Peter Van Eynde should probably set *FASL-DIRECTORY* instead of hard-coding the paths.
Helmut.
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel