-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Python2 branch does not work when signature help disabled. #3595
Comments
Sorry about the curt issue. Normally when an issue like this arises I just checkout the commit before the issue occurred and keep working, waiting until a fix comes in and then go back to the proper branch. But git can't find anything except the tip of the branch for some reason, and vim-plug can't even find the legacy branch. |
The steps to use the legacy py2 branch are:
If you have a shallow clone then that's not going to work. NOTE: vim-plug creates shallow clones by default, so it likely won't work. Please consult vim-plug documentation to resolve this. YCM maintainers do not provide support for plugin managers. I'm sorry that you frustrated. We did announce this change would happen quite some time ago. And we mantain the legacy branch precisely for the reason that we realise some users can't (or won't) adopt python3. Anyway, could you please list the exact steps you took to checkout the legacy py2 branch ? Also, would you please describe the exact problem you are actually seeing ? As a polite reminder, before responding further, please read CONTRIBUTING.md and CODE_OF_CONDUCT.md. |
For the record, i just followed the above steps, and things worked OK even with a python2-enabled vim, so i'm confident that it is not 'borked', and that the issue is with your installation. |
Yes I'm sorry for my approach to filing this issue, it was probably a bit rude. Is there a way to revert to the state of the repo from before the weekend? Everything worked fine then. But git can't find the commit tree. I normally install using vim-plug: But vim-plug can't find the branch and ends up checking out master instead. If I manually follow the steps you suggested, still nothing works. The error log is full of this traceback:
|
Yes, follow the instructions i posted above.
Once again, if you don't show us the exact commands and the exact output, including the exact set of steps and expected/actual results, we can't really help. Let's start with the basics: follow my commands above, and paste the output in a gist. Please also paste the output of the following commands in the
IIRC one of the plugin managers does some nonesense with shallow clones or caches and it frequently causes problems. |
For example, do you have this set?
|
No, unless it's set by default. |
erm click the link, read the table - it is set by default. |
After a shallow clone, git will only pull in the branch that was used when the shallow clone was created. |
Is there a reason you didn't follow all of my instructions, and provide alll of the output i requested ? |
Anyway, can you try cloning the repo manually, following my instructions above, then configuring vim-plug to use that clone, per these instructions. Honestly it's quite difficult to diagnose your issue from a distance, but i am 100% sure it is a problem with the state of your installation and not a YCM issue. The legacy-py2 branch is literally the exact commit from before the merge of the py3-only migration:
If you're convinced this is the issue, try checking out 3e6114a which is from Thu Jan 23 |
I'm sorry I don't have time to work this through right now, I have other things I need to get done. I will come back to this later. Thank you for your patience |
Oh hang on. I know what this is. And I can repro with: vim -Nu vimrc_pwd --cmd 'let g:ycm_disable_signature_help=1' third_party/ycmd/ycmd/handlers.py It was fixed in ycmd, but i think we need to update ycmd in YCM in the py2 branch. When you have 2 minutes, the solution is:
I'll push a PR to fix it, but for the record, this has been broken for a while! |
That seems to have done the trick. Thank you and again I'm sorry for not following the rules. I was a little bit stressed, and it got the better of me. I'll take a few breaths next time and do my due diligence. |
I suspect you weren't on the latest commit up until today ? If not, then I'm a little surprised too. |
Fixed by #3596 |
I have to use python 2 still. The legacy support branch is not working.
The text was updated successfully, but these errors were encountered: