Slime Not Working in EMACS

Discussion of programming Lisps using Emacs, including SLIME and other tools
Post Reply
Tim
Posts: 7
Joined: Tue Jul 15, 2008 7:42 pm
Contact:

Slime Not Working in EMACS

Post by Tim » Sun Jul 20, 2008 8:22 pm

Hey all, I would appreciate some help sorting this out. SLIME does not work in EMACS, and here is the output:
http://pastebin.com/fcefb49d

Just to give you a little bit of context, this is on a shell account given to me by a friend. Emacs and several dialects of LISP are already installed, but SLIME is not. I got the latest version of slime from CVS and it is in my home directory. My .emacs file looks like this:

Code: Select all

(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/home/tss/slime")
(require 'slime)
(slime-setup)
Version information:
GNU Emacs 21.4.1
SBCL 0.8.16
GNU CLISP 2.33.2 (2004-06-02) (built 3318123717) (memory 3398465807)
SLIME: Latest from CVS

findinglisp
Posts: 447
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX
Contact:

Re: Slime Not Working in EMACS

Post by findinglisp » Sun Jul 20, 2008 10:36 pm

That's an ancient version of SBCL. Perhaps SLIME has moved on and is no longer compatible with something that old?
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/

Tim
Posts: 7
Joined: Tue Jul 15, 2008 7:42 pm
Contact:

Re: Slime Not Working in EMACS

Post by Tim » Sun Jul 20, 2008 10:47 pm

findinglisp wrote:That's an ancient version of SBCL. Perhaps SLIME has moved on and is no longer compatible with something that old?
I thought about that, but then I switched to clisp (which, while it's old, is supported according to the website) and still had the problem.

Wodin
Posts: 56
Joined: Sun Jun 29, 2008 8:16 am

Re: Slime Not Working in EMACS

Post by Wodin » Mon Jul 21, 2008 12:20 am

This looks suspicious:

Code: Select all

compilation aborted because of fatal error:
  READ failure in COMPILE-FILE:
    READER-ERROR at 19070 (line 515, column 70) on #<FILE-STREAM for "file \"/home/tss/slime/swank-sbcl.lisp\"" {9B\
56A49}>:
Symbol "FIND-DEFINITION-SOURCES-BY-NAME" not found in the SB-INTROSPECT package.
Is slime correctly checked out? Maybe it's corrupt or incomplete?

What does slime/swank-sbcl.lisp look like around line 515?

Tim
Posts: 7
Joined: Tue Jul 15, 2008 7:42 pm
Contact:

Re: Slime Not Working in EMACS

Post by Tim » Mon Jul 21, 2008 4:28 am

Wodin wrote:This looks suspicious:

Code: Select all

compilation aborted because of fatal error:
  READ failure in COMPILE-FILE:
    READER-ERROR at 19070 (line 515, column 70) on #<FILE-STREAM for "file \"/home/tss/slime/swank-sbcl.lisp\"" {9B\
56A49}>:
Symbol "FIND-DEFINITION-SOURCES-BY-NAME" not found in the SB-INTROSPECT package.
Is slime correctly checked out? Maybe it's corrupt or incomplete?

What does slime/swank-sbcl.lisp look like around line 515?
I tried deleting the slime directory and checking it out again, but I got the same result.

Code: Select all

(defimplementation find-definitions (name)
  (loop for type in *definition-types* by #'cddr
          for locations = (sb-introspect:find-definition-sources-by-name   <--- Line 15
                         name type)
        append (loop for source-location in locations collect
                     (make-source-location-specification type name
                                                         source-location))))

Do you think there would be a way to get an earlier version of SLIME to see if that would work?

Wodin
Posts: 56
Joined: Sun Jun 29, 2008 8:16 am

Re: Slime Not Working in EMACS

Post by Wodin » Mon Jul 21, 2008 5:46 am

Tim wrote:I tried deleting the slime directory and checking it out again, but I got the same result.
Oh well, then I don't know what the problem is.
Do you think there would be a way to get an earlier version of SLIME to see if that would work?
Yes, in the directory that you checked out slime to, do something like this:
$ cvs up -PAd -D "2007/01/01 12:34:56"

or

$ cvs up -PAd -D "2 months ago"

Post Reply