[Bug 1078701] [NEW] GVim and ibus integration raises dbus.exception.DBusException
Michael Penkov
1078701 at bugs.launchpad.net
Wed Nov 14 12:42:23 UTC 2012
Public bug reported:
I'm using ibus IME to input Japanese text into GVim. I have the
following Vim script that I source when GVim starts up:
autocmd InsertLeave * :call bug#onInsertLeave()
function! bug#onInsertLeave()
python << EOT
import vim
import ibus
bus = ibus.Bus()
ic = ibus.InputContext(bus, bus.current_input_contxt())
ic.disable()
print "bug#onInsertLeave(): exiting"
EOT
endfunction
The line that constructs the InputContext raises the exception:
dbus.exception.DBusException: org.freedesktop.DBus.Error.Failed: no
focused input context
This happens under the following conditions:
1. I enter insert mode
2. I insert some Japanese text
3. I exit insert mode
If I don't enter any Japanese text through the IME, then the exception
is not raised.
I've also noticed that if I exit insert mode after entering some
Japanese text while the IME is still enabled, then IME input is disabled
(I can see the icon change in the taskbar). If I exit insert mode
without entering any Japanese text, but while the IME is still enabled,
then the IME stays enabled (the icon does not change). It seems like
GVim is disabling the IME (or the IME is switching off) in some
conditions. Could it be related to the exception?
My system info:
> misha at misha-lmd:~/git/iwait2013/lagos$ apt-cache policy ibus ibus:
> Installed: 1.4.1-3ubuntu1 Candidate: 1.4.1-3ubuntu1 Version table:
> *** 1.4.1-3ubuntu1 0
> 500 http://jp.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
> 100 /var/lib/dpkg/status misha at misha-lmd:~/git/iwait2013/lagos$ apt-cache policy vim vim:
> Installed: 2:7.3.429-2ubuntu2.1 Candidate: 2:7.3.429-2ubuntu2.1
> Version table: *** 2:7.3.429-2ubuntu2.1 0
> 500 http://jp.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
> 100 /var/lib/dpkg/status
> 2:7.3.429-2ubuntu2 0
> 500 http://jp.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
I've confirmed this behaviour on Fluxbox and Unity.
I've also tried asking on the forums, but nobody was able to answer:
http://askubuntu.com/questions/210567/vim-disables-ibus-ime-is-
this-a-bug
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: vim-gnome 2:7.3.429-2ubuntu2.1
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
Uname: Linux 3.2.0-31-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Wed Nov 14 21:38:10 2012
ExecutablePath: /usr/bin/vim.gnome
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
SourcePackage: vim
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: vim (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug precise
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/1078701
Title:
GVim and ibus integration raises dbus.exception.DBusException
Status in “vim” package in Ubuntu:
New
Bug description:
I'm using ibus IME to input Japanese text into GVim. I have the
following Vim script that I source when GVim starts up:
autocmd InsertLeave * :call bug#onInsertLeave()
function! bug#onInsertLeave()
python << EOT
import vim
import ibus
bus = ibus.Bus()
ic = ibus.InputContext(bus, bus.current_input_contxt())
ic.disable()
print "bug#onInsertLeave(): exiting"
EOT
endfunction
The line that constructs the InputContext raises the exception:
dbus.exception.DBusException: org.freedesktop.DBus.Error.Failed: no
focused input context
This happens under the following conditions:
1. I enter insert mode
2. I insert some Japanese text
3. I exit insert mode
If I don't enter any Japanese text through the IME, then the exception
is not raised.
I've also noticed that if I exit insert mode after entering some
Japanese text while the IME is still enabled, then IME input is
disabled (I can see the icon change in the taskbar). If I exit insert
mode without entering any Japanese text, but while the IME is still
enabled, then the IME stays enabled (the icon does not change). It
seems like GVim is disabling the IME (or the IME is switching off) in
some conditions. Could it be related to the exception?
My system info:
> misha at misha-lmd:~/git/iwait2013/lagos$ apt-cache policy ibus ibus:
> Installed: 1.4.1-3ubuntu1 Candidate: 1.4.1-3ubuntu1 Version table:
> *** 1.4.1-3ubuntu1 0
> 500 http://jp.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
> 100 /var/lib/dpkg/status misha at misha-lmd:~/git/iwait2013/lagos$ apt-cache policy vim vim:
> Installed: 2:7.3.429-2ubuntu2.1 Candidate: 2:7.3.429-2ubuntu2.1
> Version table: *** 2:7.3.429-2ubuntu2.1 0
> 500 http://jp.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
> 100 /var/lib/dpkg/status
> 2:7.3.429-2ubuntu2 0
> 500 http://jp.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
I've confirmed this behaviour on Fluxbox and Unity.
I've also tried asking on the forums, but nobody was able to answer:
http://askubuntu.com/questions/210567/vim-disables-ibus-ime-is-
this-a-bug
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: vim-gnome 2:7.3.429-2ubuntu2.1
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
Uname: Linux 3.2.0-31-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Wed Nov 14 21:38:10 2012
ExecutablePath: /usr/bin/vim.gnome
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
SourcePackage: vim
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1078701/+subscriptions
More information about the foundations-bugs
mailing list