ycm-core / YouCompleteMe

A code-completion engine for Vim

Home Page:http://ycm-core.github.io/YouCompleteMe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seeding identifiers with syntax removes the Vim information screen

GergelyKalmar opened this issue · comments

Issue Prelude

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

  • I have read and understood YCM's [CONTRIBUTING][cont] document.
  • I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
  • I have read and understood YCM's [README][readme], especially the
    [Frequently Asked Questions][faq] section.
  • 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.][search])
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included the output of :YcmDebugInfo.
  • If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • 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.
  • If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • 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.
  • 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

  • What did you do?

I have enabled the g:ycm_seed_identifiers_with_syntax option and started vim.

  • What did you expect to happen?

Seeing the usual information page with the version and other information.

  • What actually happened?

The information page appeared for a moment then disappeared.

I cannot repro this as described and you have not provided steps to reproduce or the full issue template.

en@BenMBP2021 YouCompleteMe % git diff !$
git diff vimrc_ycm_minimal
diff --git a/vimrc_ycm_minimal b/vimrc_ycm_minimal
index 14934285..c74ebc07 100644
--- a/vimrc_ycm_minimal
+++ b/vimrc_ycm_minimal
@@ -16,6 +16,7 @@ let g:ycm_log_level = 'debug'
 " If the base settings don't repro, paste your existing config for YCM only,
 " here:
 " let g:ycm_....
+let g:ycm_seed_identifiers_with_syntax=1

 " Load YCM (only)
 let &rtp .= ',' . expand( '<sfile>:p:h' )
ben@BenMBP2021 YouCompleteMe %
  • vim -Nu vimrc_ycm_minimal

Does not show the issue.

Yes, because you also need to enable YCM for the file type that vim opens with. If you add this diff to the minimal vimrc it should reproduce:

let g:ycm_seed_identifiers_with_syntax=1
let g:ycm_filetype_whitelist = {'*': 1, 'ycm_nofiletype': 1}

I can repro, thanks.

PR #4156 should resolve this, though I'm in 2 minds about changing this. it just seems so minor, and the change is a bit risky.

I partly agree, still, I decided I'd rather turn the option off than lose the splash screen for now. If it didn't appear at all, it would be maybe more bearable, but now it just shows up for a spit second and then disappears, which always confuses my brain.

In a perfect world we have both the functionality and the splash screen :).

You could just turn off completion in ycm_nofiletype; this is a rare and unusual configuration with limited uses.

Somehow it happens relatively often that I edit a file without an extension/known filetype, so it's quite useful to me. In any case, thank you very much for the help and for deploying the fix! Seems to work perfectly.