请教 python 补全问题

python

我在写 python 代码的时候, 好像遇到了重复补全的问题. 如何只保留一个呢?

我的补全设置: (elpy-enable) (setq elpy-rpc-python-command “python3”) (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t)

可以尝试Nox, Nox对Python支持很好

谢谢懒猫.

之前试过 Nox, 但是试了好几次, 报错一直解决不了.

[jsonrpc] Server exited with status 154

Error in post-command-hook ((closure ((--cl-maybe-connect-- closure #1 nil (progn (remove-hook 'post-command-hook --cl-maybe-connect-- nil) (let ((G4 buffer)) (if (buffer-live-p G4) (save-current-buffer (set-buffer G4) (if nox--managed-mode nil (apply #'nox--connect (nox--guess-contact)))))))) (buffer . #<buffer aaa.py>) nox--managed-mode t) nil (progn (remove-hook 'post-command-hook --cl-maybe-connect-- nil) (let ((G4 buffer)) (if (buffer-live-p G4) (save-current-buffer (set-buffer G4) (if nox--managed-mode nil (apply #'nox--connect (nox--guess-contact))))))))): (error "[nox] -1: Server died")

按照 https://github.com/manateelazycat/nox#install-dependences 这个说明安装的, mspyls 也给了可执行权限.

chai@shhhchai:~/.emacs.d/nox>cl mspyls/

total 92K

-rwxr-xr-x 1 chai chai 89K Jun 29 11:07 Microsoft.Python.LanguageServer

平台: WSL2, Arch Linux, Emacs version: 28.0.50