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
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.)
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:
What did you do?
Normally deleted some lines of particular code and many errors(see below) pops up when semantic highlighting was enabled.
:1,4d (Deletes first 4 lines of code with ONE delete operation. Visual-selecting the lines with shift-V then d also works. The last two lines(empty line and main function) are also important to reproduce issue.)
Include description of a minimal test case, including any actual code required
to reproduce the issue.
See above.
If you made changes to vimrc_ycm_minimal, pase them here:
Many errors pops up when semantic highlighting was enabled.
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
Traceback (most recent call last):
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
File "<string>", line 1, in <module>
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
File "/Users/namniav/.vim/plugged/YouCompleteMe/python/ycm/scrolling_range.py", line 91, in Update
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
self._Draw()
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
~~~~~~~~~~^^
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
File "/Users/namniav/.vim/plugged/YouCompleteMe/python/ycm/semantic_highlighting.py", line 134, in _Draw
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
raise e
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
File "/Users/namniav/.vim/plugged/YouCompleteMe/python/ycm/semantic_highlighting.py", line 124, in _Draw
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
tp.AddTextProperty( self._bufnr, self._prop_id, prop_type, rng )
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
File "/Users/namniav/.vim/plugged/YouCompleteMe/python/ycm/text_properties.py", line 68, in AddTextProperty
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
return vim.eval( f"prop_add( { range[ 'start' ][ 'line_num' ] },"
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Press ENTER or type command to continue
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
f" { range[ 'start' ][ 'column_num' ] },"
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
f" { json.dumps( props ) } )" )
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
vim.error: Vim:E966: Invalid line number: 2
Press ENTER or type command to continue
Error detected while processing function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable[7]..function <SNR>29_PollSemanticHighlighting[1]..<SNR>29_PollScrollable:
line 7:
E858: Eval did not return a valid python object
Press ENTER or type command to continue
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
Frequently Asked Questions section.
about to report and couldn't find an answer to my problem. (Example Google
search.)
vim --version
.:YcmDebugInfo
.the
:YcmToggleLogs
command.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
Normally deleted some lines of particular code and many errors(see below) pops up when semantic highlighting was enabled.
cat test.cpp
vim -Nu /path/to/YCM/ycm_vimrc_minimal test.cpp
:1,4d
(Deletes first 4 lines of code with ONE delete operation. Visual-selecting the lines withshift-V
thend
also works. The last two lines(empty line andmain
function) are also important to reproduce issue.)See above.
No error.
Many errors pops up when semantic highlighting was enabled.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Output of
YcmDiags
Output of
git rev-parse HEAD
in YouCompleteMe installation directoryContents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
M1 Macbook Air, macOS Sonoma 14.1
The text was updated successfully, but these errors were encountered: