kovisoft / slimv

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

Error starting SWANK server on macOS #60

Closed alexpopov closed 7 years ago

alexpopov commented 7 years ago

I tried looking for existing issues and debugging myself, but I was unable to (first-time lisp user)

The tutorial said to press ,d, which worked, but while launching the the server this error comes up:

; 
; caught ERROR:
;   READ error during COMPILE-FILE:
;   
;     The symbol "HOST-ENT-ADDRESS-TYPE" is not external in the SB-BSD-SOCKETS package.
;   
;       Line: 117, Column: 76, File-Position: 3634
;   
;       Stream: #<SB-SYS:FD-STREAM
;                 for "file ~/.vim/bundle/slimv0913/slime/swank/sbcl.lisp"
;                 {1353D5A9}>
;; 
;; Error compiling ~/.vim/bundle/slimv0913/slime/swank/sbcl.lisp:
;;   COMPILE-FILE returned NIL.
;; 

I'm not sure if this is an issue with my Vim or installation.

Tested with: Vim 8.0 and MacVim 8.0.596 on macOS 10.12.4 I installed SBCL from the official website and slimv from vim.org

Thank you

kovisoft commented 7 years ago

I think the problem is that you have an outdated version of sbcl. I got this error when I was using sbcl version 1.0.55 with the latest swank server. After upgrading to sbcl 1.3.1 the problem disappeared. Please check your sbcl version and if it's old then try to upgrade it. If your distribution does not contain a newer version then you may manually install it. If there is no newer version available for your system, then you can try to replace swank/sbcl.lisp in the swank server embedded in slimv with an older version 2.18 from here.

alexpopov commented 7 years ago

Thank you very much! For macOS, the version on brew works just fine.