Emacs Jedi automatically completes init

I installed jedi along with some other packages via el-get the other day, and initially it all worked perfectly (auto-complete, pop-up menus, etc.).

In the past few days, however, jedi has stopped working (i.e. autocomplete, pop-ups, and suggesting function arguments no longer work).

I found that part of the reason for this does not work, because for some reason autocomplete is not enabled at startup. I tried adding (setq auto-complete-mode t) to the .emacs file both before and after el-get load jedi, but despite the automatic completion, for some reason it still doesn't work. Instead, I need to enable autocompletion using Mx auto-complete-mode after loading emacs (I also tried the suggestions here Automatic Emacs full mode at startup , but it just throws a load of errors when loading emacs).

Also, when I type Mx jedi RET, some of the commands listed on the jedi troubleshooting page (like jed: setup-keys) seem to be missing.

I am also having the same problems as this guy: emacs-jedi does not find numpy completion , but I'm not sure if the two problems are related.

+4
source share
2 answers

I had the same problem with auto-complete-mode . I had to manually start it.

Being a complete newbie, I fought with him for a while, but came up with a solution. It may not be very elegant, but it works ... Add it as a hook in 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) 
+3
source

First check out the troubleshooting section of the documentation: http://tkf.github.com/emacs-jedi/#troubleshooting

I recommend that you start with make tryout as indicated in the document, for example:

  curl -fsSkL https://raw.github.com/rejeep/carton/master/go | sh make CARTON=$HOME/.carton/bin/carton tryout 

From the doc:

This will set the requirements for Jedi.el, separate from your local configure in .emacs.d . You can also check the tryout-jedi.el configuration file used by make tryout to see the minimal working configuration. If you are having trouble setting up Jedi.el, compare the configuration file and tryout-jedi.el .

+2
source

All Articles