kovisoft / slimv

Official mirror of Slimv versions released on vim.org
454 stars 60 forks source link

Bug: Slimv can't compile with SBCL #68

Closed Tacumi closed 6 years ago

Tacumi commented 6 years ago

When I setup slimv in vim+sbcl, I got ERROR that "Symbol "SIMPLE-FUN-HEADER-WIDETAG" not found in the SB-VM package." How can I run swank server with sbcl?

Error message is as follows.

⋊> ~ sbcl --load ~/.vim/bundle/repos/github.com/kovisoft/slimv/slime/start-swank.lisp
This is SBCL 1.4.9, 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.
;
; caught ERROR:
;   READ error during COMPILE-FILE:
;
;     Symbol "SIMPLE-FUN-HEADER-WIDETAG" not found in the SB-VM package.
;
;       Line: 1587, Column: 52, File-Position: 63635
;
;       Stream: #<SB-INT:FORM-TRACKING-STREAM for "file /Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/sbcl.lisp" {1003DA9A83}>
;;
;; Error compiling /Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/sbcl.lisp:
;;   COMPILE-FILE returned NIL.
;;
While evaluating the form starting at line 16, column 0
  of #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/start-swank.lisp":

debugger invoked on a SIMPLE-ERROR in thread
#<THREAD "main thread" RUNNING {10005505B3}>:
  COMPILE-FILE returned NIL.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY   ] Retry EVAL of current toplevel form.
  1: [CONTINUE] Ignore error and continue loading file "/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/start-swank.lisp".
  2: [ABORT   ] Abort loading file "/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/start-swank.lisp".
  3:            Ignore runtime option --load "/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/start-swank.lisp".
  4:            Skip rest of --eval and --load options.
  5:            Skip to toplevel READ/EVAL/PRINT loop.
  6: [EXIT    ] Exit SBCL (calling #'EXIT, killing the process).

(SWANK-LOADER::COMPILE-FILES (#P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/packages.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/backend.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/source-path-parser.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/source-file-cache.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/sbcl.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/gray.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/match.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank/rpc.lisp" #P"/Users/tacumi/.vim/bundle/repos/github.com/kovisoft/slimv/slime/swank.lisp") #P"/Users/tacumi/.slime/fasl/2.19/sbcl-1.4.9-darwin-x86-64/" T T)
   source: (ERROR "COMPILE-FILE returned NIL.")
0]
kovisoft commented 6 years ago

Thank you for the feedback. It seems that some changes in SBCL broke the swank server code (borrowed from SLIME). This is already fixed in the latest SLIME, so you may want to try to fetch latest version of slime/swank/sbcl.lisp from here. Or you can wait until I refresh the swank server in slimv.

kovisoft commented 6 years ago

Upgraded embedded SLIME to version 2.21, see commit https://github.com/kovisoft/slimv/commit/efa9af5cce89d5b5383ddf37640f41e90b9e54c3

Tacumi commented 6 years ago

Thank you for upgrading the internal slime package. I'm using vim 8.1 on macOS high Sierra installed by Homebrew.

This problem is solved after upgrading slimv. I'll close this topic.

adampaulukanis commented 3 years ago

Thank you for the feedback. It seems that some changes in SBCL broke the swank server code (borrowed from SLIME). This is already fixed in the latest SLIME, so you may want to try to fetch latest version of slime/swank/sbcl.lisp from here. Or you can wait until I refresh the swank server in slimv.

Thanks for your answer. It really helped me a lot!