MacVim 中的 command-t 插件 - 使 MacVim 无法工作
我正在尝试使用 MacVim 的 command-t 模糊查找器插件。
我按照指示操作,但我的 MacVim 不再工作;没有显示窗口,但它看起来仍然启动,因为应用程序图标位于扩展坞上。如果我删除 ~/.vim/ruby
中的 command-t 文件夹,我的 MacVim 会正常工作。我认为这是与 Ruby 版本不兼容? MacVim 使用的版本与我用来编译 command-t 的 RVM 版本的对比。还有其他人遇到过这个问题吗?
我将 RVM 与 ruby 1.9.2 一起使用,但是当我执行 :Ruby p RUBY_VERSION
时,它显示 1.8.7。当我尝试使用 ruby-interp 设置从源代码编译 MacVim 时,最终结果是相同的。
编辑:我还尝试在 command-t 插件的 ruby extconf.rb
和 make
之前使用 rvm use system,它使用 ruby 版本 1.8.7,与 macvim 中的 :ruby p RUBY_VERSION
相同,但仍然不起作用。所以我真的不知道问题是什么——版本匹配。 make 的输出并不理想: make cc -arch i386 -arch x86_64 -pipe -bundle -undefinedynamic_lookup -o ext.bundle ext.o match.o matcher.o -L。 -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L。 -arch i386 -arch x86_64 -lruby -lpthread -ldl ld: 警告:在 ext.o 中,文件是为不受支持的文件格式构建的,该格式不是正在链接的体系结构 (i386) ld: 警告:在 match.o 中,构建了文件对于不支持的文件格式,不是正在链接的体系结构(i386)ld:警告:在 matcher.o 中,文件是为不支持的文件格式构建的,不是正在链接的体系结构(i386)
I'm trying to use the command-t fuzzy finder plugin for MacVim.
I followed the directions but my MacVim no longer works; No window shows, but it still looks like it starts up since the app icon is on the dock. If I remove the command-t folder in ~/.vim/ruby
, my MacVim works as normal. I'm thinking it's an incompatibility with Ruby versions? The one MacVim uses versus the RVM one I use to compile command-t. Has anyone else had this problem?
I'm using RVM with ruby 1.9.2, but when I do :Ruby p RUBY_VERSION
, it says 1.8.7. When I try compiling MacVim from source with the ruby-interp setting, the end result is the same.
EDIT: I've also tried to just use rvm use system before ruby extconf.rb
and make
of the command-t plugin, which uses ruby version 1.8.7, the same as :ruby p RUBY_VERSION
in macvim, but it still does not work. So I really don't know what the problem is--the versions match. The output of the make is not ideal:make cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup -o ext.bundle ext.o match.o matcher.o -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch i386 -arch x86_64 -lruby -lpthread -ldl ld: warning: in ext.o, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: in match.o, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: in matcher.o, file was built for unsupported file format which is not the architecture being linked (i386)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我开始使用 janus 它为我解决了所有这些问题。另外,它还添加了各种其他很酷的 vim 魔法。强烈推荐。
I started using janus and it solved all of these kinds of issues for me. Plus, it adds all kinds of other cool vim magic. Highly recommended.
我遇到了这个问题。按照您在编辑中所说的操作进行操作,但在此之前,请运行
make clean
。现在对我来说一切正常:)I had this problem. Do what you said you did in your edit, but before that, run
make clean
. Everything works fine now for me :)这对你有帮助吗?请注意紧随其后的帖子进行更正。
Does this help you at all? Pay attention to the post right after it for a correction.
确实如此,我让 rvm 指向 1.9.2,然后安装了 1.8.7,一直存在这个问题,直到我使用 janus 并且它起作用了。
thats true, I had rvm pointing to 1.9.2 and then I installed 1.8.7, there was this issue all the time, until i used the janus and it worked.