39fe6d1f86
[READY] Apply chunks from bottom to top Without the proposed fix, the test included in that PR fails as follows ``` FAIL: ycm.tests.vimsupport_test.ReplaceChunksInBuffer_LineOverlappingChunks_test ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python36\lib\site-packages\nose\case.py", line 198, in runTest self.test(*self.arg) File "C:\Users\micbou\projects\YouCompleteMe\python\ycm\tests\vimsupport_test.py", line 768, in ReplaceChunksInBuffer_LineOverlappingChunks_test AssertBuffersAreEqualAsBytes( expected_buffer, result_buffer ) File "C:\Users\micbou\projects\YouCompleteMe\python\ycm\tests\vimsupport_test.py", line 86, in AssertBuffersAreEqualAsBytes eq_( ToBytes( result_line ), ToBytes( expected_line ) ) AssertionError: b' third line' != b' third ' ``` Found the issue while trying to add code formatting support to the language server completer. The test is based on a real-world scenario when formatting with jdt.ls (for some reason, jdt.ls is including the newline of the previous line when fixing indentation). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2898) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
client | ||
tests | ||
__init__.py | ||
base.py | ||
buffer.py | ||
diagnostic_filter.py | ||
diagnostic_interface.py | ||
omni_completer.py | ||
paths.py | ||
setup.py | ||
syntax_parse.py | ||
unsafe_thread_pool_executor.py | ||
vimsupport.py | ||
youcompleteme.py |