-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot send multiple lines with ctr #63
Comments
I made some naive changes to the file |
Sory for taking long to answer.. The fix you implemented might indeed actually break for some/most clients. This is actually strange since I use python frequently (i.e. for testing neovim plugins) and iron behaves correctly. Could you print the neovim interface (if any), python3 neovim package version? I'll try to reproduce that on my side.. |
Thank you for taking an interest in my issue! I noticed that if I use ipython (the default) or ipython3 with I am not sure I know what you mean by neovim interface, I am using the stable neovim for Ubuntu. Here is the output of
Maybe the output of Build type: RelWithDebInfo
Compilation: /usr/bin/x86_64-linux-gnu-gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=2 -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim-LpFVCC/neovim-0.2.0/build/config -I/build/neovim-LpFVCC/neovim-0.2.0/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim-LpFVCC/neovim-0.2.0/build/src/nvim/auto -I/build/neovim-LpFVCC/neovim-0.2.0/build/include
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Optional features included (+) or not (-): +acl +iconv +jemalloc +tui
For differences from Vim, see :help vim-differences
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim" |
It seems that, for some reason, your repl isn't correctly parsing the |
Nonetheless, I'll try to implement those block pastes with |
I actually just got ipython working, by upgrading from 2.4.1 to 6.2.0 (ahem, slightly embarrassing). And now iron.nvim automatically launches ipython/python3 instead of ipython/python2. Maybe there is something else I should make sure to update with pip to make python/python3 work without ipython? I am using In any case, I am happy that just ipython is working for now! Let me know if I can help with anything. |
Glad to know that it's working now! |
Thank you for writing this plugin, and for making it available!
I encountered a problem when sending multiple lines to the REPL. Minimal setup:
minimalvimrc:
test.py:
If I open nvim with
nvim -u minimalvimrc +'IronRepl' test.py
and type<Esc><C-W>kctrG
, I see the following in the REPL windowThus, it seems that there is an extra
0~
inserted at the beginning of the lines I send, and an extra1~
at the end, which of course confuses python. If I only send a single line, this problem does not occur.I'm am on Ubuntu 16.04, with Python 2.7.12, IPython 2.4.1 and nvim v0.2.0. The same thing happens if I use
:IronPromptCommand
and pickIPython3
, in which case I am on Python 3.5.2.I hope this is just due to some simple misconfiguration on my end!
The text was updated successfully, but these errors were encountered: