Closed fx-kirin closed 3 years ago
jedi has already abandoned python 2.7 support. Does completor still need 2.7 support?
Thanks for your contribution! I think to fix the problem we can just change the line to use str(d.module_path)
. Would you mind to modify your fix?
No problem. Done!
Currently
jump-to-definition
isn't working properly with python3 because PosixPath cannot be converted into json format directly.This is a quick patch to fix it.
It was hard to find this bug because json dump failure didn't have any output to logger. I think exception handling of json dumping failure should be added too.