The last commit to ycmd/completers/python/python_completer.py ( 9e6b32b ) introduced several warnings and caused LOGGER.error to become unreachable/dead code.
E1120 No value for argument 'start' in constructor call, 621:9
E1120 No value for argument 'end' in constructor call, 621:9
|
responses.Range( *_OffsetToPosition( ( old_start, old_end ), |
|
filename, |
|
old_text, |
|
newlines ) ) |
|
) ) |
PLW0101 Unreachable code, 656:3
|
if len( loc ) == 2: |
|
break |
|
return loc |
|
|
|
# Invalid position - it's outside of the text. Just return the last |
|
# position in the text. This is an internal error. |
|
LOGGER.error( "Invalid offset %s in file %s with text %s and newlines %s", |
|
offset, |
|
filename, |
|
text, |
|
newlines ) |
|
raise RuntimeError( "Invalid file offset in diff" ) |
The last commit to ycmd/completers/python/python_completer.py ( 9e6b32b ) introduced several warnings and caused LOGGER.error to become unreachable/dead code.
E1120 No value for argument 'start' in constructor call, 621:9E1120 No value for argument 'end' in constructor call, 621:9ycmd/ycmd/completers/python/python_completer.py
Lines 621 to 625 in f53e7ac
PLW0101 Unreachable code, 656:3ycmd/ycmd/completers/python/python_completer.py
Lines 650 to 661 in f53e7ac