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. – jue Feb 28 '20 at 15:18jediepcserver.py
exists under~/.emacs.d/elpa/jedi-core-0.2.8
– alper Mar 01 '20 at 09:49jedi server
to be detected byemacs
, is it normal? – alper Mar 02 '20 at 19:12:init
to:config
should I make any additional change as well? Eventuallyjedi
loads but it takes some time@jue – alper Aug 18 '20 at 07:32