neoclide / coc-python

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

Fix crash when jumping to definition #276

Closed WhyNotHugo closed 3 years ago

WhyNotHugo commented 3 years ago

Newer versions of Jedi return a Path object rather than a str for paths. This simple changes makes sure we cast it string before serialising as JSON.

This works with both older Jedis and with the latest version / master.

I've been doing some coding with this change, and jumping to definition works great again.

Fixes #263.

algmyr commented 3 years ago

@chemzqm Merge this?

WhyNotHugo commented 3 years ago

Thanks!

dmitmel commented 3 years ago

Hi, is there anything blocking a release with this fix? To be honest inability to jump to definition is a pretty serious issue.