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

Attribute error when getting completions for "yield " as inputstring. #508

Closed
jonathanslenders opened this issue Nov 19, 2014 · 3 comments
Closed
Labels

Comments

@jonathanslenders
Copy link

Jedi crashes when we retrieve the completions for the string "yield ".

  File "/usr/lib/python3.4/site-packages/prompt_toolkit-0.22-py3.4.egg/prompt_toolkit/contrib/ipython.py", line 69, in get_completions
    for c in super(IPythonCompleter, self).get_completions(document):
  File "/usr/lib/python3.4/site-packages/prompt_toolkit-0.22-py3.4.egg/prompt_toolkit/contrib/python_input.py", line 477, in get_completions
    script = get_jedi_script_from_document(document, self.get_locals(), self.get_globals())
  File "/usr/lib/python3.4/site-packages/prompt_toolkit-0.22-py3.4.egg/prompt_toolkit/contrib/python_input.py", line 457, in get_jedi_script_from_document
    namespaces=[locals, globals])
  File "/usr/lib/python3.4/site-packages/jedi-0.8.1_final0-py3.4.egg/jedi/api/__init__.py", line 642, in __init__
    interpreter.create(self._evaluator, namespaces[0], self._parser.module())
  File "/usr/lib/python3.4/site-packages/jedi-0.8.1_final0-py3.4.egg/jedi/api/interpreter.py", line 108, in create
    something.parent = ns
AttributeError: 'NoneType' object has no attribute 'parent'

See also: prompt-toolkit/python-prompt-toolkit#65

@davidhalter
Copy link
Owner

Thanks. I'm currently rewriting the parser. I hope this issue will be resolved once the new parser is here.

@jonathanslenders
Copy link
Author

Great! Thanks for such a great project!

@davidhalter davidhalter added the bug label Mar 5, 2015
@davidhalter
Copy link
Owner

Still happening? (The interpreter stuff has been rewritten)

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

No branches or pull requests

2 participants