I am getting following error when I do M-x elpy-goto-definition
, even though I have installed jedi
. I have followed following answer and this one.
Error message: This feature requires the ‘jedi‘ package to be installed.
My configuration as follows:
(use-package elpy
:ensure t
:init
(elpy-enable))
(setq elpy-rpc-backend "jedi")
;;;;;;; Standard Jedi.el setting
(add-hook 'python-mode-hook 'jedi:setup)
(add-hook 'python-mode-hook 'jedi:ac-setup)
(setq jedi:setup-keys t) ; optional
(setq jedi:complete-on-dot t) ; optional
(add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))
[Q] How could I combine elpy
and jedi
?
(elpy-enable)
beforeelpy
is loaded. Change:init
to:config
Read at the manual about the function of both keywords.