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

Exception Script.__init__() got an unexpected keyword argument 'column' #152

Open
webgtx opened this issue Jan 7, 2024 · 3 comments
Open

Comments

@webgtx
Copy link

webgtx commented Jan 7, 2024

This happens just after I press tab in insert mode

Unhandled exception in event loop:
  File "/home/alex/.local/lib/python3.11/site-packages/prompt_toolkit/buffer.py", line 1920, in new_coroutine
    await coroutine(*a, **kw)
  File "/home/alex/.local/lib/python3.11/site-packages/prompt_toolkit/buffer.py", line 1744, in async_completer
    async for completion in async_generator:
  File "/home/alex/.local/lib/python3.11/site-packages/prompt_toolkit/completion/base.py", line 199, in get_completions_async
    for item in self.get_completions(document, complete_event):
  File "/home/alex/.local/lib/python3.11/site-packages/pyvim/completion.py", line 65, in get_completions
    script = self._get_jedi_script_from_document(document)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alex/.local/lib/python3.11/site-packages/pyvim/completion.py", line 101, in _get_jedi_script_from_document
    return jedi.Script(
           ^^^^^^^^^^^^
noticed
Exception Script.__init__() got an unexpected keyword argument 'column'
Press ENTER to continue...

Am I supposed to install something? I haven't seen anything about required dependencies in readme file :shipit:

@hhhhh322
Copy link

your jedi version is too high,if you change it to v0.17.2, this problem will be solved

@webgtx
Copy link
Author

webgtx commented May 12, 2024

@hhhhh322 thanks, that solved the problem. Also I had to downgrade python to 3.9 because jedi doesn't support 3.11+

Can we mention somewhere in the readme that pyvim doesn't support jedi 0.19.?

@hhhhh322
Copy link

@webgtx OK, that's a good advice,you can request a pull.

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