neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

RuntimeError related to Jedi version being too old #236

Open EdmundsEcho opened 4 years ago

EdmundsEcho commented 4 years ago

Result from CocInfo

versions

vim version: NVIM v0.4.3 node version: v14.3.0 coc.nvim version: 0.0.78-263ec93b2c coc.nvim directory: /Users/edmund/.config/nvim/bundle/coc.nvim term: iTerm.app platform: darwin

Output channel: prettier

Output channel: Python

Starting Jedi Python language engine. ##########Linting Output - pylint##########


Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

##########Linting Output - pylint##########


Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Describe the bug

Calling the jump to definition function triggers a Runtime Error

[coc.nvim] Jedi error: Traceback (most recent call last):
[coc.nvim] Jedi error:     raise RuntimeError("Jedi version %s too old, requires >= 0.17.0" % (jedi.__v
ersion__))
[coc.nvim]: Error on notification "jumpDefinition": getDefinition timeout after 5s
Press ENTER or type command to continue

To troubleshoot, I updated the extension, plugin and plugin-manager. ... to no avail.

I then tried to uninstall the coc-python extension and received the following error

[coc.nvim] Uninstall failed: item.dispose is not a function

I tried to use the vim mini configuration, but it did not seem load the coc extension despite pointing it to the directory printed in the CocInfo output.

From what I have deduced, I'm not sure the Jedi script is being updated with the coc-python extension. Is that possible? Is there a way to manually update Jedi? (despite the docs that say not to update directly). Is there something wrong with Jedi?

Update

Everything works as expected when I replace Jedi with the MS language server with the setting "python.jediEnabled": false, in my config.

- E

stimw commented 4 years ago

same problem, I‘ve updated jedi,but still “Jedi version %s too old“

1ak31sha commented 4 years ago

same problem here

g-i-o-r-g-i-o commented 4 years ago

same on WSL 1 and ubuntu 8.2

j-bucholtz commented 4 years ago

Same issue on Pop!_OS 20.04.

g-i-o-r-g-i-o commented 4 years ago

Solved by updating python. No other solution worked

Il lun 7 set 2020, 22:52 Jordan Bucholtz notifications@github.com ha scritto:

Same issue on Pop!_OS 20.04.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neoclide/coc-python/issues/236#issuecomment-688507686, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACG2GHFVNZ7G4FJOZECZZ73SEVB2LANCNFSM4OGIFAFA .

SinclairHudson commented 3 years ago

Same issue on ubuntu 20.04... Is this a problem with Jedi or coc?

Himon-SYNCRAFT commented 3 years ago

If you are using virtual environment run "pip freeze" command and check jedi version in your project. It might differ from version you have installed globally.