Code Monkey home page Code Monkey logo

slimv's People

Contributors

adampaulukanis avatar bclube avatar bnoordhuis avatar bvnierop avatar carlosganzerla avatar chiku-samugari avatar dotmilk avatar dsp avatar dusenberrymw avatar elmart avatar fchurca avatar freeblues avatar jach avatar jakykong avatar jurov avatar justin2004 avatar kai-patel avatar kconner avatar kovisoft avatar kpccoil avatar mattn avatar neetless avatar prajjwal avatar qiemem avatar risto-stevcev avatar ski-nsd avatar susam avatar tekki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slimv's Issues

(read) on REPL buffer fails to read S-expressions

The following has been tried on both Windows and Linux with SBCL.

>> (read)
() <enter> works

>> (read)
(list 'a) <enter> does not work

>> (read)
(format t "hello, world!") <enter> does not work

C-w on REPL in insert mode shouldn't remove prompt

Hi. I am very grateful for this plugin's existence.

I can navigate to the prompt in normal mode and delete it with cw, x, etc. This is not a big deal to me.

But I find it unconvenient that I can remove the prompt with C-w in insert mode. I am used to use C-w to remove what I just typed, and every now and then I will erase the prompt by accident. If there is a way to correct this behaviour, I think it should be done.

SlimvSelectForm should ignore comments

Hi!

I tracked down a bug that arises with the following code:

(defstruct foo
  bar0
  bar1)

(let ((var (make-foo :bar0 10
                     :bar1 10)))
   (foo-bar0 var))

When calling SlimvEvalDefun from within either top-level form, everything works okay.

If you comment out the :bar1 10))) line and readjust the parens, you have the following

(defstruct foo
  bar0
  bar1)

(let ((var (make-foo :bar0 10)))
                     ; :bar1 10)))
   (foo-bar0 var))

Now, if you call SlimvEvalDefun from within the let, the debugger is opened and shows "end of file on input stream ..."

Also the "s register only contains

(let ((var (make-foo :bar0 10)))
                     ; :bar1 10)

It would seem the problem is at line 1205 of ftplugin/slimv.vim, where va( is used to select the matching paren to the start of the top-level form. It would seem using searchpair would be better, so the code could skip comments and strings.

I have zero VimL experience otherwise I would try fixing it myself haha I might try within the next few days but I don't really know the idiomatic way to fix this.

Scheme builtin swank not launching

I've got 'scheme_builtin_swank' set to 1, but swank server does not launch.
I'm using MIT-Scheme 9.1.1.

After some investigation, I think problem lies in missing escaping for inner quotes in the generated swank start command.
I'll be opening a PR with my solution.

Make use of neovim's job control

I suspect this plugin could greatly benefit from the job control of neovim and its possibilities for asynchronous IO. Maybe it is worth considering to implement special support for this?

REPL split size

What would be the correct way to start the REPL in a smaller window split? I only found an option in the documentation on where to place it. Is this possible at all?

Shebang at start of file not ignored

I'm trying to learn Lisp by using it as a replacement for bash scripts.

To this end, I have #!/usr/bin/env sbcl --script at the start of my Lisp scripts.
However, if I run the buffer in slimv, I get an error triggered by that first line.

Is there a way around this?

Apologies if this issue should have been raised to the SBCL devs.

slimv_bt.txt

REPL hangs on some special mit-scheme code

; filename : cons.scm
(define (cons x y)
  (lambda (m) (m x y)))

(define (car z)
  (z (lambda (p q) p)))

(define (cdr z)
  (z (lambda (p q) q)))

(car (cons 1 2))

(cdr (cons 2 (cons 3 4)))

I redefine cons car and cdr
type ,e for each procedure
REPL never return at (car (cons 1 2))
But it works while I run in command line as scheme < cons.scm

Remapping <Tab> in Slimv

Hi,

thanks for a great plugin!

I was wondering if there's a way to remap omni-completion from to something else? The problem is that i'm used to remapping Tab to Esc in insert mode, and it causes a conflict now.

Thanks,
Vitaliy.

Unable to disable default keybindings

The documentation states:

|g:slimv_keybindings| Predefined Slimv keybindings. Possible values:
1 = set #1, 2 = set #2, other = no keybindings

However, when setting g:slimv_keybindings to something that's not 1 or 2, the function MenuMap errors out with the error

Undefined variable: shortcut
Invalid expression: shortcut != ''

While my knowledge of Vimscript is near non-existent, I do believe that the offending code, does indeed not define the variable shortcut if the value of slimv_keybindings is different than 1 or 2:

if g:slimv_keybindings == 1
    " Short (one-key) keybinding set
    let shortcut = a:shortcut1
elseif g:slimv_keybindings == 2
    " Easy to remember (two-key) keybinding set
    let shortcut = a:shortcut2
endif

Error starting SWANK server on macOS

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

SlimvInitBuffer not defined

Whenever I open a lisp file it tells me there is an error in slimv-lisp.vim on line 195 that SlimvInitBuffer is an unknown function.

What did I do wrong...

Variable name typo vs. the HyperSpec offline

In file ftplugin/slimv.vim there is a typo in lines 3175 and 3176: g:slimv_hs_root should be g:slimv_clhs_root. This causes an error message to be thrown when setting (in .vimrc) the latter variable: it complains that g:slimv_hs_root is unknown...

Simply correcting the name seems to have fixed the problem.

Trouble with menu

I installed slimv and swank runs fine, but when I want to load the menu (,,), I get the following errors.
E333: Menu path must lead to a menu item
E334: Menu not found: Slimv.Edit.

Any idea how to resolve this?
Thanks.

Swank doesn't close... ever

Is there a way to get swank to close when vim does? or add a SlimvDissconect() function that would do the same?

SLIMV not running inside the TTY?

Does SLIMV support only GUI vim?
Or can I use it in the TTY? If I can how do I check why it is not displaying a terminal window in vim...
PS it sort of works because it completes () brackets...

Bug: Slimv can't compile with SBCL

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]

