sillybun / vim-repl

Best REPL environment for Vim
GNU General Public License v2.0
446 stars 39 forks source link

长时间运行,各种小问题 #50

Open pinggit opened 4 years ago

pinggit commented 4 years ago

有时候之前好的。后来\w就不工作了,没有任何反应, 但repl窗口还在,但貌似之间的联系断掉了。 这时候如果ctrlD手工关掉repl,然后再次REPLtoggle,当前buffer就会消失。关掉整个tab重新打开也不成。需要重启vim。。

pinggit commented 4 years ago

貌似一定不能手工ctrlD关掉repl。要用toggle。如果手工ctrlD关掉了,再用toggle,那么toggle会误认为我的其他buffer是repl窗口,而关掉它。。

sillybun commented 4 years ago

长时间是指多久?

pinggit commented 4 years ago

最近刷题所以连续几个月每天都在用这个插件,碰到问题越来越频繁。。 给你录个gif吧。

ice_video_20200227-092156(1)

这是跟nerdtree在一起使用的情况: 敲REPLToggle回车,当前文件消失。 再打开,再敲REPLToggle,当前文件再消失。 vnew开个新buffer,REPLToggle直接关掉了这个新buffer。 感觉toggle时候关闭错了buffer。

需要什么信息我发你。 如果这问题太复杂难解决,可否提供个手工打开的命令:

REPLOpen ipython
REPLOpen bash

关闭时候只要关闭term buffer就好?

pinggit commented 4 years ago

刚发现有个类似的插件: https://github.com/rhysd/reply.vim 我使用下看看可否有借鉴的。。

sillybun commented 4 years ago

你这个问题我从来没有遇到过,我一直在用的是 macOS 上的 mvim,我不确定是不是系统的问题,你能提供一下:REPLDebugInfo 的结果么?

sillybun commented 4 years ago

还有你的vim --version的结果也告诉我。

pinggit commented 4 years ago
VIM-REPL, last update: 2019.8.23
Operation System: Linux
Support python3: 1
Support python: 0
has +terminal: 1
has +timers: 1
3.6.8 (default, Oct  7 2019, 12:59:55)
[GCC 8.3.0]
REPL program:
{'vim': 'vim -e', 'markdown': 'ipython3', 'perl': '/home/ping/.vim/bundle/vim-repl/ftplugin/perl/psh', 'asciidoc': 'ipython3', 'default': 'bash', 'python': 'ipython3'}
REPL exit commands:
{'vim': 'q', 'zsh': 'exit', 'ptpython': 'quit()', 'ipython3': 'quit()', 'lua': 'os.exit()', 'default': 'exit', 'bash': 'exit', 'R': 'q()', 'python': 'quit()', 'ipython': 'quit()'}
Current File Type: voomtree
Current Type: bash
Current Exit Commands: exit
:version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 03 2019 13:04:21)
Included patches: 1-1967
Modified by jonathon.fernyhough@york.ac.uk
Compiled by jonathon.fernyhough@york.ac.uk
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl               +clientserver      +diff              +folding           +libcall           +mouse_gpm         +packages          +ruby              -tag_any_white     +vartabs           -xfontset
+arabic            +clipboard         +digraphs          -footer            +linebreak         -mouse_jsbterm     +path_extra        +scrollbind        +tcl               +vertsplit         +xim
+autocmd           +cmdline_compl     +dnd               +fork()            +lispindent        +mouse_netterm     +perl              +signs             +termguicolors     +virtualedit       +xpm
+autochdir         +cmdline_hist      -ebcdic            +gettext           +listcmds          +mouse_sgr         +persistent_undo   +smartindent       +terminal          +visual            +xsmp_interact
-autoservername    +cmdline_info      +emacs_tags        -hangul_input      +localmap          -mouse_sysmouse    +postscript        -sound             +terminfo          +visualextra       +xterm_clipboard
+balloon_eval      +comments          +eval              +iconv             +lua               +mouse_urxvt       +printer           +spell             +termresponse      +viminfo           -xterm_save
+balloon_eval_term +conceal           +ex_extra          +insert_expand     +menu              +mouse_xterm       +profile           +startuptime       +textobjects       +vreplace
+browse            +cryptv            +extra_search      +job               +mksession         +multi_byte        -python            +statusline        +textprop          +wildignore
++builtin_terms    +cscope            -farsi             +jumplist          +modify_fname      +multi_lang        +python3           -sun_workshop      +timers            +wildmenu
+byte_offset       +cursorbind        +file_in_path      +keymap            +mouse             -mzscheme          +quickfix          +syntax            +title             +windows
+channel           +cursorshape       +find_in_path      +lambda            +mouseshape        +netbeans_intg     +reltime           +tag_binary        +toolbar           +writebackup
+cindent           +dialog_con_gui    +float             +langmap           +mouse_dec         +num64             +rightleft         -tag_old_static    +user_commands     +X11
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0
/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/includ
e/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gn
u/glib-2.0/include -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-I6gBP8/vim-8.1.1967=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-3 -lgdk-3
 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm
-ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.26/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython
3.6m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lm -lruby-2.5 -lpthread -lgmp -ldl -lcrypt -lm
sillybun commented 4 years ago

你录屏的是windows电脑,这里是linux的,Linux和Windows会遇到一样的问题是么?

pinggit commented 4 years ago

我的就是linux 环境(ubuntu 1804),只不过是windows的ubuntu (WSL)而已。我不觉得是环境的问题。。。

$ uname -a
Linux pings-T470 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

我现在还没找到一个确定的方法稳定的复现这个问题。我估计是在运行期间tab里的窗口或者buffer的数量的变化(比如不断分屏,然后退出)对哪个是repl buffer的判断造成了混淆。