I installed jedi along with some other packages via el-get the other day, and initially it all worked great (auto-completion, popup menus etc).
In the past few days, however, jedi has stopped working (ie auto-completion, popups and function argument suggestion no longer work).
I've discovered part of the reason for this not working is that, for some reason, auto-complete is not enabled on startup. I've tried adding (setq auto-complete-mode t) to my .emacs file both before and after el-get loads jedi, but despite enabling auto-complete, it still doesn't work for some reason. Instead, I have to enable auto-complete using Mx auto-complete-mode once emacs has loaded (I have also tried the suggestions here Emacs auto-complete-mode at startup , but that just throws a load of errors when emacs loads).
Besides this, when I type Mx jedi RET, some of the commands listed on the jedi troubleshooting page (such as jed:setup-keys) seem to be missing.
I also seem to be experiencing the same problems as this guy here: emacs-jedi does not find numpy completions , but I'm not sure if the two problems are linked.
I had the same problem with the auto-complete-mode
. I had to manually start it.
Being a total newbie I struggled with it for a while but deduced a solution. Maybe it's not very elegant, but it works... Add it as a hook to the python-mode
before enabling jedi ac.
;;enable jedi autocompletion in python
(add-hook 'python-mode-hook 'auto-complete-mode)
(add-hook 'python-mode-hook 'jedi:ac-setup)
Check out the troubleshooting section in the documentation first: http://tkf.github.com/emacs-jedi/#troubleshooting
I recommend you to start from make tryout
as mentioned in the document, like this:
curl -fsSkL https://raw.github.com/rejeep/carton/master/go | sh
make CARTON=$HOME/.carton/bin/carton tryout
From the document:
This will install requirements for Jedi.el separated from your local setup in
.emacs.d
. You can also check the configuration file tryout-jedi.el which is used bymake tryout
to see the minimum working configuration. If you have trouble setting up Jedi.el, compare your configuration file andtryout-jedi.el
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.