Load file tries to load extension as .com instead of .scm

Hey there -

I'm working through SICP and while I can happily eval forms, drop into interactive eval, etc., if I try to load the entire file slimv seems to tell my swank server to look for the wrong file extension. Right now I'm working in a file helpfully named herp.scm, but when I do ,L I get the following error:

Unable to find file "/Users/ursa/Code/school/sicp/chapter-1/herp.com" because: File does not exist.
  [file-operation-error]

Cheers!

This is an awesome project.

Find-Definition broken in a few ways

The Find-Definition is broken in a few ways.

  • It doesn't take the current package at the cursor position into account
  • For methods, swank will return multiple results - for the DEFGENERIC and the DEFMETHOD forms. This result is just ignored; it should be displayed in a new buffer, so that the user can choose. (Like the debugger or inspect windows).
  • Don't use the tags file; swank returns a file and a position already, so just jump to that one. The tags file doesn't work in many cases (#+NIL comes to my mind).

Perhaps phmarek@854ca0d helps a bit here.

Thanks for integrating that into SLIMV!!

slimv does not work with recent versions of slime

Hallo,
slimv does not work with recent versions of slime and therefore lisp implementations.
Apparently because of new package definitions.
Actually, it appeared to me that changing
swank:create-repl => swank-repl:create-repl
swank:listener-eval => swank-repl:listener-eval
is what is needed to have all back working.
Thank you for this very useful plugin
Fulvio

syntax-rules indentation

Next line after (syntax-rules () is indented at 16 chars, is this intended behavior? is there any option to change it?
For example:

(define-syntax foo
  (syntax-rules ()
    (( ...

instead of

(define-syntax foo
  (syntax-rules ()
                (( ...

Python3: non-ASCII data gets botched

When trying to transfer UTF8 data, de/encoding is broken somehow. For example, ยงรครถรผ etc. don't get transmitted properly.

ValueError: invalid literal for int() with base 16: 00016(

This also happens when localized error messages (eg. Verbindung zurรผckgewiesen) are sent back to the editor.

Getting started: Simple evaluation crashes swank server

Hello

SYSTEM:

โžœ ctci sbcl --version
SBCL 1.0.55.0.debian

with Vim 8.x

CONFIG:

" SLIMV Lisp interpretation
let g:slimv_swank_cmd = '! tmux new-window -d -n REPL-SBCL "sbcl --load ~/.vim/pack/my-plugins/start/slimv/slime/start-swank.lisp"'

INPUT:

(print "hello")

ERROR OUTPUT:

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.
;
; compilation aborted because of fatal error:
;   The symbol "HOST-ENT-ADDRESS-TYPE" is not external in the SB-BSD-SOCKETS package.
;
;     Line: 117, Column: 76, File-Position: 3633
;
;     Stream: #<SB-SYS:FD-STREAM
;               for "file /home/sgharms/.vim/pack/my-plugins/start/slimv/slime/swank/sbcl.lisp"
;               {C538C89}>
;
;;
;; Error compiling /home/sgharms/.vim/pack/my-plugins/start/slimv/slime/swank/sbcl.lisp:
;;   COMPILE-FILE returned NIL.
;;

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

I then enter the expression and ,e. This stalls for a few moments. I'm using a TMUX-based mode on a remote workstation.

That's all the information I have, sadly. I'm still new to Lisp programming and don't have the chops to debug this very well, I'm sorry to say. Is there something I should try? I got this working on my mac, but was hoping to start working on this ubuntu system.

Thanks!

Steven

On load file, can interpret Windows path as escape sequence

If the path contains something that looks like an escape sequence, it will interpret it as an escape sequence.

For example, if the file is located in C:\Documents\Lisp\test, an error message will appear:
PARSE-NAMESTRING: syntax error in filename "C:\Documents\Lisp est\morse.fas"

This doesn't happen when all the directory names are not valid escape sequences.

REPL hangs

Certain input causes the REPL to freeze, such as quickloading anything. Pressing any key will unfreeze it when this happens. If the input would have caused the debugger to popup, it won't pop up until that extra key press. This is under neovim, so not sure if that is the issue or not.

Syntax highlighting for CL-USER symbols

Using Vim's default syntax highlighting for .lisp files, symbols from CL-USER (CONS, CAR, etc.) are highlighted in a different color from other symbols. SLIMV used to maintain this, but it doesn't seem to do it anymore (since I did a fresh installation of Vim and my plugins). Is this just some issue with my SLIMV installation, or can you reproduce this? I'm using Vim 7.4 and the latest git version of SLIMV.

Swank can't create directory

I have a new installation of gVim on Windows and added the slimv plugin. Getting an issue when trying to connect to swank server. Tried to manually debug by starting SBCL from the bundle directory and do:

(load "swank-loader.lisp")
(swank-loader:init)

Getting this error:

;;
;; Error ???ing c:/Users/tormar/vimfiles/bundle/slimv/slime/packages.lisp:
\;   Can't create directory c:\Users\tormar\.slime\fasl\2.18
;;

debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
#<THREAD "main thread" RUNNING {23F74541}>:
\ Can't create directory c:\Users\tormar\.slime\fasl\2.18

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 directory creation.
  1: [CONTINUE] Continue as if directory creation was successful.
  2: [ABORT   ] Exit debugger, returning to top level.


/sbcl-1.3.0-win32-x86/packages.fasl" :VERBOSE NIL :MODE 511)8
0] 2
;
; compilation unit aborted
;   caught 1 fatal ERROR condition

Path c:\Users\tormar\.slime\fasl\ exist (from previously experimenting with slime from Sublime Text), even tried with manually adding 2.18. Also tried running SBCL as administrator.

Any idea what the problem might be, and how to solve this?

SBCL version 1.3.0.

Error launching SWANK server under SBCL 1.2.2

Under SBCL 1.2.2, I get the following error when starting the SWANK server:

Symbol "CODE-TRACE-TABLE-OFFSET-SLOT" not found in the SB-VM package.

This appears to have been fixed in SLIME, and applying the same change fixes the issue for me.

Launching up R (on Windows)

Hi! I am trying to use SLIMV for R instead of Lisp, is that doable? I found this in the description: Added support for the R language via swank-R (by Philipp Marek), but I did not find any details.
Could you, please, write up some instructions on how to make it work if it is possible?
Platform: Windows 7 x64.

Errors when opening a Clojure buffer

screenshot - 06162014 - 06 24 14 pm

All functions are there at the expected place and the syntax seems to make sense. Since I don't know the Vim programming language, I couldn't understand the errors' reason.

proper indentation with LOOP DSL

in a LOOP form, lines should indented properly after a clause

wrong:

(loop for i from 1 to 10
   do (something-1 i)
   (something-2 i))

correct:

(loop for i from 1 to 10
  do (something-1 i)
     (something-2 i))

Bug: REPL opens in the current buffer

Hi, I'm trying to use slimv but the REPL always opens in the same buffer when I connect to a slime server.

I'm currently on windows, vim version:

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled May  1 2018 22:10:45)
MS-Windows 32-bit GUI version with OLE support

python version 3.6.5

I tried disabling all the other plugins and it still happens.

image

Arglist breaks Vim's status bar

When using Vim (7.4.884 on Arch and 7.4.52 on Ubuntu) with the latest Slimv connected to SBCL 1.2.16, connecting to a SWANK server and entering in expressions will cause the status bar to lose the ability to display the current typing mode.

It seems to happen because of arglist, but I can't say for sure. The bug occurs when you press space after entering in the first argument of a function, i.e. '(+ 1' is fine, but '(+ 1 ' causes it to break. This applies to all functions, not just +.

It doesn't seem to be reversible without restarting vim and it doesn't happen if no server is connected. I tested it on a fresh install of Vim and the result was the same.

interactive eval fails with "invalid number of arguments: 2"

Using VIM 7.4.884, SBCL 1.2.16 on arch linux, Slimv master from github. When I open a backtrace line by Enter, then select Interactive eval (or ,v) and try to evaluate anything, I get error like:

invalid number of arguments: 2                                                                                                    
   [Condition of type SB-INT:SIMPLE-PROGRAM-ERROR]

 Backtrace:
  0: (SWANK:EVAL-STRING-IN-FRAME "(setq arg-1 3)" 0) [tl,external] {{{
      No source line information
    Locals:
      SB-DEBUG::ARG-1 = #(1318851 :DEFINED :FUNCTION #<FDEFINITION for SWANK:EVAL-STRING-IN-FRAME>)
      SB-DEBUG::ARG-2 = #<NULL-LEXENV>
      SB-DEBUG::ARG-3 = SWANK:EVAL-STRING-IN-FRAME

As newbie, maybe I do something obviously wrong, but when I describe symbol SWANK:EVAL-STRING-IN-FRAME , it really takes 3 arguments, not 2:

EVAL-STRING-IN-FRAME names a compiled function:
  Lambda-list: (STRING FRAME PACKAGE)
  Derived type: (FUNCTION (T T T) *)
  Source file: /home/juro/slimv/slime/swank.lisp

Unable to load SLIMV on Creating .lisp file

Thanks for your work on slimv. I intend to learn vim + LISP together, but I've been unable to get slimv up and running.

I'm on OS X Yosemite 10.10.1. I compiled and installed vim 7.4 with Python 2.7.6. I have SBCL 1.2.2 installed. I first installed the slimv 0.9.12 release from vim.org but I encountered this problem, so I put this GitHub repository's master into my ~/.vim/. This results in the main .vim located at ~/.vim/ftplugin/lisp/slimv-lisp.vim. Although I no longer encounter the same error, SLIME never loads for me.

My ~/.vimrc:

" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
  finish
endif

set clipboard=unnamed
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.

filetype plugin on
filetype indent on

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

if has("vms")
  set nobackup      " do not keep a backup file, use versions instead
else
  set backup        " keep a backup file
endif
set history=50      " keep 50 lines of command line history
set ruler       " show the cursor position all the time
set showcmd     " display incomplete commands
set incsearch       " do incremental searching

" Don't use Ex mode, use Q for formatting
map Q gq

" CTRL-U in insert mode deletes a lot.  Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>

" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
  set mouse=a
endif

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif

" Only do this part when compiled with support for autocommands.
if has("autocmd")

  " Enable file type detection.
  " Use the default filetype settings, so that mail gets 'tw' set to 72,
  " 'cindent' is on in C files, etc.
  " Also load indent files, to automatically do language-dependent indenting.
  filetype plugin indent on

  " Put these in an autocmd group, so that we can delete them easily.
  augroup vimrcEx
  au!

  " For all text files set 'textwidth' to 78 characters.
  autocmd FileType text setlocal textwidth=78

  " When editing a file, always jump to the last known cursor position.
  " Don't do it when the position is invalid or when inside an event handler
  " (happens when dropping a file on gvim).
  " Also don't do it when the mark is in the first line, that is the default
  " position when opening a file.
  autocmd BufReadPost *
    \ if line("'\"") > 1 && line("'\"") <= line("$") |
    \   exe "normal! g`\"" |
    \ endif

  augroup END

else

  set autoindent        " always set autoindenting on

endif " has("autocmd")

" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
  command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
          \ | wincmd p | diffthis
endif

The only relevant thing there should be the filetype settings near the top.

Relevant output from :scriptnames

3: ~/.vim/ftdetect/clojure.vim
9: ~/.vim/plugin/paredit.vim

:filetype shows all options ON

:set ?rtp outputs
runtimepath=~/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/u sr/local/share/vim/vimfiles/after,~/.vim/after

When I create a new file with :e test.lisp, :messages shows nothing and :set ft? shows filetype=lisp.

:echo g:paredit_loaded prints 1.

Installing python-mode.vim the same way and then creating a Python file with :e test.py worked as expected.

The output of vim -V10 test.lisp:

chdir(/usr/local/share/vim)
fchdir() to previous dir
could not source "$VIM/vimrc"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
could not source "$VIMRUNTIME/macmap.vim"
chdir(/Users/admin)
fchdir() to previous dir
sourcing "$HOME/.vimrc"
Searching for "filetype.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/filetype.vim"
Searching for "/usr/local/share/vim/vimfiles/filetype.vim"
Searching for "/usr/local/share/vim/vim74/filetype.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 13: sourcing "/usr/local/share/vim/vim74/filetype.vim"
Searching for "ftdetect/*.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/ftdetect/*.vim"
chdir(/Users/admin/.vim/ftdetect)
fchdir() to previous dir
line 2701: sourcing "/Users/admin/.vim/ftdetect/clojure.vim"
finished sourcing /Users/admin/.vim/ftdetect/clojure.vim
continuing in /usr/local/Cellar/vim/7.4.488/share/vim/vim74/filetype.vim
Searching for "/usr/local/share/vim/vimfiles/ftdetect/*.vim"
Searching for "/usr/local/share/vim/vim74/ftdetect/*.vim"
Searching for "/usr/local/share/vim/vimfiles/after/ftdetect/*.vim"
Searching for "/Users/admin/.vim/after/ftdetect/*.vim"
finished sourcing /usr/local/share/vim/vim74/filetype.vim
continuing in /Users/admin/.vimrc
Searching for "/usr/local/share/vim/vimfiles/after/filetype.vim"
Searching for "/Users/admin/.vim/after/filetype.vim"
Searching for "ftplugin.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/ftplugin.vim"
Searching for "/usr/local/share/vim/vimfiles/ftplugin.vim"
Searching for "/usr/local/share/vim/vim74/ftplugin.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 13: sourcing "/usr/local/share/vim/vim74/ftplugin.vim"
finished sourcing /usr/local/share/vim/vim74/ftplugin.vim
continuing in /Users/admin/.vimrc
Searching for "/usr/local/share/vim/vimfiles/after/ftplugin.vim"
Searching for "/Users/admin/.vim/after/ftplugin.vim"
Searching for "filetype.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/filetype.vim"
Searching for "/usr/local/share/vim/vimfiles/filetype.vim"
Searching for "/usr/local/share/vim/vim74/filetype.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 14: sourcing "/usr/local/share/vim/vim74/filetype.vim"
finished sourcing /usr/local/share/vim/vim74/filetype.vim
continuing in /Users/admin/.vimrc
Searching for "/usr/local/share/vim/vimfiles/after/filetype.vim"
Searching for "/Users/admin/.vim/after/filetype.vim"
Searching for "indent.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/indent.vim"
Searching for "/usr/local/share/vim/vimfiles/indent.vim"
Searching for "/usr/local/share/vim/vim74/indent.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 14: sourcing "/usr/local/share/vim/vim74/indent.vim"
finished sourcing /usr/local/share/vim/vim74/indent.vim
continuing in /Users/admin/.vimrc
Searching for "/usr/local/share/vim/vimfiles/after/indent.vim"
Searching for "/Users/admin/.vim/after/indent.vim"
chdir(/usr/local/share/vim/vim74/syntax)
fchdir() to previous dir
line 86: sourcing "/usr/local/share/vim/vim74/syntax/syntax.vim"
Searching for "syntax/synload.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/syntax/synload.vim"
Searching for "/usr/local/share/vim/vimfiles/syntax/synload.vim"
Searching for "/usr/local/share/vim/vim74/syntax/synload.vim"
chdir(/usr/local/share/vim/vim74/syntax)
fchdir() to previous dir
line 19: sourcing "/usr/local/share/vim/vim74/syntax/synload.vim"
Searching for "syntax/syncolor.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/syntax/syncolor.vim"
Searching for "/usr/local/share/vim/vimfiles/syntax/syncolor.vim"
Searching for "/usr/local/share/vim/vim74/syntax/syncolor.vim"
chdir(/usr/local/share/vim/vim74/syntax)
fchdir() to previous dir
line 21: sourcing "/usr/local/share/vim/vim74/syntax/syncolor.vim"
finished sourcing /usr/local/share/vim/vim74/syntax/syncolor.vim
continuing in /usr/local/Cellar/vim/7.4.488/share/vim/vim74/syntax/synload.vim
Searching for "/usr/local/share/vim/vimfiles/after/syntax/syncolor.vim"
Searching for "/Users/admin/.vim/after/syntax/syncolor.vim"
finished sourcing /usr/local/share/vim/vim74/syntax/synload.vim
continuing in /usr/local/Cellar/vim/7.4.488/share/vim/vim74/syntax/syntax.vim
finished sourcing /usr/local/share/vim/vim74/syntax/syntax.vim
continuing in /Users/admin/.vimrc
Searching for "filetype.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/filetype.vim"
Searching for "/usr/local/share/vim/vimfiles/filetype.vim"
Searching for "/usr/local/share/vim/vim74/filetype.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 97: sourcing "/usr/local/share/vim/vim74/filetype.vim"
finished sourcing /usr/local/share/vim/vim74/filetype.vim
continuing in /Users/admin/.vimrc
Searching for "/usr/local/share/vim/vimfiles/after/filetype.vim"
Searching for "/Users/admin/.vim/after/filetype.vim"
Searching for "ftplugin.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/ftplugin.vim"
Searching for "/usr/local/share/vim/vimfiles/ftplugin.vim"
Searching for "/usr/local/share/vim/vim74/ftplugin.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 97: sourcing "/usr/local/share/vim/vim74/ftplugin.vim"
finished sourcing /usr/local/share/vim/vim74/ftplugin.vim
continuing in /Users/admin/.vimrc
Searching for "/usr/local/share/vim/vimfiles/after/ftplugin.vim"
Searching for "/Users/admin/.vim/after/ftplugin.vim"
Searching for "indent.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/indent.vim"
Searching for "/usr/local/share/vim/vimfiles/indent.vim"
Searching for "/usr/local/share/vim/vim74/indent.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 97: sourcing "/usr/local/share/vim/vim74/indent.vim"
finished sourcing /usr/local/share/vim/vim74/indent.vim
continuing in /Users/admin/.vimrc
Searching for "/usr/local/share/vim/vimfiles/after/indent.vim"
Searching for "/Users/admin/.vim/after/indent.vim"
finished sourcing $HOME/.vimrc
Searching for "plugin/**/*.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/plugin/**/*.vim"
chdir(/Users/admin/.vim/plugin)
fchdir() to previous dir
sourcing "/Users/admin/.vim/plugin/paredit.vim"
Searching for "filetype.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/filetype.vim"
Searching for "/usr/local/share/vim/vimfiles/filetype.vim"
Searching for "/usr/local/share/vim/vim74/filetype.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 20: sourcing "/usr/local/share/vim/vim74/filetype.vim"
finished sourcing /usr/local/share/vim/vim74/filetype.vim
continuing in /Users/admin/.vim/plugin/paredit.vim
Searching for "/usr/local/share/vim/vimfiles/after/filetype.vim"
Searching for "/Users/admin/.vim/after/filetype.vim"
Searching for "ftplugin.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/ftplugin.vim"
Searching for "/usr/local/share/vim/vimfiles/ftplugin.vim"
Searching for "/usr/local/share/vim/vim74/ftplugin.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 20: sourcing "/usr/local/share/vim/vim74/ftplugin.vim"
finished sourcing /usr/local/share/vim/vim74/ftplugin.vim
continuing in /Users/admin/.vim/plugin/paredit.vim
Searching for "/usr/local/share/vim/vimfiles/after/ftplugin.vim"
Searching for "/Users/admin/.vim/after/ftplugin.vim"
Searching for "filetype.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/filetype.vim"
Searching for "/usr/local/share/vim/vimfiles/filetype.vim"
Searching for "/usr/local/share/vim/vim74/filetype.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 21: sourcing "/usr/local/share/vim/vim74/filetype.vim"
finished sourcing /usr/local/share/vim/vim74/filetype.vim
continuing in /Users/admin/.vim/plugin/paredit.vim
Searching for "/usr/local/share/vim/vimfiles/after/filetype.vim"
Searching for "/Users/admin/.vim/after/filetype.vim"
Searching for "indent.vim" in "/Users/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/indent.vim"
Searching for "/usr/local/share/vim/vimfiles/indent.vim"
Searching for "/usr/local/share/vim/vim74/indent.vim"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
line 21: sourcing "/usr/local/share/vim/vim74/indent.vim"
finished sourcing /usr/local/share/vim/vim74/indent.vim
continuing in /Users/admin/.vim/plugin/paredit.vim
Searching for "/usr/local/share/vim/vimfiles/after/indent.vim"
Searching for "/Users/admin/.vim/after/indent.vim"
finished sourcing /Users/admin/.vim/plugin/paredit.vim
Searching for "/usr/local/share/vim/vimfiles/plugin/**/*.vim"
Searching for "/usr/local/share/vim/vim74/plugin/**/*.vim"
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/getscriptPlugin.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/getscriptPlugin.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/gzip.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/gzip.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/matchparen.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/matchparen.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/netrwPlugin.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/netrwPlugin.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/rrhelper.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/rrhelper.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/spellfile.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/spellfile.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/tarPlugin.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/tarPlugin.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/tohtml.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/tohtml.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/vimballPlugin.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/vimballPlugin.vim
chdir(/usr/local/share/vim/vim74/plugin)
fchdir() to previous dir
sourcing "/usr/local/share/vim/vim74/plugin/zipPlugin.vim"
finished sourcing /usr/local/share/vim/vim74/plugin/zipPlugin.vim
Searching for "/usr/local/share/vim/vimfiles/after/plugin/**/*.vim"
Searching for "/Users/admin/.vim/after/plugin/**/*.vim"
Reading viminfo file "/Users/admin/.viminfo" info oldfiles

autocommand setf lisp
Executing FileType Auto commands for "*"
autocommand call s:LoadFTPlugin()
Searching for "ftplugin/lisp.vim ftplugin/lisp_*.vim ftplugin/lisp/*.vim" in "/U
sers/admin/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/lo
cal/share/vim/vimfiles/after,/Users/admin/.vim/after"
Searching for "/Users/admin/.vim/ftplugin/lisp.vim"
Searching for "/Users/admin/.vim/ftplugin/lisp_*.vim"
Searching for "/Users/admin/.vim/ftplugin/lisp/*.vim"
chdir(/Users/admin/.vim/ftplugin/lisp)
fchdir() to previous dir
line 17: sourcing "/Users/admin/.vim/ftplugin/lisp/slimv-lisp.vim"
Searching for "ftplugin/**/slimv.vim" in "/Users/admin/.vim,/usr/local/share/vim
/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/
admin/.vim/after"
Searching for "/Users/admin/.vim/ftplugin/**/slimv.vim"
chdir(/Users/admin/.vim/ftplugin)
fchdir() to previous dir
line 187: sourcing "/Users/admin/.vim/ftplugin/slimv.vim"
Calling shell to execute: "unset nonomatch; vimglob() { while [ $# -ge 1 ]; do e
cho "$1"; shift; done }; vimglob >/var/folders/yv/0lqltg050v9ghvr751qdlp_r0000gn
/T/vPiFxBG/0 $vim/ctags.exe"

Any help figuring out what's wrong with my set-up would be greatly appreciated.

Thanks.

Bug in paredit.vim

I've narrowed down a longtime annoying bug to line #109 of paredit.vim - commenting it out fixes it, though I'm not sure what breaks from that.

The problem: Typing &<text>-<Tab>) where <text> can be anything, even left out completely. Upon pressing tab, it mentions no matches to complete. Upon pressing ) after that, it completes to &<text>-:let save_ve=&ve). Leaving out the hyphen and the same thing happens, except it displays a red error message first, so even more annoying.

This is frustrating and very annoying. @kovisoft can you please look into this soon?

SlimvAddReplMenu does not respect g:slimv_keybindings and/or cannot be customized

The function SlimvAddReplMenu maps <leader>\ to :emenu REPL.' . nr2char( &wildcharm ).

Unfortunately, I happen to have <leader> mapped to '' (the default) and I happen to have <leader><leader> mapped to <c-^>, which I use all the time.

The REPL mapping removes my own mapping, which is extremely annoying.

Ideally, this mapping would be customizable and/or should respect g:slimv_keybindings.

if indentation

I am struggling to get a proper indentation of the if special form.
The proper indentation should be

(if (= (f x) 4)
    (top-level x)
    (g x))

but I get

(if (= (f x) 4)
  (top-level x)
  (g x))

I looked into this answer given on stackoverflow and I did run :echo SlimvIndent(2) that returns 2. Is this the problem?

Error starting SWANK under SBCL 1.1.5 and VIM 7.4

When I launch SWANK under SBCL 1.1.5 and VIM 7.4, I get the following error:

When attempting to
set the slot's value to "..
< here are lots of @^, so I think it's some binary value >
[Condition of type SIMPLE-ERROR]^@^@

Restarts:
0: [RETRY] Retry SLIME REPL evaluation request.
1: [*ABORT] Return to SLIME's top level.
2: [ABORT] Abort thread (#<THREAD "repl-thread" RUNNING {1006EB02C3}>)

Backtrace:
0: ((:METHOD SLOT-MISSING (T T T T)) # #<SWANK/GRAY::SLIME-OUTPUT-STREAM {1006E9F603}> SWANK/BACKEND::BUFFER SETF "..
1: ((SB-PCL::GF-DISPATCH SLOT-MISSING) #<STANDARD-CLASS SWANK/GRAY::SLIME-OUTPUT-STREAM> #<SWANK/GRAY::SLIME-OUTPUT-STREAM {1006E9F603}> SWANK/BACKEND::BUFFER SETF "..
2: (SB-PCL::SET-SLOT-VALUE #<SWANK/GRAY::SLIME-OUTPUT-STREAM {1006E9F603}> SWANK/BACKEND::BUFFER "..
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) #)
4: (SB-IMPL::SIMPLE-EVAL-PROGN-BODY ((SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) NIL) #)
5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PROGN (SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) NIL) #)
6: (EVAL (PROGN (SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) NIL))
7: (SWANK::EVAL-REGION "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
8: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
9: (SWANK-REPL::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1006EC0E7B}>)
10: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
11: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1006EC0D9B}>)
12: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
13: (SWANK/BACKEND:CALL-WITH-SYNTAX-HOOKS #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1006EC0D6B}>)
14: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1006EC0D6B}>)
15: (SWANK-REPL::REPL-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
16: (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
17: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
18: (EVAL (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
19: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)

There is the following output in SBCL window:

This is SBCL 1.1.5, 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.
STYLE-WARNING: redefining EMACS-INSPECT (#) in DEFMETHOD
;; Swank started at port: 4005.

  • STYLE-WARNING:
    redefining THREAD-FOR-EVALUATION (#
    #<SB-MOP:EQL-SPECIALIZER
    {100A760493}>) in DEFMETHOD

Reply doesn't solve the problem. Abort works and produces the following output:

[Condition of type SIMPLE-ERROR]
; Evaluation aborted on NIL
CL-USER> ; Quit to level 1
CL-USER> ; Evaluation aborted on #<SIMPLE-ERROR "~@<When attempting to ~A, the slot ~S is missing from the ~
; object S.@:>" {100A5E80D3}>
CL-USER>

Then there is some issue with the backspace too in REPL. Sometimes it's not possible to delete the characters written in backspace, but pressing delete once makes backspace work again. I don't know if this is related to the problem in launching SWANK.

Then, if I close the REPL window after abort, attempt to compile-file (Leader L) does not do anything except print this on the bottom row of Vim:

=> T

So it seems that something gets evaluated to T but REPL window is not opened. This worked before I installed this newest version of slimv and at the same time I also compiled the latest version (version 7.4) of Vim, before I had 7.3, so I can't say is this caused by Vim update or slimv update. Luckily, connect to server (Leader C) brings REPL window back, but this causes again a similar error message as the first one, abort works again:

When attempting to
set the slot's value to "..
< here are lots of @^, so I think it's some binary value >

[Condition of type SIMPLE-ERROR]

Restarts:
0: [RETRY] Retry SLIME REPL evaluation request.
1: [*ABORT] Return to SLIME's top level.
2: [ABORT] Abort thread (#<THREAD "repl-thread" RUNNING {100DC202C3}>)

Backtrace:
0: ((:METHOD SLOT-MISSING (T T T T)) # #<SWANK/GRAY::SLIME-OUTPUT-STREAM {100DAF3073}> SWANK/BACKEND::BUFFER SETF "..
1: ((SB-PCL::GF-DISPATCH SLOT-MISSING) #<STANDARD-CLASS SWANK/GRAY::SLIME-OUTPUT-STREAM> #<SWANK/GRAY::SLIME-OUTPUT-STREAM {100DAF3073}> SWANK/BACKEND::BUFFER SETF "..
2: (SB-PCL::SET-SLOT-VALUE #<SWANK/GRAY::SLIME-OUTPUT-STREAM {100DAF3073}> SWANK/BACKEND::BUFFER "..
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) #)
4: (SB-IMPL::SIMPLE-EVAL-PROGN-BODY ((SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) NIL) #)
5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PROGN (SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) NIL) #)
6: (EVAL (PROGN (SETF (SLOT-VALUE (SWANK::CONNECTION.USER-OUTPUT SWANK::EMACS-CONNECTION) (QUOTE SWANK/BACKEND::BUFFER)) (MAKE-STRING 65536)) NIL))
7: (SWANK::EVAL-REGION "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
8: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
9: (SWANK-REPL::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100DC30E7B}>)
10: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
11: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100DC30D9B}>)
12: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
13: (SWANK/BACKEND:CALL-WITH-SYNTAX-HOOKS #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100DC30D6B}>)
14: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100DC30D6B}>)
15: (SWANK-REPL::REPL-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
16: (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
17: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
18: (EVAL (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)
19: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "(progn (setf (slot-value (swank::connection.user-output swank::emacs-connection) 'swank-backend::buffer) (make-string 65536)) nil) ..)

I have not yet had time to investigate this further. These two error messages seem to differ only in the binary values and the hexadecimal numbers (memory addresses?) printed by SBCL.

My SBCL 1.1.5 is from Debian repository, VIM 7.4 is compiled following the instructions here:
https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source

inspect-in-frame using wrong package?

When in the debugger, I can inspect local variables of functions from the backtrace.

But it should also be possible to inspect arbitrary forms using these variables; eg., with the cursor on a local variable DATA, I should be able to run SlimvInspect for an expression like (1+ DATA).

Thank you very much for the progress here... SLIMV is getting more and more awesome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.