比如我写了一个 test.py 文件
from utils import *
print(get_emacs_var("emacs-version"))
print(get_emacs_vars(["emacs-version", "emacs-build-system"]))
print(get_emacs_func_result("emacs-version"))
def echo(self, msg1, msg2):
eval_in_emacs("message", "%s %s", msg1, msg2)
return "emacs"
emacs端执行 (shell-command "python test.py")
报错:
File "c:\Users\26289\IPARA\3-RESOURCES\emacs\config\elisp\emacs-kp\utils.py", line 129, in get_emacs_var
symbol_value, symbol_is_boolean = epc_client.call_sync("get-emacs-var", [var_name]) # type: ignore
AttributeError: 'NoneType' object has no attribute 'call_sync'
执行 (ekp-bridge-call--sync "echo" "hello" "world")
报错
(wrong-type-argument stringp (epc-error "EPC-ERROR: No such method : echo"))
format-message((epc-error "EPC-ERROR: No such method : echo"))
error((epc-error "EPC-ERROR: No such method : echo"))
不知道我的使用姿势哪里有问题呀?请教一下懒猫大大 @manateelazycat 或其他知道的小伙伴。