ivanov / vim-ipython

A two-way integration between Vim and IPython 0.11+
http://github.com/ivanov/vim-ipython
1.04k stars 163 forks source link

GVIM screen vanishes when executing :IPython #88

Closed mike-bishop closed 10 years ago

mike-bishop commented 10 years ago

Included below is my vim version and my python/IPython version on Windows 7, 64bit

When I issue :IPython from gvim, the gvim window vanishes without any information or diagnostics. When I issue :python print ("hello") I get the same behavior so this is a more fundamental problem. However I searched all over and none of the posts seemed to apply so I am trying here. Apologies for posting here but am hoping you can at least provide some hints to debugging. No core files are produced from the gvim crash.

c:\Anaconda> python --version Python 2.7.5 :: Anaconda 1.6.2 (32-bit)

c:\Anaconda> IPython --version 1.1.0


VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33) MS-Windows 32-bit GUI version with OLE support Compiled by mool@tororo Big version with GUI. Features included (+) or not (-): +arabic +ex_extra +mouseshape +syntax +autocmd +extra_search +multi_byte_ime/dyn +tag_binary +balloon_eval +farsi +multi_lang +tag_old_static +browse +file_in_path -mzscheme -tag_any_white ++builtin_terms +find_in_path +netbeans_intg +tcl/dyn +byte_offset +float +ole -tgetent +cindent +folding +path_extra -termresponse +clientserver -footer +perl/dyn +textobjects +clipboard +gettext/dyn +persistent_undo +title +cmdline_compl -hangul_input -postscript +toolbar +cmdline_hist +iconv/dyn +printer +user_commands +cmdline_info +insert_expand -profile +vertsplit +comments +jumplist +python/dyn +virtualedit +conceal +keymap +python3/dyn +visual +cryptv +langmap +quickfix +visualextra +cscope +libcall +reltime +viminfo +cursorbind +linebreak +rightleft +vreplace +cursorshape +lispindent +ruby/dyn +wildignore +dialog_con_gui +listcmds +scrollbind +wildmenu +diff +localmap +signs +windows +digraphs -lua +smartindent +writebackup -dnd +menu -sniff -xfontset -ebcdic +mksession +startuptime -xim +emacs_tags +modify_fname +statusline -xterm_save +eval +mouse -sun_workshop +xpm_w32 system vimrc file: "$VIM\vimrc" user vimrc file: "$HOME_vimrc" 2nd user vimrc file: "$HOME\vimfiles\vimrc" 3rd user vimrc file: "$VIM_vimrc" user exrc file: "$HOME_exrc" 2nd user exrc file: "$VIM_exrc" system gvimrc file: "$VIM\gvimrc" user gvimrc file: "$HOME_gvimrc" 2nd user gvimrc file: "$HOME\vimfiles\gvimrc" 3rd user gvimrc file: "$VIM_gvimrc" system menu file: "$VIMRUNTIME\menu.vim" Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_XPM_W32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400
/Fo.\ObjGOLYHTRi386/ /Ox /GL -DNDEBUG /Zl /MT -DFEAT_OLE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_GUI_W32 -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl85.dll\" -DDYNAMIC_TCL_VER=\"8.5\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python32.dll\" -DFEAT_PERL -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl51 4.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=19 -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby192. dll\" -DFEAT_BIG /Fd.\ObjGOLYHTRi386/ /Zi Linking: link /RELEASE /nologo /subsystem:windows /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib /machine:i386 /nodefaultlib gdi32.lib version.lib winspool.lib comctl32.lib advapi32.lib shell32.lib /machine:i386 /nodefaultlib libcmt.lib oleaut32.lib user32.lib
/nodefaultlib:python27.lib /nodefaultlib:python32.lib "E:\tcl\lib\tclstub85.lib" WSock32.lib xpm\x86\lib\libXpm.lib /PDB:gvim.pdb -debug

mike-bishop commented 10 years ago

I was able to fix this simply by adding the PYTHONHOME environment variable. This was not set by default when installing Python/Anaconda.