ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.44k stars 2.81k forks source link

Python Completion Not Working in YCM #3933

Closed bgenchel closed 3 years ago

bgenchel commented 3 years ago

This Issue was brought up in the past: https://github.com/ycm-core/YouCompleteMe/issues/3765

The solution was:

This is a "known" issue that affects some people when switching python versions. It seems to be a problem with Jedi. We're not sure why this happens, but we don't think there's anything that we can do about it. It's something to do with `.pyc` files.

The solution is to delete the python cached files in Jedi. 

* `cd /path/to/YCM/third_party/ycmd`
* `find . -type f -name '*.pyc' -delete`

Then just restart vim.
_Originally posted by @puremourning in https://github.com/ycm-core/YouCompleteMe/issues/3765#issuecomment-695970983_

This did not work for me, i'm still seeing the same issue.

puremourning commented 3 years ago

I think this is a duplication of #3934 ?

Either way, no issue template, no response. See CONTRIBUTING.md.