kovisoft / slimv

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

Slimv fails to autodetect mit-scheme and manual swank initiation fails too. #117

Closed lazakoa closed 3 years ago

lazakoa commented 3 years ago
let g:scheme_builtin_swank = 1

The above doesn't detect mit-scheme 11.2.

let g:slimv_swank_cmd = '! gnome-terminal -- mit-scheme --load /home/andrei/.vim/bundle/slimv/slime/contrib/swank-mit-scheme.scm &'

The above also fails with the following error

Image saved on Sunday March 7, 2021 at 3:24:56 PM
  Release 11.2 || SF || LIAR/x86-64
;Loading "/home/andrei/.vim/bundle/slimv/slime/contrib/swank-mit-scheme.scm"...
;  Loading "format.com"... done
;  Loading "load.scm"...
;    Loading "sos-unx.pkd"... done
;    Loading "geneqht.com"... done
;    Loading "generic.com"... done
;    Loading "genmult.com"... done
;    Loading "tvector.com"... done
;    Loading "recslot.com"... done
;    Loading "slot.com"... done
;    Loading "class.com"... done
;    Loading "instance.com"... done
;    Loading "method.com"... done
;    Loading "printer.com"... done
;    Loading "macros.com"... done
;  ... done
;The object #[package 12 (user)], passed as an argument to ->environment, is not an environment.
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

No way to use scheme right now with slimv at least for me. Any suggestions or workaround would be appreciated, thanks in advance!

P.S sbcl works fine.

lazakoa commented 3 years ago

I got it to work with this:

let g:slimv_swank_cmd = '! gnome-terminal -- scheme --eval "(let loop () (start-swank) (loop))"'
carlosganzerla commented 2 years ago

I think I fixed it on https://github.com/kovisoft/slimv/pull/121

lazakoa commented 2 years ago

Cool, I'll give it a try soon.