Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deferred error #240

Open
metakermit opened this issue Jul 9, 2015 · 2 comments
Open

deferred error #240

metakermit opened this issue Jul 9, 2015 · 2 comments

Comments

@metakermit
Copy link

As mentioned in this SO question, I am getting deferred errors when I try to get an autocompletion from Jedi in Emacs. Tried the suggested solutions, but didn't help. Any idea? The exact message I get is:

deferred error: error AttributeError('Script' object has no attribute 'complete')

My versions are:

  • jedi - 0.9.0
  • epc - 0.0.5
  • jedi & jedi-core (emacs packages) - 20150623
  • Python - 3.4.3
  • OS X Yosemite
@syohex
Copy link
Collaborator

syohex commented Jul 9, 2015

Could you check your installed jediepcserver.py ?
Does your jediepcserver.py call jedi.Script.complete, not jedi.Script.completion ?

jediepcserver.py never calls jedi.Script.complete method from #230.

@metakermit
Copy link
Author

hm, that's odd. My ~/.emacs.d/elpa/jedi-core-20150623.2335/jediepcserver.py does have for comp in jedi_script(*args).completions(), which should be fine.

And my initialisation of jedi is, as the docs suggest:

;; jedi
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:setup-keys t)                      ; optional
(setq jedi:complete-on-dot t)                 ; optional

The only thing I now see in the docs under manual installation, which I don't have is (autoload 'jedi:setup "jedi" nil t). Should I maybe add that too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants