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

IndexError when creating jedi.Interpreter. #514

Closed
jonathanslenders opened this issue Nov 29, 2014 · 1 comment
Closed

IndexError when creating jedi.Interpreter. #514

jonathanslenders opened this issue Nov 29, 2014 · 1 comment
Labels

Comments

@jonathanslenders
Copy link

Not sure what the input was, but probably something like:

open('file', '
Traceback (most recent call last):
  File "/home/jonathan/git/prompt_toolkit/prompt_toolkit/contrib/python_input.py", line 458, in get_jedi_script_from_document
    namespaces=[locals, globals])
  File "/home/jonathan/env/mobilevikings/local/lib/python2.7/site-packages/jedi/api/__init__.py", line 642, in __init__
    interpreter.create(self._evaluator, namespaces[0], self._parser.module())
  File "/home/jonathan/env/mobilevikings/local/lib/python2.7/site-packages/jedi/api/interpreter.py", line 107, in create
    for something in getattr(parser_module, attr_name):
  File "/home/jonathan/env/mobilevikings/local/lib/python2.7/site-packages/jedi/parser/fast.py", line 38, in __getattr__
    return getattr(self.parsers[0].module, name)
IndexError: list index out of range
@davidhalter
Copy link
Owner

Probably fixed? Since you're not sure what the input was, I will just close it.

I have rewritten the interpreter completion completely. It should work much better with fewer exceptions.

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