[OSX/CMU-CL] Problems with inspector

Didier Verna didier at lrde.epita.fr
Tue Jan 23 15:34:48 UTC 2018


Luís Oliveira <luismbo at gmail.com> wrote:

> Can you show us more of the backtrace and your config (both the elisp
> side and .swank.lisp)? I suspect you may have selected a non-supported
> communication style. (Granted, if that's the case, SLIME should have
> failed more gracefully.)

This is the contents of .swank.lisp (I didn't know I had that file :-D):

(in-package :swank)
 
(require "asdf")
(asdf:load-system :asdf)
 
(pushnew 'try-compile-file-with-asdf *compile-file-for-emacs-hook*)


This is my Slime initialization:

;; These ones are not customizable:
(setq slime-contribs '(slime-banner
		       slime-fancy
		       slime-asdf
		       slime-presentation-streams
		       slime-highlight-edits
		       slime-scratch
		       slime-sprof
		       slime-indentation)
      slime-scratch-file         (expand-file-name ".scratch.cl" "~")
      slime-lisp-implementations '((sbcl  ("sbcl"))
				   (cmucl ("lisp"))
				   (clisp ("clisp"))
				   (ecl   ("ecl"))
				   (acl   ("/Applications/AllegroCLexpress.app/Contents/Resources/alisp"))
				   (abcl  ("abcl")))
      slime-default-lisp         'sbcl)

;; This is needed because SLIME-CONTRIBS normally needs to be set before
;; loading most of slime, whereas this file is an EVAL-AFTER-LOAD.
(slime-setup)


My CMUCL is installed from the 21c darwin-x86 tarballs. I'm now
wondering whether the inspector can't work because this is a binary
distribution?


The full backtrace is given below. Inspecting anything, like #'identity,
will trigger this.

Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:Error (TYPE-ERROR) during printing: #<TYPE-ERROR {48C428CD}>
   [Condition of type TYPE-ERROR]

Restarts:
 0: [RETRY] Retry SLIME inspection request.
 1: [*ABORT] Return to SLIME's top level.
 2: [ABORT] Return to Top-Level.

Backtrace:
  0: (SWANK/CMUCL::MAILBOX NIL)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
  1: ((FLET SWANK/BACKEND:SEND) NIL T)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
  2: ("DEFMETHOD STREAM-WRITE-STRING (SLIME-OUTPUT-STREAM T)")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
  3: ((METHOD STREAM-WRITE-STRING NIL (SWANK/GRAY::SLIME-OUTPUT-STREAM T)) (#(2 1 3 4 0) . #(#)) #<unused-arg> #<SWANK/GRAY::SLIME-OUTPUT-STREAM {48C381A5}> "#<" ...)Type-error in KERNEL::OBJECT-NOT-TYPE-E..
  4: (LISP::WRITE-STRING* "#<" #<SWANK/GRAY::SLIME-OUTPUT-STREAM {48C381A5}> 0 2)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
  5: (LISP::%PRINT-UNREADABLE-OBJECT #<Method-Combination OR (:MOST-SPECIFIC-FIRST) {48C14D95}> #<SWANK/GRAY::SLIME-OUTPUT-STREAM {48C381A5}> T T ...)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  N..
  6: (SWANK::CALL/TRUNCATED-OUTPUT-TO-STRING 200 #<Closure Over Function "DEFUN PREPARE-TITLE" {48C37FC1}> "..")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PRO..
  7: (SWANK::CALL-WITH-BINDINGS ((*PRINT-LINES* . 1) (*PRINT-RIGHT-MARGIN* . 75) (*PRINT-PRETTY* . T) (*PRINT-READABLY*)) #<Closure Over Function "DEFUN PREPARE-TITLE" {48C37F41}>)Type-error in KERNEL::OBJ..
  8: (SWANK::ISTATE>ELISP #S(SWANK::ISTATE :OBJECT #<Method-Combination OR # {48C14D95}> :VERBOSE NIL :PARTS #() :ACTIONS #() :METADATA-PLIST (:SORT-ORDER # :GROUPING-KIND # :CHECKLIST ...) ...))Type-error..
  9: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME inspection request." #<Closure Over Function "DEFSLIMEFUN INIT-INSPECTOR" {48C284D1}>)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of t..
 10: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<Closure Over Function "DEFSLIMEFUN INIT-INSPECTOR" {48C284C1}>)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 11: (SWANK:EVAL-FOR-EMACS (SWANK:INIT-INSPECTOR "*") "COMMON-LISP-USER" 84)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 12: (SWANK::PROCESS-REQUESTS T)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 13: ("DEFUN HANDLE-REQUESTS")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 14: ("DEFUN HANDLE-REQUESTS")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 15: ("DEFINTERFACE CALL-WITH-DEBUGGER-HOOK" #<Function SWANK:SWANK-DEBUGGER-HOOK {48107A89}> #<Closure Over Function "DEFUN HANDLE-REQUESTS" {48C26F01}>)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER..
 16: (SWANK::CALL-WITH-BINDINGS ((*STANDARD-INPUT* . #) (*STANDARD-OUTPUT* . #) (*TRACE-OUTPUT* . #) (*ERROR-OUTPUT* . #) (*DEBUG-IO* . #<Two-Way Stream, Input = #, Output = #>) ...)Type-error in KERNEL::O..
 17: (SWANK::HANDLE-REQUESTS #<SWANK::SINGLETHREADED-CONNECTION {49D65FFD}> T)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 18: (SWANK::INVOKE-OR-QUEUE-INTERRUPT #<Closure Over Function "DEFUN PROCESS-IO-INTERRUPT" {48C268D1}>)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 19: (SWANK::PROCESS-IO-INTERRUPT #<SWANK::SINGLETHREADED-CONNECTION {49D65FFD}>)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 20: (SWANK/CMUCL::SIGIO-HANDLER #<unused-arg> #<unused-arg> #<unused-arg>)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 21: ("OnLispStack+#x2F [#x10F00] /usr/local/bin/lisp")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 22: ("funcall3+#x46 [#x10DA6] /usr/local/bin/lisp")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 23: ("interrupt_handle_now+#xCE [#x828E] /usr/local/bin/lisp")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 24: ("_sigtramp+#x2B [#xA1743E5B] /usr/lib/system/libsystem_platform.dylib")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 25: ("Foreign function call land")Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 26: (LISP::SUB-SERVE-EVENT 1 0)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 27: (SYSTEM:WAIT-UNTIL-FD-USABLE 0 :INPUT NIL)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 28: (LISP::DO-INPUT #<Stream for Standard Input>)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 29: ("PRECOMPILE-EF-SLOT ISO8859-1" #<Stream for Standard Input> NIL (LISP::*EOF*))Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 30: (LISP::SYNONYM-IN #<Synonym Stream to SYSTEM:*STDIN*> NIL (LISP::*EOF*))Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 31: (LISP::TWO-WAY-IN #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (LISP::*EOF*))Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  ..
 32: (READ-CHAR #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (LISP::*EOF*) NIL)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL..
 33: (LISP::READ-PRESERVING-WHITESPACE-INTERNAL #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) T)Type-error in KERNEL::OBJECT-NOT-T..
 34: (LISP::READ-PRESERVING-WHITESPACE-INTERNAL #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) NIL)Type-error in KERNEL::OBJECT-NOT..
 35: (LISP::READ-PRESERVING-WHITESPACE-INTERNAL 4 #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) ...)Type-error in KERNEL::OBJECT-N..
 36: (LISP::READ-INTERNAL #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) NIL)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  ..
 37: (READ #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) NIL)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of t..
 38: (LISP::%TOP-LEVEL)Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS
 39: ((LABELS LISP::RESTART-LISP SAVE-LISP))Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:  NIL is not of type MULTIPROCESSING::PROCESS


-- 
Resistance is futile. You will be jazzimilated.

Lisp, Jazz, Aïkido: http://www.didierverna.info



More information about the slime-devel mailing list