DogLooksGood / emacs-rime

RIME ㄓ in Emacs
GNU General Public License v3.0
473 stars 68 forks source link

cannot enable input method. 初次配置失败之后没法重新再次生成配置文件 #183

Open arcbishopw opened 2 years ago

arcbishopw commented 2 years ago

你好大佬, 我按照教程安装到最后一步,启用rime的时候提示我初次安装会自动生成配置文件在~/.emacs.d/rime文件夹中,但当我选择yes的时候,emacs提示我worng-type-argument: stringp, nil 无法继续,在多次尝试后emacs卡死,强制结束windows远程桌面,再次开启emacs并选择rime输入法的时候,会重复出现上述提示,并且没有初次配置的提示框。

hello there, I'm following The instruction until the last step, emacs promoted that it will perform first time auto-config process, but when I feed yes it says that wrong-type-argument: stringp, nil, then emacs cannot continue, after multi retry emacs is frozen so I chosen to end the remote desktop process and reopen WSL system, At this time , it will promoted the same string as the early one ,and cannot use the rime input method, so please help me with this ,many thanks.

My environment:

Windows11 openSUSE-Tumbleweed WSL version GNU emacs 27.2

My .emacs configure

;;; rime
(require 'rime)
(setq rime-user-data-dir "~/.config/rime")
(setq rime-translate-keybindings
      '("C-f" "C-b" "C-n" "C-p" "C-g" "<left>" "<right>" "<up>" "<down>" "<prior>" "<next>" "<delete>"))
 (use-package rime
 :custom
  (default-input-method "rime"))

as you can see there is basically bare-bone configure, so I have no idea where to start ......

DogLooksGood commented 2 years ago

如果可以的话,使用 M-x toggle-debug-on-error, 这样在出错的时候可以得到异常栈。

liuwei0922 commented 1 year ago

可以看下 rime-share-data-dir 这个变量有没有得到设置,windows-nt 下那个默认设置需要在 msys 中启动,可以自己找到位置写在自己配置里面,比如 (setq rime-share-data-dir "c:/msys64/mingw64/share/rime-data")