ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.48k stars 2.81k forks source link

YCM error messages when editing a large file despite large file handling #2135

Closed ziz closed 8 years ago

ziz commented 8 years ago

Issue Prelude

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

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

[If filing a bug report, please include a list of steps that describe how to reproduce the bug you are experiencing. Also include test code if relevant.]

Problem:

Errors pop up on the first entry to insert mode when editing a file large enough to trigger ycm_disable_for_files_larger_than_kb in vim

Minimal recreation:

YouCompleteMe is disabled in this buffer; the file exceeded the max size (see YCM op tions).

  • Enter insert mode ('i') and observe the error message:

Error detected while processing function 194_SetOmnicompleteFunc[1]..194_P yeval:

And a moderate collection of further error messages show up. The full :messages output is attached: messages.txt

A bit of poking about suggests that the server is returning a 413 during a request in NativeFiletypeCompletionUsable, which is called from SetOmnicompleteFunc. Other things check ycm_largefile and bail if it's true, but that code path doesn't.

Requested debugging data

Printing YouCompleteMe debug information...
-- Server has Clang support compiled in: False
-- Server running at: http://127.0.0.1:54392
-- Server process ID: 111195
-- Server logfiles:
--   /tmp/ycm_temp/server_54392_stdout.log
--   /tmp/ycm_temp/server_54392_stderr.log
Press ENTER or type command to continue
2016-04-22 12:48:17,459 - DEBUG - No global extra conf, not calling method YcmCorePreload
2016-04-22 12:48:17,688 - INFO - Received health request
2016-04-22 12:48:17,694 - INFO - Received debug info request
icholy commented 8 years ago

See https://github.com/Valloric/ycmd/issues/461

vheon commented 8 years ago

I guess this was fixed by https://github.com/Valloric/ycmd/pull/482.