jpalardy / vim-slime

A vim plugin to give you some slime. (Emacs)
http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/
MIT License
1.9k stars 227 forks source link

IPython with %cpaste -q returns ERROR! Session/line number was not unique in database. #349

Closed dbatten5 closed 2 years ago

dbatten5 commented 2 years ago

I have the following settings for vim-slime:

let g:slime_target = "neovim"
let g:slime_bracketed_paste = 1
let g:slime_python_ipython = 1

When I send a chunk to IPython running in a neovim :terminal, the code gets run successfully but I see the following error output in IPython, wasn't sure if this was to do with vim-slime or with IPython

In [7]: %cpaste -q
def foo():
    print("bar")
--

ERROR! Session/line number was not unique in database. History logging moved to new session 33

Any ideas?

jpalardy commented 2 years ago

Hi @dbatten5

I don't use IPython myself, do you get similar results with:

let me know — maybe we'll be able to pin down the problematic combination

dbatten5 commented 2 years ago

Seems like it's an issue with IPython actually, see here. Will close this issue