joaotavora / sly

Sylvester the Cat's Common Lisp IDE
1.27k stars 145 forks source link

Error starting sly in emacs 25.1.1 #103

Closed spacebat closed 8 years ago

spacebat commented 8 years ago

I've checked out sly master, compiled the contrib modules with make compile compile-contrib and deleted the contents of ~/.cache/common-lisp/

Then I created a file init-sly.el with just the three lines for setup described in the sly readme - load-path, autoloads and inferior-lisp-program. Starting emacs with emacs -q --load init-sly.el and then running M-x sly, I get a wrong-type-argument error, because cl-second is being called on a string. This is because sly-contrib--required-slynk-modules is filled with conses such as:

(slynk-indentation . "/Users/spacebat/.emacs.d/lib/sly/contrib/"):

Whereas the documentation for this variable indicates the cdr of the items should be a list not a string. I've tried adding a message to the place where cl-pushnew is used to populate this alist, however it doesn't seem to be called - at least the messages don't appear in the Messages buffer.

This is the full backtrace I'm getting. Should I be checking out a tag instead of master?

Debugger entered--Lisp error: (wrong-type-argument listp "/Users/spacebat/.emacs.d/lib/sly/contrib/")
  cl-second((slynk-indentation . "/Users/spacebat/.emacs.d/lib/sly/contrib/"))
  mapcar(cl-second ((slynk-indentation . "/Users/spacebat/.emacs.d/lib/sly/contrib/") (slynk-stickers "/Users/spacebat/.emacs.d/lib/sly/contrib/" sly-stickers) (slynk-trace-dialog "/Users/spacebat/.emacs.d/lib/sly/contrib/" sly-trace-dialog) (slynk-package-fu "/Users/spacebat/.emacs.d/lib/sly/contrib/" sly-package-fu) (slynk-fancy-inspector . "/Users/spacebat/.emacs.d/lib/sly/contrib/") (slynk-arglists "/Users/spacebat/.emacs.d/lib/sly/contrib/" sly-autodoc) (slynk-mrepl "/Users/spacebat/.emacs.d/lib/sly/contrib/" sly-mrepl)))
  sly-contrib--load-slynk-dependencies()
  sly-set-connection-info(#<process sly-1> (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2"))
  apply(sly-set-connection-info (#<process sly-1> (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2")))
  #[128 "\302\300\303\301\"\"\207" [sly-set-connection-info (#<process sly-1>) apply append] 6 "\n\n(fn &rest MORE)"]((:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2"))
  #[0 "\n\203\300\301!\207\3031\300\301!0\207\304\305@\306=\203'A@;\203'A@\202(\"\207" [#[128 "\302\300\303\301\"\"\207" [sly-set-connection-info (#<process sly-1>) apply append] 6 "\n\n(fn &rest MORE)"] (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2") debug-on-error (error) sly-message "`sly-eval-async' errored: %s" error] 5]()
  funcall(#[0 "\n\203\300\301!\207\3031\300\301!0\207\304\305@\306=\203'A@;\203'A@\202(\"\207" [#[128 "\302\300\303\301\"\"\207" [sly-set-connection-info (#<process sly-1>) apply append] 6 "\n\n(fn &rest MORE)"] (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2") debug-on-error (error) sly-message "`sly-eval-async' errored: %s" error] 5])
  (let ((sly-ignore-protocol-mismatches (quote nil))) (funcall (quote #[0 "\n\203\300\301!\207\3031\300\301!0\207\304\305@\306=\203'A@;\203'A@\202(\"\207" [#[128 "\302\300\303\301\"\"\207" [sly-set-connection-info (#<process sly-1>) apply append] 6 "\n\n(fn &rest MORE)"] (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2") debug-on-error (error) sly-message "`sly-eval-async' errored: %s" error] 5])))
  eval((let ((sly-ignore-protocol-mismatches (quote nil))) (funcall (quote #[0 "\n\203\300\301!\207\3031\300\301!0\207\304\305@\306=\203'A@;\203'A@\202(\"\207" [#[128 "\302\300\303\301\"\"\207" [sly-set-connection-info (#<process sly-1>) apply append] 6 "\n\n(fn &rest MORE)"] (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2") debug-on-error (error) sly-message "`sly-eval-async' errored: %s" error] 5]))))
  #[257 "\211\211@A\303\304\"\203i\211\211G\305U\203\211@\202 \306\307\310GD\"\301\205d\302q\210\311\312\300\"\311\313\300\"\314\315\316\317\320\301\"\321\"\322$\310\203W\211A\262\242\323\211A\262\242DDB\262\202=\324\325\326\323DDE!\266\204\266\202\202\221\303\327\"\203\215\211\211G\305U\203}\211@\202\204\306\307\310GD\"\330\331\"\266\202\202\221\332\333\"\207" [((sly-ignore-protocol-mismatches)) #[128 "\302\300\303\301\"\"\207" [sly-set-connection-info (#<process sly-1>) apply append] 6 "\n\n(fn &rest MORE)"] #<buffer *ielm*> eql :ok 1 signal wrong-number-of-arguments nil mapcar car cdr make-byte-code 0 "\n\203\300\301!\207\3031\300\301!0\207\304\305@\306=\203'A@;\203'A@\202(\"\207" vconcat vector [debug-on-error (error) sly-message "`sly-eval-async' errored: %s" error] 5 quote eval let funcall :abort sly-message "Evaluation aborted on %s." sly-error "Elisp sly-dcase failed: %S"] 16 "\n\n(fn G10)"]((:ok (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2")))
  sly-dispatch-event((:return (:ok (:pid 29359 :style :spawn :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) :lisp-implementation (:type "SBCL" :name "sbcl" :version "1.3.4" :program "/opt/local/bin/sbcl") :machine (:instance "Andrews-MBP" :type "X86-64" :version "Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria\.0\.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3\.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc ...) :modules ("SLYNK-COMPLETION" "SB-CLTL2" "SB-INTROSPECT" "SB-BSD-SOCKETS" "SB-POSIX" "ASDF" "asdf" "UIOP" "uiop") :package (:name "COMMON-LISP-USER" :prompt "CL-USER") :version "1.0.0-beta-2")) 1) #<process sly-1>)
  sly-process-available-input(#<process sly-1>)
  sly-net-filter(#<process sly-1> "00071D(:return (:ok (:pid 29359 :style :spawn :encoding (:coding-systems (\"utf-8-unix\" \"iso-latin-1-unix\")) :lisp-implementation (:type \"SBCL\" :name \"sbcl\" :version \"1.3.4\" :program \"/opt/local/bin/sbcl\") :machine (:instance \"Andrews-MBP\" :type \"X86-64\" :version \"Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz\") :features (:slynk :cl-ppcre cffi-features:flat-namespace cffi-features:x86-64 cffi-features:unix cffi-features:darwin :cffi cffi-sys::flat-namespace alexandria.0.dev::sequence-emptyp :quicklisp :asdf-package-system :asdf3.1 :asdf3 :asdf2 :asdf :os-macosx :os-unix :non-base-chars-exist-p :asdf-unicode :64-bit :64-bit-registers :alien-callbacks :ansi-cl :ash-right-vops :bsd :c-stack-is-control-stack :common-lisp :compare-and-swap-vops :complex-float-vops :cycle-counter :darwin :darwin9-or-better :float-eql-vops :fp-and-pc-standard-save :gencgc :ieee-floating-point :inline-constants :inode64 :integer-eql-vop :interleaved-raw-slots :linkage-table :little-endian :mach-exception-handler :mach-o :memory-barrier-vops :multiply-high-vops :os-provides-blksize-t :os-provides-dladdr :os-provides-dlopen :os-provides-putwc :os-provides-suseconds-t :package-local-nicknames :precise-arg-count-error :raw-instance-init-vops :sb-after-xc-core :sb-core-compression :sb-doc :sb-eval :sb-ldb :sb-package-locks :sb-simd-pack :sb-source-locations :sb-test :sb-thread :sb-unicode :sb-xref-for-internals :sbcl :stack-allocatable-closures :stack-allocatable-fixed-objects :stack-allocatable-lists :stack-allocatable-vectors :stack-grows-downward-not-upward :symbol-info-vops :ud2-breakpoints :unix :unwind-to-frame-and-call-vop :x86-64) :modules (\"SLYNK-COMPLETION\" \"SB-CLTL2\" \"SB-INTROSPECT\" \"SB-BSD-SOCKETS\" \"SB-POSIX\" \"ASDF\" \"asdf\" \"UIOP\" \"uiop\") :package (:name \"COMMON-LISP-USER\" :prompt \"CL-USER\") :version \"1.0.0-beta-2\")) 1)")
  read-event(nil t 2)
  sit-for(2)
  execute-extended-command(nil "sly" "sly")
  funcall-interactively(execute-extended-command nil "sly" "sly")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)
joaotavora commented 8 years ago

I've seen this before. You must be absolutely sure you have deleted stale .elc files from earlier versions of SLY (including contribs!), where that data structure was slightly different.

But I will look closely to your report later.

spacebat commented 8 years ago

Thanks, I had neglected to make clean, and that fixed it. I forgot to mention it was accompanied by a client-server version mismatch warning, of course caused by old elc files. I'll close this now, but I wonder if you have any advice on making sly and slime coexist peacefully? Its going to be a while before I could use sly exclusively.

joaotavora commented 8 years ago

you have any advice on making sly and slime coexist peacefully

@spacebat, depends on what you mean. First of all, this particular problem was not caused by any SLY-SLIME interaction, rather two different SLY versions whose .elc files are incompatible between each other.

Regarding SLY-SLIME co-existance: