Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wsl2 下在spacemacs里使用pyim,每次用c \ 切换到pyim都会报错 #367

Closed
endlessMagic opened this issue May 11, 2020 · 5 comments

Comments

@endlessMagic
Copy link

No description provided.

@endlessMagic endlessMagic changed the title wsl 下在spacemacs里使用pyim,每次用c wsl 下在spacemacs里使用pyim,每次用c \ 切换到pyim都会报错 May 11, 2020
@endlessMagic
Copy link
Author

wsl 下在spacemacs里使用pyim,每次用c \ 切换到pyim都会报错,然后卡顿大概两三秒后可以切换到pyim并且使用。

用debug on error显示如下信息:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
signal(wrong-type-argument (stringp nil))
async-handle-result((lambda (result) (pyim-dcache-set-variable (quote pyim-dhashcache-code2word) t) (pyim-dcache-set-variable (quote pyim-dhashcache-word2code) t)) (async-signal (wrong-type-argument stringp nil)) #<buffer emacs<3>>)
async-when-done(#<process emacs<2>> "finished\n")

@endlessMagic
Copy link
Author

再从pyim切换回去,显示如下信息:

Debugger entered--Lisp error: (void-function nil)
nil()
deactivate-input-method()
#f(compiled-function (&optional arg interactive) "Enable or disable multilingual text input method for the current buffer.\nOnly one input method can be enabled at any time in a given buffer.\n\nThe normal action is to enable an input method if none was enabled,\nand disable the current one otherwise. Which input method to enable\ncan be determined in various ways--either the one most recently used,\nor the one specified by default-input-method', or as a last resort\nby reading the name of an input method in the minibuffer.\n\nWith a prefix argument ARG, read an input method name with the minibuffer\nand enable that one. The default is the most recent input method specified\n(not including the currently active input method, if any).\n\nWhen called interactively, the optional argument INTERACTIVE is non-nil,\nwhich marks the variable default-input-method' as set for Custom buffers." (interactive "P\np") #<bytecode 0x1d73af>)(nil 1)
ad-Advice-toggle-input-method(#f(compiled-function (&optional arg interactive) "Enable or disable multilingual text input method for the current buffer.\nOnly one input method can be enabled at any time in a given buffer.\n\nThe normal action is to enable an input method if none was enabled,\nand disable the current one otherwise. Which input method to enable\ncan be determined in various ways--either the one most recently used,\nor the one specified by default-input-method', or as a last resort\nby reading the name of an input method in the minibuffer.\n\nWith a prefix argument ARG, read an input method name with the minibuffer\nand enable that one. The default is the most recent input method specified\n(not including the currently active input method, if any).\n\nWhen called interactively, the optional argument INTERACTIVE is non-nil,\nwhich marks the variable default-input-method' as set for Custom buffers." (interactive "P\np") #<bytecode 0x1d73af>) nil 1)
apply(ad-Advice-toggle-input-method #f(compiled-function (&optional arg interactive) "Enable or disable multilingual text input method for the current buffer.\nOnly one input method can be enabled at any time in a given buffer.\n\nThe normal action is to enable an input method if none was enabled,\nand disable the current one otherwise. Which input method to enable\ncan be determined in various ways--either the one most recently used,\nor the one specified by default-input-method', or as a last resort\nby reading the name of an input method in the minibuffer.\n\nWith a prefix argument ARG, read an input method name with the minibuffer\nand enable that one. The default is the most recent input method specified\n(not including the currently active input method, if any).\n\nWhen called interactively, the optional argument INTERACTIVE is non-nil,\nwhich marks the variable default-input-method' as set for Custom buffers." (interactive "P\np") #<bytecode 0x1d73af>) (nil 1))
toggle-input-method(nil 1)
funcall-interactively(toggle-input-method nil 1)
call-interactively(toggle-input-method nil nil)
command-execute(toggle-input-method)

@endlessMagic endlessMagic changed the title wsl 下在spacemacs里使用pyim,每次用c \ 切换到pyim都会报错 wsl2 下在spacemacs里使用pyim,每次用c \ 切换到pyim都会报错 May 11, 2020
@tumashu
Copy link
Owner

tumashu commented Apr 28, 2021

这个好像是和 evil 相关的问题

@tumashu
Copy link
Owner

tumashu commented Apr 28, 2021

我试着hack了一下,也许有用

@tumashu
Copy link
Owner

tumashu commented Nov 21, 2021

这个issue我关闭了,有问题再开吧

@tumashu tumashu closed this as completed Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants