Source: python-language-server
Version: 0.36.2-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:237: python3.10 setup.py config 
> running config
> I: pybuild base:237: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:237: /usr/bin/python3.10 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/workspace.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/hookspecs.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/__main__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/python_ls.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/lsp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/uris.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> copying pyls/_utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/folding.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/autopep8_format.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/hover.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/mccabe_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/rope_completion.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/jedi_completion.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/signature.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/preload_imports.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/pylint_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/definition.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/symbols.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/yapf_format.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/highlight.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/pydocstyle_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/flake8_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/rope_rename.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/pyflakes_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/jedi_rename.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/references.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> copying pyls/plugins/pycodestyle_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/plugins
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/config
> copying pyls/config/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/config
> copying pyls/config/flake8_conf.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/config
> copying pyls/config/pycodestyle_conf.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/config
> copying pyls/config/config.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/config
> copying pyls/config/source.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/config
> UPDATING /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/_version.py
> set /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pyls/_version.py to '0.36.2'
> I: pybuild base:237: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/workspace.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/hookspecs.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/__main__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/python_ls.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/lsp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/uris.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> copying pyls/_utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/folding.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/autopep8_format.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/hover.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/mccabe_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/rope_completion.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/jedi_completion.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/signature.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/preload_imports.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/pylint_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/definition.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/symbols.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/yapf_format.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/highlight.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/pydocstyle_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/flake8_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/rope_rename.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/pyflakes_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/jedi_rename.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/references.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> copying pyls/plugins/pycodestyle_lint.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/plugins
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/config
> copying pyls/config/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/config
> copying pyls/config/flake8_conf.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/config
> copying pyls/config/pycodestyle_conf.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/config
> copying pyls/config/config.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/config
> copying pyls/config/source.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/config
> UPDATING /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/_version.py
> set /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pyls/_version.py to '0.36.2'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; 
> python3.10 -m pytest test
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> plugins: flaky-3.7.0, xvfb-2.0.0, cov-3.0.0
> collected 119 items
> 
> test/test_document.py .........                                          [  
> 7%]
> test/test_language_server.py .ss.                                        [ 
> 10%]
> test/test_uris.py ...sss..ss..                                           [ 
> 21%]
> test/test_utils.py ......                                                [ 
> 26%]
> test/test_workspace.py ................                                  [ 
> 39%]
> test/plugins/test_autopep8_format.py ....                                [ 
> 42%]
> test/plugins/test_completion.py .............F....s.                     [ 
> 59%]
> test/plugins/test_definitions.py ...                                     [ 
> 62%]
> test/plugins/test_flake8_lint.py ....                                    [ 
> 65%]
> test/plugins/test_folding.py ..                                          [ 
> 67%]
> test/plugins/test_highlight.py ..                                        [ 
> 68%]
> test/plugins/test_hover.py F.                                            [ 
> 70%]
> test/plugins/test_jedi_rename.py .                                       [ 
> 71%]
> test/plugins/test_mccabe_lint.py ..                                      [ 
> 73%]
> test/plugins/test_pycodestyle_lint.py ..                                 [ 
> 74%]
> test/plugins/test_pydocstyle_lint.py ....                                [ 
> 78%]
> test/plugins/test_pyflakes_lint.py .F..                                  [ 
> 81%]
> test/plugins/test_pylint_lint.py .Fss.s                                  [ 
> 86%]
> test/plugins/test_references.py ..                                       [ 
> 88%]
> test/plugins/test_rope_rename.py .                                       [ 
> 89%]
> test/plugins/test_signature.py ......                                    [ 
> 94%]
> test/plugins/test_symbols.py ..s                                         [ 
> 96%]
> test/plugins/test_yapf_format.py ....                                    
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _____________________________ test_snippet_parsing 
> _____________________________
> 
> config = <pyls.config.config.Config object at 0x7fe1a73b0820>
> workspace = <pyls.workspace.Workspace object at 0x7fe1a73c76a0>
> 
>     def test_snippet_parsing(config, workspace):
>         doc = 'import numpy as np\nnp.logical_and'
>         completion_position = {'line': 1, 'character': 14}
>         doc = Document(DOC_URI, workspace, doc)
>         config.capabilities['textDocument'] = {
>             'completion': {'completionItem': {'snippetSupport': True}}}
>         config.update({'plugins': {'jedi_completion': {'include_params': 
> True}}})
>         completions = pyls_jedi_completions(config, doc, completion_position)
>         out = 'logical_and(${1:x1}, ${2:x2})$0'
> >       assert completions[0]['insertText'] == out
> E       AssertionError: assert 'logical_and' == 'logical_and(...}, ${2:x2})$0'
> E         - logical_and(${1:x1}, ${2:x2})$0
> E         + logical_and
> 
> test/plugins/test_completion.py:227: AssertionError
> ---------------------------- Captured stderr setup 
> -----------------------------
> 2021-12-20 18:56:24,454 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7fe1a73c5a80>
> 
> 2021-12-20 18:56:24,454 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:56:24,454 UTC - INFO - pyls.config.config - Disabled plugins: []
> 2021-12-20 18:56:24,457 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7fe1a73b0820>
> 
> 2021-12-20 18:56:24,457 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:56:24,457 UTC - INFO - pyls.config.config - Disabled plugins: []
> ------------------------------ Captured log setup 
> ------------------------------
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7fe1a73c5a80>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7fe1a73b0820>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> ----------------------------- Captured stderr call 
> -----------------------------
> 2021-12-20 18:56:24,458 UTC - INFO - pyls.config.config - Updated settings to 
> {'plugins': {'jedi_completion': {'include_params': True}}}
> 2021-12-20 18:56:24,458 UTC - INFO - pyls.config.config - Disabled plugins: []
> 2021-12-20 18:56:24,458 UTC - DEBUG - pyls.config.config - Got user config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:56:24,459 UTC - DEBUG - pyls.config.config - Got project config 
> from PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:56:24,459 UTC - DEBUG - pyls.config.config - With 
> configuration: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}, 'jedi_completion': {'include_params': 
> True}}}
> 2021-12-20 18:56:24,459 UTC - DEBUG - pyls.config.config - Got user config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:56:24,459 UTC - DEBUG - pyls.config.config - Got project config 
> from PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:56:24,459 UTC - DEBUG - pyls.config.config - With 
> configuration: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:56:24,460 UTC - DEBUG - parso.python.diff - diff parser start
> 2021-12-20 18:56:24,460 UTC - DEBUG - parso.python.diff - line_lengths old: 
> 2; new: 2
> 2021-12-20 18:56:24,460 UTC - DEBUG - parso.python.diff - -> code[replace] 
> old[1:2] new[1:2]
> 2021-12-20 18:56:24,461 UTC - DEBUG - parso.python.diff - parse_part from 1 
> to 2 (to 1 in part parser)
> 2021-12-20 18:56:24,461 UTC - DEBUG - parso.python.diff - diff parser end
> ------------------------------ Captured log call 
> -------------------------------
> INFO     pyls.config.config:config.py:148 Updated settings to {'plugins': 
> {'jedi_completion': {'include_params': True}}}
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> DEBUG    pyls.config.config:config.py:121 Got user config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:130 Got project config from 
> PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> DEBUG    pyls.config.config:config.py:133 With configuration: {'plugins': 
> {'pycodestyle': {'exclude': ['test/plugins/.ropeproject', 
> 'test/.ropeproject'], 'ignore': ['E226', 'E722', 'W504'], 'maxLineLength': 
> 120}, 'jedi_completion': {'include_params': True}}}
> DEBUG    pyls.config.config:config.py:121 Got user config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:130 Got project config from 
> PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> DEBUG    pyls.config.config:config.py:133 With configuration: {'plugins': 
> {'pycodestyle': {'exclude': ['test/plugins/.ropeproject', 
> 'test/.ropeproject'], 'ignore': ['E226', 'E722', 'W504'], 'maxLineLength': 
> 120}}}
> DEBUG    parso.python.diff:diff.py:282 diff parser start
> DEBUG    parso.python.diff:diff.py:293 line_lengths old: 2; new: 2
> DEBUG    parso.python.diff:diff.py:296 -> code[replace] old[1:2] new[1:2]
> DEBUG    parso.python.diff:diff.py:421 parse_part from 1 to 2 (to 1 in part 
> parser)
> DEBUG    parso.python.diff:diff.py:339 diff parser end
> _______________________________ test_numpy_hover 
> _______________________________
> 
> workspace = <pyls.workspace.Workspace object at 0x7fe1a39db8e0>
> 
>     def test_numpy_hover(workspace):
>         # Over the blank line
>         no_hov_position = {'line': 1, 'character': 0}
>         # Over 'numpy' in import numpy as np
>         numpy_hov_position_1 = {'line': 2, 'character': 8}
>         # Over 'np' in import numpy as np
>         numpy_hov_position_2 = {'line': 2, 'character': 17}
>         # Over 'np' in np.sin
>         numpy_hov_position_3 = {'line': 3, 'character': 1}
>         # Over 'sin' in np.sin
>         numpy_sin_hov_position = {'line': 3, 'character': 4}
>     
>         doc = Document(DOC_URI, workspace, NUMPY_DOC)
>     
>         contents = ''
>         assert contents in pyls_hover(doc, no_hov_position)['contents']
>     
>         contents = 'NumPy\n=====\n\nProvides\n'
>         assert contents in pyls_hover(doc, 
> numpy_hov_position_1)['contents'][0]
>     
>         contents = 'NumPy\n=====\n\nProvides\n'
>         assert contents in pyls_hover(doc, 
> numpy_hov_position_2)['contents'][0]
>     
>         contents = 'NumPy\n=====\n\nProvides\n'
>         assert contents in pyls_hover(doc, 
> numpy_hov_position_3)['contents'][0]
>     
>         contents = 'Trigonometric sine, element-wise.\n\n'
> >       assert contents in pyls_hover(
>             doc, numpy_sin_hov_position)['contents'][0]
> E       IndexError: string index out of range
> 
> test/plugins/test_hover.py:50: IndexError
> ---------------------------- Captured stderr setup 
> -----------------------------
> 2021-12-20 18:56:25,856 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7fe1a39d87c0>
> 
> 2021-12-20 18:56:25,856 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:56:25,856 UTC - INFO - pyls.config.config - Disabled plugins: []
> ------------------------------ Captured log setup 
> ------------------------------
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7fe1a39d87c0>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> ----------------------------- Captured stderr call 
> -----------------------------
> 2021-12-20 18:56:25,857 UTC - DEBUG - pyls.config.config - Got user config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:56:25,857 UTC - DEBUG - pyls.config.config - Got project config 
> from PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:56:25,857 UTC - DEBUG - pyls.config.config - With 
> configuration: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> ------------------------------ Captured log call 
> -------------------------------
> DEBUG    pyls.config.config:config.py:121 Got user config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:130 Got project config from 
> PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> DEBUG    pyls.config.config:config.py:133 With configuration: {'plugins': 
> {'pycodestyle': {'exclude': ['test/plugins/.ropeproject', 
> 'test/.ropeproject'], 'ignore': ['E226', 'E722', 'W504'], 'maxLineLength': 
> 120}}}
> __________________________ test_syntax_error_pyflakes 
> __________________________
> 
> workspace = <pyls.workspace.Workspace object at 0x7fe19d51dba0>
> 
>     def test_syntax_error_pyflakes(workspace):
>         doc = Document(DOC_URI, workspace, DOC_SYNTAX_ERR)
>         diag = pyflakes_lint.pyls_lint(doc)[0]
>     
> >       assert diag['message'] == 'invalid syntax'
> E       assert "expected ':'" == 'invalid syntax'
> E         - invalid syntax
> E         + expected ':'
> 
> test/plugins/test_pyflakes_lint.py:43: AssertionError
> ---------------------------- Captured stderr setup 
> -----------------------------
> 2021-12-20 18:56:26,024 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7fe19d51cfa0>
> 
> 2021-12-20 18:56:26,024 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:56:26,024 UTC - INFO - pyls.config.config - Disabled plugins: []
> ------------------------------ Captured log setup 
> ------------------------------
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7fe19d51cfa0>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> _________________________ test_syntax_error_pylint_py3 
> _________________________
> 
> config = <pyls.config.config.Config object at 0x7fe19d55a5c0>
> workspace = <pyls.workspace.Workspace object at 0x7fe19d42ea40>
> 
>     @py3_only
>     def test_syntax_error_pylint_py3(config, workspace):
>         with temp_document(DOC_SYNTAX_ERR, workspace) as doc:
>             diag = pylint_lint.pyls_lint(config, doc, True)[0]
>     
> >           assert diag['message'].startswith('[syntax-error] invalid syntax')
> E           assert False
> E            +  where False = <built-in method startswith of str object at 
> 0x7fe19d428870>('[syntax-error] invalid syntax')
> E            +    where <built-in method startswith of str object at 
> 0x7fe19d428870> = "[syntax-error] expected ':' (<unknown>, line 1)".startswith
> 
> test/plugins/test_pylint_lint.py:73: AssertionError
> ---------------------------- Captured stderr setup 
> -----------------------------
> 2021-12-20 18:56:26,790 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7fe19d42f3a0>
> 
> 2021-12-20 18:56:26,790 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:56:26,791 UTC - INFO - pyls.config.config - Disabled plugins: []
> 2021-12-20 18:56:26,793 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7fe19d55a5c0>
> 
> 2021-12-20 18:56:26,794 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:56:26,794 UTC - INFO - pyls.config.config - Disabled plugins: []
> ------------------------------ Captured log setup 
> ------------------------------
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7fe19d42f3a0>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7fe19d55a5c0>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> ----------------------------- Captured stderr call 
> -----------------------------
> 2021-12-20 18:56:26,795 UTC - DEBUG - pyls.config.config - Got user config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:56:26,795 UTC - DEBUG - pyls.config.config - Got project config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:56:26,795 UTC - DEBUG - pyls.config.config - With 
> configuration: {}
> 2021-12-20 18:56:26,795 UTC - DEBUG - pyls.plugins.pylint_lint - Got pylint 
> settings: {}
> 2021-12-20 18:56:26,795 UTC - DEBUG - pyls.plugins.pylint_lint - Calling 
> pylint with '/tmp/tmp4wvnovfw -f json '
> ------------------------------ Captured log call 
> -------------------------------
> DEBUG    pyls.config.config:config.py:121 Got user config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:130 Got project config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:133 With configuration: {}
> DEBUG    pyls.plugins.pylint_lint:pylint_lint.py:171 Got pylint settings: {}
> DEBUG    pyls.plugins.pylint_lint:pylint_lint.py:69 Calling pylint with 
> '/tmp/tmp4wvnovfw -f json '
> =============================== warnings summary 
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/yapf/__init__.py:35
>   /usr/lib/python3/dist-packages/yapf/__init__.py:35: 
> PendingDeprecationWarning: lib2to3 package is deprecated and may not be able 
> to parse Python 3.10+
>     from lib2to3.pgen2 import tokenize
> 
> .pybuild/cpython3_3.10/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.10/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.10/build/test/plugins/test_rope_rename.py::test_rope_rename
>   /usr/lib/python3/dist-packages/rope/base/project.py:222: 
> DeprecationWarning: Delete once deprecated functions are gone
>     self._init_source_folders()
> 
> .pybuild/cpython3_3.10/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.10/build/test/plugins/test_rope_rename.py::test_rope_rename
>   /usr/lib/python3/dist-packages/rope/base/libutils.py:36: 
> DeprecationWarning: relative is deprecated
>     return relative(project.address, path)
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> - generated xml file: 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/pytest.xml -
> 2021-12-20 18:56:32,632 UTC - DEBUG - pyvirtualdisplay.abstractdisplay - 
> unset $DISPLAY
> 2021-12-20 18:56:32,636 UTC - DEBUG - pyvirtualdisplay.abstractdisplay - 
> stdout=b''
> 2021-12-20 18:56:32,636 UTC - DEBUG - pyvirtualdisplay.abstractdisplay - 
> stderr=b''
> 
> ---------- coverage: platform linux, python 3.10.1-final-0 -----------
> Name                                    Stmts   Miss  Cover
> -----------------------------------------------------------
> pyls/__init__.py                           13      2    85%
> pyls/__main__.py                           60     47    22%
> pyls/_utils.py                            125     24    81%
> pyls/_version.py                            4      0   100%
> pyls/config/__init__.py                     0      0   100%
> pyls/config/config.py                     100     21    79%
> pyls/config/flake8_conf.py                 21      9    57%
> pyls/config/pycodestyle_conf.py            15      0   100%
> pyls/config/source.py                      54      6    89%
> pyls/hookspecs.py                          69     22    68%
> pyls/lsp.py                                67      0   100%
> pyls/plugins/__init__.py                    0      0   100%
> pyls/plugins/autopep8_format.py            34      0   100%
> pyls/plugins/definition.py                 11      0   100%
> pyls/plugins/flake8_lint.py                74     16    78%
> pyls/plugins/folding.py                   152      3    98%
> pyls/plugins/highlight.py                  12      0   100%
> pyls/plugins/hover.py                      23      0   100%
> pyls/plugins/jedi_completion.py            94      7    93%
> pyls/plugins/jedi_rename.py                21      2    90%
> pyls/plugins/mccabe_lint.py                22      0   100%
> pyls/plugins/preload_imports.py            15     15     0%
> pyls/plugins/pycodestyle_lint.py           39      4    90%
> pyls/plugins/pydocstyle_lint.py            65     10    85%
> pyls/plugins/pyflakes_lint.py              25      0   100%
> pyls/plugins/pylint_lint.py               111     53    52%
> pyls/plugins/references.py                 10      0   100%
> pyls/plugins/rope_completion.py            40      8    80%
> pyls/plugins/rope_rename.py                24      1    96%
> pyls/plugins/signature.py                  33      0   100%
> pyls/plugins/symbols.py                    76     14    82%
> pyls/plugins/yapf_format.py                21      0   100%
> pyls/python_ls.py                         268     97    64%
> pyls/uris.py                               49      9    82%
> pyls/workspace.py                         190     14    93%
> test/__init__.py                           11      0   100%
> test/conftest.py                            5      0   100%
> test/fixtures.py                           47      1    98%
> test/plugins/__init__.py                    0      0   100%
> test/plugins/test_autopep8_format.py       27      0   100%
> test/plugins/test_completion.py           206     14    93%
> test/plugins/test_definitions.py           19      0   100%
> test/plugins/test_flake8_lint.py           58      0   100%
> test/plugins/test_folding.py               17      0   100%
> test/plugins/test_highlight.py             14      0   100%
> test/plugins/test_hover.py                 30      0   100%
> test/plugins/test_jedi_rename.py           34      1    97%
> test/plugins/test_mccabe_lint.py           22      0   100%
> test/plugins/test_pycodestyle_lint.py      55      0   100%
> test/plugins/test_pydocstyle_lint.py       25      0   100%
> test/plugins/test_pyflakes_lint.py         32      2    94%
> test/plugins/test_pylint_lint.py           73     23    68%
> test/plugins/test_references.py            40      0   100%
> test/plugins/test_rope_rename.py           20      0   100%
> test/plugins/test_signature.py             37      0   100%
> test/plugins/test_symbols.py               46      6    87%
> test/plugins/test_yapf_format.py           26      0   100%
> test/test_document.py                      42      0   100%
> test/test_language_server.py               58     12    79%
> test/test_uris.py                          22      2    91%
> test/test_utils.py                         61      0   100%
> test/test_workspace.py                    166      1    99%
> -----------------------------------------------------------
> TOTAL                                    3130    446    86%
> Coverage HTML written to dir htmlcov
> 
> ===Flaky Test Report===
> 
> test_debounce passed 1 out of the required 1 times. Success!
> test_debounce_keyed_by passed 1 out of the required 1 times. Success!
> 
> ===End Flaky Test Report===
> =========================== short test summary info 
> ============================
> FAILED test/plugins/test_completion.py::test_snippet_parsing - 
> AssertionError...
> FAILED test/plugins/test_hover.py::test_numpy_hover - IndexError: string 
> inde...
> FAILED test/plugins/test_pyflakes_lint.py::test_syntax_error_pyflakes - 
> asser...
> FAILED test/plugins/test_pylint_lint.py::test_syntax_error_pylint_py3 - 
> asser...
> ============ 4 failed, 103 passed, 12 skipped, 6 warnings in 53.63s 
> ============
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; python3.10 -m pytest test
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; 
> python3.9 -m pytest test
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> plugins: flaky-3.7.0, xvfb-2.0.0, cov-3.0.0
> collected 119 items
> 
> test/test_document.py .........                                          [  
> 7%]
> test/test_language_server.py .ss.                                        [ 
> 10%]
> test/test_uris.py ...sss..ss..                                           [ 
> 21%]
> test/test_utils.py ......                                                [ 
> 26%]
> test/test_workspace.py ................                                  [ 
> 39%]
> test/plugins/test_autopep8_format.py ....                                [ 
> 42%]
> test/plugins/test_completion.py .............F....s.                     [ 
> 59%]
> test/plugins/test_definitions.py ...                                     [ 
> 62%]
> test/plugins/test_flake8_lint.py ....                                    [ 
> 65%]
> test/plugins/test_folding.py ..                                          [ 
> 67%]
> test/plugins/test_highlight.py ..                                        [ 
> 68%]
> test/plugins/test_hover.py F.                                            [ 
> 70%]
> test/plugins/test_jedi_rename.py .                                       [ 
> 71%]
> test/plugins/test_mccabe_lint.py ..                                      [ 
> 73%]
> test/plugins/test_pycodestyle_lint.py ..                                 [ 
> 74%]
> test/plugins/test_pydocstyle_lint.py ....                                [ 
> 78%]
> test/plugins/test_pyflakes_lint.py ....                                  [ 
> 81%]
> test/plugins/test_pylint_lint.py ..ss.s                                  [ 
> 86%]
> test/plugins/test_references.py ..                                       [ 
> 88%]
> test/plugins/test_rope_rename.py .                                       [ 
> 89%]
> test/plugins/test_signature.py ......                                    [ 
> 94%]
> test/plugins/test_symbols.py ..s                                         [ 
> 96%]
> test/plugins/test_yapf_format.py ....                                    
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _____________________________ test_snippet_parsing 
> _____________________________
> 
> config = <pyls.config.config.Config object at 0x7f818fda3160>
> workspace = <pyls.workspace.Workspace object at 0x7f819c8daa60>
> 
>     def test_snippet_parsing(config, workspace):
>         doc = 'import numpy as np\nnp.logical_and'
>         completion_position = {'line': 1, 'character': 14}
>         doc = Document(DOC_URI, workspace, doc)
>         config.capabilities['textDocument'] = {
>             'completion': {'completionItem': {'snippetSupport': True}}}
>         config.update({'plugins': {'jedi_completion': {'include_params': 
> True}}})
>         completions = pyls_jedi_completions(config, doc, completion_position)
>         out = 'logical_and(${1:x1}, ${2:x2})$0'
> >       assert completions[0]['insertText'] == out
> E       AssertionError: assert 'logical_and' == 'logical_and(...}, ${2:x2})$0'
> E         - logical_and(${1:x1}, ${2:x2})$0
> E         + logical_and
> 
> test/plugins/test_completion.py:227: AssertionError
> ---------------------------- Captured stderr setup 
> -----------------------------
> 2021-12-20 18:57:23,518 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7f818fd43af0>
> 
> 2021-12-20 18:57:23,518 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:57:23,519 UTC - INFO - pyls.config.config - Disabled plugins: []
> 2021-12-20 18:57:23,528 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7f818fda3160>
> 
> 2021-12-20 18:57:23,528 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:57:23,528 UTC - INFO - pyls.config.config - Disabled plugins: []
> ------------------------------ Captured log setup 
> ------------------------------
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7f818fd43af0>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7f818fda3160>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> ----------------------------- Captured stderr call 
> -----------------------------
> 2021-12-20 18:57:23,529 UTC - INFO - pyls.config.config - Updated settings to 
> {'plugins': {'jedi_completion': {'include_params': True}}}
> 2021-12-20 18:57:23,529 UTC - INFO - pyls.config.config - Disabled plugins: []
> 2021-12-20 18:57:23,529 UTC - DEBUG - pyls.config.config - Got user config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:57:23,530 UTC - DEBUG - pyls.config.config - Got project config 
> from PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:57:23,530 UTC - DEBUG - pyls.config.config - With 
> configuration: {'plugins': {'jedi_completion': {'include_params': True}, 
> 'pycodestyle': {'exclude': ['test/plugins/.ropeproject', 
> 'test/.ropeproject'], 'ignore': ['E226', 'E722', 'W504'], 'maxLineLength': 
> 120}}}
> 2021-12-20 18:57:23,530 UTC - DEBUG - pyls.config.config - Got user config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:57:23,530 UTC - DEBUG - pyls.config.config - Got project config 
> from PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:57:23,530 UTC - DEBUG - pyls.config.config - With 
> configuration: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:57:23,531 UTC - DEBUG - parso.python.diff - diff parser start
> 2021-12-20 18:57:23,531 UTC - DEBUG - parso.python.diff - line_lengths old: 
> 2; new: 2
> 2021-12-20 18:57:23,531 UTC - DEBUG - parso.python.diff - -> code[replace] 
> old[1:2] new[1:2]
> 2021-12-20 18:57:23,531 UTC - DEBUG - parso.python.diff - parse_part from 1 
> to 2 (to 1 in part parser)
> 2021-12-20 18:57:23,532 UTC - DEBUG - parso.python.diff - diff parser end
> ------------------------------ Captured log call 
> -------------------------------
> INFO     pyls.config.config:config.py:148 Updated settings to {'plugins': 
> {'jedi_completion': {'include_params': True}}}
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> DEBUG    pyls.config.config:config.py:121 Got user config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:130 Got project config from 
> PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> DEBUG    pyls.config.config:config.py:133 With configuration: {'plugins': 
> {'jedi_completion': {'include_params': True}, 'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> DEBUG    pyls.config.config:config.py:121 Got user config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:130 Got project config from 
> PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> DEBUG    pyls.config.config:config.py:133 With configuration: {'plugins': 
> {'pycodestyle': {'exclude': ['test/plugins/.ropeproject', 
> 'test/.ropeproject'], 'ignore': ['E226', 'E722', 'W504'], 'maxLineLength': 
> 120}}}
> DEBUG    parso.python.diff:diff.py:282 diff parser start
> DEBUG    parso.python.diff:diff.py:293 line_lengths old: 2; new: 2
> DEBUG    parso.python.diff:diff.py:296 -> code[replace] old[1:2] new[1:2]
> DEBUG    parso.python.diff:diff.py:421 parse_part from 1 to 2 (to 1 in part 
> parser)
> DEBUG    parso.python.diff:diff.py:339 diff parser end
> _______________________________ test_numpy_hover 
> _______________________________
> 
> workspace = <pyls.workspace.Workspace object at 0x7f818fd94f40>
> 
>     def test_numpy_hover(workspace):
>         # Over the blank line
>         no_hov_position = {'line': 1, 'character': 0}
>         # Over 'numpy' in import numpy as np
>         numpy_hov_position_1 = {'line': 2, 'character': 8}
>         # Over 'np' in import numpy as np
>         numpy_hov_position_2 = {'line': 2, 'character': 17}
>         # Over 'np' in np.sin
>         numpy_hov_position_3 = {'line': 3, 'character': 1}
>         # Over 'sin' in np.sin
>         numpy_sin_hov_position = {'line': 3, 'character': 4}
>     
>         doc = Document(DOC_URI, workspace, NUMPY_DOC)
>     
>         contents = ''
>         assert contents in pyls_hover(doc, no_hov_position)['contents']
>     
>         contents = 'NumPy\n=====\n\nProvides\n'
>         assert contents in pyls_hover(doc, 
> numpy_hov_position_1)['contents'][0]
>     
>         contents = 'NumPy\n=====\n\nProvides\n'
>         assert contents in pyls_hover(doc, 
> numpy_hov_position_2)['contents'][0]
>     
>         contents = 'NumPy\n=====\n\nProvides\n'
>         assert contents in pyls_hover(doc, 
> numpy_hov_position_3)['contents'][0]
>     
>         contents = 'Trigonometric sine, element-wise.\n\n'
> >       assert contents in pyls_hover(
>             doc, numpy_sin_hov_position)['contents'][0]
> E       IndexError: string index out of range
> 
> test/plugins/test_hover.py:50: IndexError
> ---------------------------- Captured stderr setup 
> -----------------------------
> 2021-12-20 18:57:25,020 UTC - DEBUG - pyls.config.config -   pyls_settings 
> [hook]
>       config: <pyls.config.config.Config object at 0x7f818fd94fa0>
> 
> 2021-12-20 18:57:25,020 UTC - DEBUG - pyls.config.config -   finish 
> pyls_settings --> [] [hook]
> 
> 2021-12-20 18:57:25,020 UTC - INFO - pyls.config.config - Disabled plugins: []
> ------------------------------ Captured log setup 
> ------------------------------
> 2021-12-20 18:57:32,042 UTC - DEBUG - pyvirtualdisplay.abstractdisplay - 
> unset $DISPLAY
> 2021-12-20 18:57:32,047 UTC - DEBUG - pyvirtualdisplay.abstractdisplay - 
> stdout=b''
> 2021-12-20 18:57:32,047 UTC - DEBUG - pyvirtualdisplay.abstractdisplay - 
> stderr=b''
> DEBUG    pyls.config.config:_tracing.py:34   pyls_settings [hook]
>       config: <pyls.config.config.Config object at 0x7f818fd94fa0>
> 
> DEBUG    pyls.config.config:_tracing.py:34   finish pyls_settings --> [] 
> [hook]
> 
> INFO     pyls.config.config:config.py:157 Disabled plugins: []
> ----------------------------- Captured stderr call 
> -----------------------------
> 2021-12-20 18:57:25,021 UTC - DEBUG - pyls.config.config - Got user config 
> from PyCodeStyleConfig: {}
> 2021-12-20 18:57:25,022 UTC - DEBUG - pyls.config.config - Got project config 
> from PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> 2021-12-20 18:57:25,022 UTC - DEBUG - pyls.config.config - With 
> configuration: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> ------------------------------ Captured log call 
> -------------------------------
> DEBUG    pyls.config.config:config.py:121 Got user config from 
> PyCodeStyleConfig: {}
> DEBUG    pyls.config.config:config.py:130 Got project config from 
> PyCodeStyleConfig: {'plugins': {'pycodestyle': {'exclude': 
> ['test/plugins/.ropeproject', 'test/.ropeproject'], 'ignore': ['E226', 
> 'E722', 'W504'], 'maxLineLength': 120}}}
> DEBUG    pyls.config.config:config.py:133 With configuration: {'plugins': 
> {'pycodestyle': {'exclude': ['test/plugins/.ropeproject', 
> 'test/.ropeproject'], 'ignore': ['E226', 'E722', 'W504'], 'maxLineLength': 
> 120}}}
> =============================== warnings summary 
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/yapf/__init__.py:35
>   /usr/lib/python3/dist-packages/yapf/__init__.py:35: 
> PendingDeprecationWarning: lib2to3 package is deprecated and may not be able 
> to parse Python 3.10+
>     from lib2to3.pgen2 import tokenize
> 
> .pybuild/cpython3_3.9/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.9/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.9/build/test/plugins/test_rope_rename.py::test_rope_rename
>   /usr/lib/python3/dist-packages/rope/base/project.py:222: 
> DeprecationWarning: Delete once deprecated functions are gone
>     self._init_source_folders()
> 
> .pybuild/cpython3_3.9/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.9/build/test/plugins/test_rope_rename.py::test_rope_rename
>   /usr/lib/python3/dist-packages/rope/base/libutils.py:36: 
> DeprecationWarning: relative is deprecated
>     return relative(project.address, path)
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> - generated xml file: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pytest.xml 
> -
> 
> ----------- coverage: platform linux, python 3.9.9-final-0 -----------
> Name                                    Stmts   Miss  Cover
> -----------------------------------------------------------
> pyls/__init__.py                           13      2    85%
> pyls/__main__.py                           60     47    22%
> pyls/_utils.py                            125     24    81%
> pyls/_version.py                            4      0   100%
> pyls/config/__init__.py                     0      0   100%
> pyls/config/config.py                     100     21    79%
> pyls/config/flake8_conf.py                 21      9    57%
> pyls/config/pycodestyle_conf.py            15      0   100%
> pyls/config/source.py                      54      6    89%
> pyls/hookspecs.py                          69     22    68%
> pyls/lsp.py                                67      0   100%
> pyls/plugins/__init__.py                    0      0   100%
> pyls/plugins/autopep8_format.py            34      0   100%
> pyls/plugins/definition.py                 11      0   100%
> pyls/plugins/flake8_lint.py                74     16    78%
> pyls/plugins/folding.py                   152      3    98%
> pyls/plugins/highlight.py                  12      0   100%
> pyls/plugins/hover.py                      23      0   100%
> pyls/plugins/jedi_completion.py            94      8    91%
> pyls/plugins/jedi_rename.py                21      2    90%
> pyls/plugins/mccabe_lint.py                22      0   100%
> pyls/plugins/preload_imports.py            15     15     0%
> pyls/plugins/pycodestyle_lint.py           39      4    90%
> pyls/plugins/pydocstyle_lint.py            65     10    85%
> pyls/plugins/pyflakes_lint.py              25      0   100%
> pyls/plugins/pylint_lint.py               111     53    52%
> pyls/plugins/references.py                 10      0   100%
> pyls/plugins/rope_completion.py            40      8    80%
> pyls/plugins/rope_rename.py                24      1    96%
> pyls/plugins/signature.py                  33      0   100%
> pyls/plugins/symbols.py                    76     14    82%
> pyls/plugins/yapf_format.py                21      0   100%
> pyls/python_ls.py                         268     97    64%
> pyls/uris.py                               49      9    82%
> pyls/workspace.py                         190     14    93%
> test/__init__.py                           11      0   100%
> test/conftest.py                            5      0   100%
> test/fixtures.py                           47      1    98%
> test/plugins/__init__.py                    0      0   100%
> test/plugins/test_autopep8_format.py       27      0   100%
> test/plugins/test_completion.py           206     14    93%
> test/plugins/test_definitions.py           19      0   100%
> test/plugins/test_flake8_lint.py           58      0   100%
> test/plugins/test_folding.py               17      0   100%
> test/plugins/test_highlight.py             14      0   100%
> test/plugins/test_hover.py                 30      0   100%
> test/plugins/test_jedi_rename.py           34      1    97%
> test/plugins/test_mccabe_lint.py           22      0   100%
> test/plugins/test_pycodestyle_lint.py      55      0   100%
> test/plugins/test_pydocstyle_lint.py       25      0   100%
> test/plugins/test_pyflakes_lint.py         32      0   100%
> test/plugins/test_pylint_lint.py           73     20    73%
> test/plugins/test_references.py            40      0   100%
> test/plugins/test_rope_rename.py           20      0   100%
> test/plugins/test_signature.py             37      0   100%
> test/plugins/test_symbols.py               46      6    87%
> test/plugins/test_yapf_format.py           26      0   100%
> test/test_document.py                      42      0   100%
> test/test_language_server.py               58     12    79%
> test/test_uris.py                          22      2    91%
> test/test_utils.py                         61      0   100%
> test/test_workspace.py                    166      1    99%
> -----------------------------------------------------------
> TOTAL                                    3130    442    86%
> Coverage HTML written to dir htmlcov
> 
> ===Flaky Test Report===
> 
> test_debounce passed 1 out of the required 1 times. Success!
> test_debounce_keyed_by passed 1 out of the required 1 times. Success!
> 
> ===End Flaky Test Report===
> =========================== short test summary info 
> ============================
> FAILED test/plugins/test_completion.py::test_snippet_parsing - 
> AssertionError...
> FAILED test/plugins/test_hover.py::test_numpy_hover - IndexError: string 
> inde...
> ============ 2 failed, 105 passed, 12 skipped, 6 warnings in 51.62s 
> ============
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest test
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 
> 3.9" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/python-language-server_0.36.2-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to