简体   繁体   English

在win7上运行ruby文件中的自动完成时gVim崩溃

[英]gVim crash when running autocomplete in ruby file on win7

I am using gVim 7.3 and ruby 1.9.2 on Windows7 64bit 我在Windows7 64bit上使用gVim 7.3和ruby 1.9.2

after I set the Omni completion func to rubycomplete#Complete, with the build-in rubycomplete.vim 在我将Omni完成函数设置为rubycomplete#Complete后,使用内置rubycomplete.vim

whenever I call the Omni complete, the vim will crash. 每当我打电话给Omni完成时,vim就会崩溃。

the debug message is :Access violation reading location 0x00000020. 调试消息是:访问冲突读取位置0x00000020。

does anyone know what might cause this problem? 有谁知道什么可能导致这个问题? or I should downgrade ruby to 1.8.7 that might avoid this bug? 或者我应该将ruby降级到可以避免这个bug的1.8.7?

The problem is because there's bug for ruby plugin in Vim version 7.3.46, http://www.mail-archive.com/vim_dev@googlegroups.com/msg12221.html 问题是因为Vim版本7.3.46中的ruby插件有bug, http://www.mail-archive.com/vim_dev@googlegroups.com/msg12221.html

I download the latest build(7.3.107) from Wu Yon's website ( http://wyw.dcweb.cn/ ) overwrite the executable file in %VIM%/vim73, and the autocomplete works without crash. 我从Wu Yon的网站( http://wyw.dcweb.cn/ )下载最新版本(7.3.107),覆盖%VIM%/ vim73中的可执行文件,自动完成工作没有崩溃。

Did you check that your Vim was compiled with Ruby support? 你检查过你的Vim是用Ruby支持编译的吗?

Check with... 检查......

:version :版

And look for +ruby 并寻找+红宝石

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM