-
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
Coc and YCM incompatible #3503
Comments
this looks like a conflict with another plugin. can you please try with the following vimrc (e.g. save as set rtp+=/path/to/YouCompleteMe
filetype plugin indent on Obviously, change the path. |
Please also test in Vim, not neovim. |
No answer, closing. Feel free to reopen after providing the requested info. |
minimal .vimrc:
You need to run Anyway, it seems like a collsion between coc and ycm. When I disable coc , it is fine. to reproduce, hit happens both in vim and nvim. |
Oh, sorry, the error is a bit different . This error happens a lot. and the original one not as many.
|
Related: Please reopen |
Yeah, clearly. Not a YCM issue. Coc and YCM are clearly incompatible and cannot be used together. |
Doesn’t look like a YCM issue. YCM assumes it is owning the complete func. If something messes with that, there’s nothing we can reasonably do. |
It is not that obvious. I thought to myself, well, let coc complete vimtex, and use ycm to complete ultisnip. And the completion suggestions for coc will be joined with those of ycm. I was even careful enough to set ycm on a whitelist for filetypes (but I am not sure what will happen on c++ , where I can't disable completely coc). |
If you want a vimscript LSP server, why don't you just tell ycm to use it? We do support |
I ran into issues when pressing <Tab> in some situations and YouCompleteMe producing all sorts of errors. Turns out YouCompleteMe and coc.nvim are incompatible with each other, see ycm-core/YouCompleteMe#3503
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe 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
:YcmToggleLogs
command.version) I am using.
my issue, including what I expected 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
with youcompleteme enabled in tex file (using vimtex)
I typed some letter for example \usepacakge{
When I type the { , the error appears
PS the only reason I use ycm for this file is because of ultisnip completion.
What actually happened?
Error detected while processing function 257_OnCompleteDone[5]..provider#python3#Call:
line 18:
Error invoking 'python_execute' on channel 4 (python3-script-host):
Traceback (most recent call last):
File "", line 1, in
File "/Users/eyalkarni/vimpy3/plugged/youcompleteme/python/ycm/youcompleteme.py", line 509, in OnCompleteDone
completion_request.OnCompleteDone()
File "/Users/eyalkarni/vimpy3/plugged/youcompleteme/python/ycm/client/completion_request.py", line 87, in OnCompleteDone
self._OnCompleteDone_FixIt()
File "/Users/eyalkarni/vimpy3/plugged/youcompleteme/python/ycm/client/completion_request.py", line 130, in _OnCompleteDone_FixIt
completions = self._GetCompletionsUserMayHaveCompleted()
File "/Users/eyalkarni/vimpy3/plugged/youcompleteme/python/ycm/client/completion_request.py", line 104, in _GetCompletionsUserMayHaveCompleted
return [ completions[ int( completed_item[ 'user_data' ] ) ] ]
ValueError: invalid literal for int() with base 10: '{"cid":1570702627,"source":"vimtex","index":754}'
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
-- Client logfile: /var/folders/rr/ht4whxv978xdd88mlqhy44br0000gn/T/ycm_3g3lnbv8.log
-- Server Python interpreter: /usr/local/bin/python3
-- Server Python version: 3.7.0
-- Server has Clang support compiled in: True
-- Clang version: clang version 6.0.0 (tags/RELEASE_600/final)
-- Extra configuration file found and loaded
-- Extra configuration path: /Users/eyalkarni/vimpy3/globalycm.py
-- Server running at: http://127.0.0.1:58035
-- Server process ID: 38942
-- Server logfiles:
-- /var/folders/rr/ht4whxv978xdd88mlqhy44br0000gn/T/ycmd_58035_stdout_6i2p5_n_.log
-- /var/folders/rr/ht4whxv978xdd88mlqhy44br0000gn/T/ycmd_58035_stderr_0bdaksbc.log
Contents of YCM, ycmd and completion engine logfiles
2019-10-10 12:50:01,450 - INFO - Received ready request
2019-10-10 12:59:59,479 - INFO - Received health request
2019-10-10 13:07:07,182 - INFO - Received event notification
2019-10-10 13:07:07,191 - INFO - Adding ONE buffer identifier for file: /Users/eyalkarni/thesisnew/newzig.tex
2019-10-10 13:07:07,193 - ERROR - No semantic completer exists for filetypes: ['tex']
Traceback (most recent call last):
File "/Users/eyalkarni/vimpy3/plugged/youcompleteme/third_party/ycmd/ycmd/../ycmd/server_state.py", line 101, in FiletypeCompletionAvailable
self.GetFiletypeCompleter( filetypes )
File "/Users/eyalkarni/vimpy3/plugged/youcompleteme/third_party/ycmd/ycmd/../ycmd/server_state.py", line 90, in GetFiletypeCompleter
current_filetypes ) )
ValueError: No semantic completer exists for filetypes: ['tex']
OS version, distribution, etc.
MACOS high sierra
The text was updated successfully, but these errors were encountered: