Closed Grueslayer closed 5 years ago
From your log:
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9e in position 2897: invalid start byte
YCM simply doesn't and most likely will not support non-UTF-8 encodings.
For further info please read https://github.com/Valloric/YouCompleteMe/issues/3065 (or any other discussing non-UTF-8 encoding).
Vim Encoding is UFT8! There are only 2 buffers open. The file with the first hit, which is correctly loaded and has correct fileencoding, buffer ist utf8. Second the quickfix buffer, which is also UTF8 and has some wrong encoding characters (because pt cant autodetect the correct encoding).
B U T: the Quickfix window is on my blacklist and has not to be searched by YCM
the Quickfix window is on my blacklist and has not to be searched by YCM
That's a key information you missed in your first post. Try to apply this patch and see if it works.
diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim
index b4e0ef8c..7682da8d 100644
--- a/autoload/youcompleteme.vim
+++ b/autoload/youcompleteme.vim
@@ -94,6 +94,10 @@ endfunction
function! s:ReceiveMessages( timer_id )
+ if !s:AllowedToCompleteInCurrentBuffer()
+ return
+ endif
+
let poll_again = s:Pyeval( 'ycm_state.OnPeriodicTick()' )
if poll_again
Hi, i would have given you this info if I knew it earlier. I had examined the problem more after you'd written the comment.
Your patch fixes the problem for me.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.install.py
(orcmake
/make
/ninja
) including its invocationThank 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
Using the plugin "ack.vim" and calling any Ack command will produce many error messages
No error messages
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Contents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
Output of build/install commands