9.10版本中gvim启动报错--------------------求助!!!------标题要长!

Vim、Emacs配置和使用
回复
sz851017
帖子: 1
注册时间: 2009-11-01 20:22

9.10版本中gvim启动报错--------------------求助!!!------标题要长!

#1

帖子 sz851017 » 2009-11-01 20:31

各位大大:
    小弟ubuntu刚刚升级成910,装完各种所需软件以后按以前的一样将vim以及其gui版本都新立得下来,
 但这个时候出现了问题,原本在804里好好的gvim居然报错,尽管能打开其,但每次启动都报出:
** (gvim:14235): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed

** (gvim:14235): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed

** (gvim:14235): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed

** (gvim:14235): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed

** (gvim:14235): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed
这样的警告,terminal也会停顿几秒钟。我已经将所有的gvim版本都弄下来了,包括gnome和gtk2版本的,若仅仅启动vim则完全没有问题

哪位GVIM或者ubuntu环境高手帮帮小弟啊   :em06
swore2
帖子: 6
注册时间: 2008-12-05 20:48

Re: 9.10版本中gvim启动报错--------------------求助!!!------标题要长!

#2

帖子 swore2 » 2009-11-08 8:37

这是一个没有修复的bug:
https://bugs.launchpad.net/ubuntu/+sour ... bug/402188

解决办法是


This bug is present in the release version of Karmic. Hopefully this warrants a "recommended updates" fix.

As a temporary workaround until it is fixed, you can declare an alias for gvim in your .bashrc pointed to 'gvim 2>/dev/null'. This will suppress all stderr messages, including this one, but bear in mind that if gvim encounters any other errors that would normally be reported via stderr, these will not be shown either.
回复