emacs-rime 使用雾凇拼音没有任何候选窗口出现

我刚接触了 emacs-rime, 用默认的 luna_pinyin+网上找的微软双拼方案成功了,体验相当好。我又听说了雾凇拼音,就试了试雾凇拼音,结果在 emacs 完全用不起来,想问问坛友们有什么建议么? 我是这样做的:

cd ~/.emacs.d
git clone https://github.com/iDvel/rime-ice --depth=1

接着对 emacs-rime 设置了:

(use-package rime
  :config
  (setq default-input-method "rime")
  (setq rime-show-candidate 'posframe)
  (setq rime-user-data-dir "~/.emacs.d/rime-ice")
  )

也就是直接修改 rime-user-data-dir.

执行过 M-x rime-deploy.

emacs 上用起来, 是这样:

image

完全没有任何窗口出现。想问问这可能是怎么回事呢?或者我有办法看到什么报错信息么?

你的配置不完整吧,参考一下这个,我的系统上 macOS,记得看官方 README:

(use-package rime :straight t
  :custom
  (default-input-method "rime")
  ;; FIXME
  (rime-librime-root "~/.emacs.d/librime/dist")
  (rime-emacs-module-header-root "/opt/homebrew/include")
  :config
  (define-key rime-mode-map (kbd "C-i") 'rime-force-enable)
  (setq rime-disable-predicates
        '(rime-predicate-evil-mode-p
          rime-predicate-after-alphabet-char-p
          rime-predicate-current-input-punctuation-p
          rime-predicate-current-uppercase-letter-p
          rime-predicate-punctuation-line-begin-p))
  ;; FIXME
  (setq rime-user-data-dir "~/Library/Rime")
  (setq rime-show-candidate 'posframe)
  (setq rime-posframe-style 'vertical)
  (setq rime-posframe-properties
        '(list
;          :background-color "#073642"
;          :foreground-color "#839496"
          :internal-border-width 10)))

我觉得不是配置的问题,因为我不用雾凇用 luna-pinyin 是可以的,而且我在终端看到了 librime 的报错信息,类似这样:

E0123 23:19:27.418555 270243 lua_gears.cc:167] LuaProcessor::ProcessKeyEvent of *select_character error(2): attempt to call a nil value
E0123 23:19:27.418833 270243 lua_gears.cc:15] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a nil value (upvalue 'f')
E0123 23:19:27.418900 270243 lua_gears.cc:15] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a nil value (upvalue 'f')
E0123 23:19:27.418931 270243 lua_gears.cc:15] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a nil value (upvalue 'f')

这个 一样。

我一开始以为是版本问题,因为雾凇 README 说最小版本是 1.8.5, 但我自己编译了 1.8.5 的还是不行,但我还是怀疑是版本问题。

看起来不像是 emacs-rime 的问题,你可以在系统里装个 rime ,先确认下雾凇输入法的配置,看能否在系统下应用成功。等系统里的搞定之后,再搞 emacs 里的。

是的,几乎可以肯定不是前端的问题,我在 ubuntu 系统试一下