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

Python completion not working after update #3765

Closed
sansna opened this issue Sep 21, 2020 · 5 comments
Closed

Python completion not working after update #3765

sansna opened this issue Sep 21, 2020 · 5 comments

Comments

@sansna
Copy link

sansna commented Sep 21, 2020

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:

  • [x ] I have read and understood YCM's CONTRIBUTING document.
  • [x ] I have read and understood YCM's CODE_OF_CONDUCT document.
  • [x ] I have read and understood YCM's README, especially the
    Frequently Asked Questions section.
  • [x ] I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. (Example Google
    search.
    )
  • [x ] If filing a bug report, I have included the output of vim --version.
  • [x ] If filing a bug report, I have included the output of :YcmDebugInfo.
  • [x ] If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • [x ] If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • [x ] If filing a bug report, I have included a minimal test case that reproduces
    my issue, using vim -Nu /path/to/YCM/vimrc_ycm_minimal, including what I
    expected to happen and what actually happened.
  • [x ] If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • [x ] I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt gift of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • [x ] I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key
questions:

  1. built ycm months ago with option --all + python3.7
  2. works perfectly with python/go/... completers
  3. today I did a git pull origin master
  4. and rebuilt ycm with python3 ./install.py --all (python version 3.8)
  5. go completer works, but python completer failed. (ValueError: No semantic completer exists for filetypes: ['python'])

so, what is the recommended way of building ycm after pulling from master?

  • What did you expect to happen?

python completer works

  • What actually happened?

It does not find a python completer.
prompts: ycm-core/YouCompleteMe/third_party/ycmd/ycmd/server_state.py", line 91, in GetFiletypeCompleter
raise ValueError(
ValueError: No semantic completer exists for filetypes: ['python']

Contents of YCM, ycmd and completion engine logfiles

Reproduce the issue with vim -Nu /path/to/YCM/vimrc_ycm_minimal, which
enabled debug logging and other useful diagnostics. Include a link to a
gist containing all of the log files listed by :YcmToggleLogs.

OS version, distribution, etc.

MacOS 10.15

Output of build/install commands

No error reported.

@puremourning
Copy link
Member

puremourning commented Sep 21, 2020

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.

@puremourning

This comment has been minimized.

@obrusvit

This comment has been minimized.

@puremourning puremourning changed the title What is the recommended way of rebuilding ycm after pulled master? Python completion not working after update Sep 28, 2020
@puremourning puremourning pinned this issue Sep 28, 2020
@kgonidis

This comment has been minimized.

@puremourning
Copy link
Member

I updated the nuclear instructions. but thanks for the info. going to lock this so that the solution doesn't get swallowed.

@ycm-core ycm-core locked and limited conversation to collaborators Sep 28, 2020
@puremourning puremourning unpinned this issue Dec 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants