You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Provide a clear description of the problem, including the following key
questions:
On M1 Macbook Air, the Terminal app, not the vim process, has constant high CPU usage for each opened C++ file, including new files that don't exist.
With 3 new empty C++ files opened, the Terminal app takes 30+% CPU usage constantly, even when there's no input/action to vim. Currently I only found this problem with C++ files and with YCM enabled. The problem disappears if no C++ file is opened(e.g. only .py files) with YCM enabled, or C++ files are opened with disabled YCM, both takes 0.0% CPU usage.
With actual C++ files with complicated source code opened, even higher CPU usage is taken for each file and heats the computer constantly.
What did you do?
Include steps to reproduce here.
vim -Nu vimrc_ycm_minimal test1.cpp test2.cpp test3.cpp -O, no .cpp files have to exist.
Check CPU usage , no editing is needed.
If you made changes to vimrc_ycm_minimal, pase them here:
No change is made.
What did you expect to happen?
Don't take high CPU usage when idle.
What actually happened?
Terminal app takes high CPU usage constantly.
Issue Prelude
Please complete these steps and check these boxes (by putting an
xinsidethe brackets) before filing your issue:
[Frequently Asked Questions][faq] section.
about to report and couldn't find an answer to my problem. ([Example Google
search.][search])
vim --version.:YcmDebugInfo.the
:YcmToggleLogscommand.version) I am using.
my issue, using
vim -Nu /path/to/YCM/vimrc_ycm_minimal, including what Iexpected to happen and what actually happened.
of
install.py(orcmake/make/ninja) including its invocationthat 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.
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
On M1 Macbook Air, the Terminal app, not the vim process, has constant high CPU usage for each opened C++ file, including new files that don't exist.
With 3 new empty C++ files opened, the Terminal app takes 30+% CPU usage constantly, even when there's no input/action to vim. Currently I only found this problem with C++ files and with YCM enabled. The problem disappears if no C++ file is opened(e.g. only
.pyfiles) with YCM enabled, or C++ files are opened with disabled YCM, both takes 0.0% CPU usage.With actual C++ files with complicated source code opened, even higher CPU usage is taken for each file and heats the computer constantly.
vim -Nu vimrc_ycm_minimal test1.cpp test2.cpp test3.cpp -O, no.cppfiles have to exist.No change is made.
What did you expect to happen?
Don't take high CPU usage when idle.
What actually happened?
Terminal app takes high CPU usage constantly.
Diagnostic data
Output of
vim --versionOutput of
YcmDebugInfoOutput of
YcmDiagsOutput of
git rev-parse HEADin YouCompleteMe installation directoryContents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
M1 Macbook Air, macOS 14.1 (23B74)