neovim / pynvim

Python client and plugin host for Nvim
http://pynvim.readthedocs.io/en/latest/
Apache License 2.0
1.48k stars 118 forks source link

test_update_highlights fail on aarch64 #480

Open ggardet opened 3 years ago

ggardet commented 3 years ago

While running the testsuite on aarch64, I get the following error with test_update_highlights:

[   79s] =================================== FAILURES ===================================
[   79s] ____________________________ test_update_highlights ____________________________
[   79s] 
[   79s] vim = <pynvim.api.nvim.Nvim object at 0xffff8d849080>
[   79s] 
[   79s]     def test_update_highlights(vim):
[   79s]         vim.current.buffer[:] = ['a', 'b', 'c']
[   79s]         src_id = vim.new_highlight_source()
[   79s]         vim.current.buffer.update_highlights(
[   79s] >           src_id, [["Comment", 0, 0, -1], ("String", 1, 0, 1)], clear=True, async_=False
[   79s]         )
[   79s] 
[   79s] test/test_buffer.py:195: 
[   79s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[   79s] ../../BUILDROOT/python-neovim-0.4.3-39.7.aarch64/usr/lib/python3.6/site-packages/pynvim/api/buffer.py:143: in update_highlights
[   79s]     async_=async_)
[   79s] ../../BUILDROOT/python-neovim-0.4.3-39.7.aarch64/usr/lib/python3.6/site-packages/pynvim/api/nvim.py:577: in __call__
[   79s]     return self._nvim.exec_lua(code, *args, **kwargs)
[   79s] ../../BUILDROOT/python-neovim-0.4.3-39.7.aarch64/usr/lib/python3.6/site-packages/pynvim/api/nvim.py:320: in exec_lua
[   79s]     return self.request('nvim_execute_lua', code, args, **kwargs)
[   79s] ../../BUILDROOT/python-neovim-0.4.3-39.7.aarch64/usr/lib/python3.6/site-packages/pynvim/api/nvim.py:182: in request
[   79s]     res = self._session.request(name, *args, **kwargs)
[   79s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[   79s] 
[   79s] self = <pynvim.msgpack_rpc.session.Session object at 0xffff8d842c18>
[   79s] method = 'nvim_execute_lua'
[   79s] args = ('return _pynvim_1.update_highlights(...)', [ExtType(code=0, data=b'\x01'), 1, [['Comment', 0, 0, -1], ['String', 1, 0, 1]], 0, -1])
[   79s] kwargs = {}, async_ = False
[   79s] v = [[0, 'Error executing lua: [string "<nvim>"]:1: attempt to index a nil value (global \'_pynvim_1\')'], None]
[   79s] err = [0, 'Error executing lua: [string "<nvim>"]:1: attempt to index a nil value (global \'_pynvim_1\')']
[   79s] rv = None
[   79s] 
[   79s]     def request(self, method, *args, **kwargs):
[   79s]         """Send a msgpack-rpc request and block until as response is received.
[   79s]     
[   79s]         If the event loop is running, this method must have been called by a
[   79s]         request or notification handler running on a greenlet. In that case,
[   79s]         send the quest and yield to the parent greenlet until a response is
[   79s]         available.
[   79s]     
[   79s]         When the event loop is not running, it will perform a blocking request
[   79s]         like this:
[   79s]         - Send the request
[   79s]         - Run the loop until the response is available
[   79s]         - Put requests/notifications received while waiting into a queue
[   79s]     
[   79s]         If the `async_` flag is present and True, a asynchronous notification
[   79s]         is sent instead. This will never block, and the return value or error
[   79s]         is ignored.
[   79s]         """
[   79s]         async_ = check_async(kwargs.pop('async_', None), kwargs, False)
[   79s]         if async_:
[   79s]             self._async_session.notify(method, args)
[   79s]             return
[   79s]     
[   79s]         if kwargs:
[   79s]             raise ValueError("request got unsupported keyword argument(s): {}"
[   79s]                              .format(', '.join(kwargs.keys())))
[   79s]     
[   79s]         if self._is_running:
[   79s]             v = self._yielding_request(method, args)
[   79s]         else:
[   79s]             v = self._blocking_request(method, args)
[   79s]         if not v:
[   79s]             # EOF
[   79s]             raise OSError('EOF')
[   79s]         err, rv = v
[   79s]         if err:
[   79s]             info("'Received error: %s", err)
[   79s] >           raise self.error_wrapper(err)
[   79s] E           pynvim.api.common.NvimError: Error executing lua: [string "<nvim>"]:1: attempt to index a nil value (global '_pynvim_1')
[   79s] 
[   79s] ../../BUILDROOT/python-neovim-0.4.3-39.7.aarch64/usr/lib/python3.6/site-packages/pynvim/msgpack_rpc/session.py:102: NvimError
[   79s] =============================== warnings summary ===============================
[   79s] ../../BUILDROOT/python-neovim-0.4.3-39.7.aarch64/usr/lib/python3.6/site-packages/pynvim/compat.py:5
[   79s]   /home/abuild/rpmbuild/BUILDROOT/python-neovim-0.4.3-39.7.aarch64/usr/lib/python3.6/site-packages/pynvim/compat.py:5: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
[   79s]     from imp import find_module as original_find_module
[   79s] 
[   79s] ../../../../../usr/lib/python3.6/site-packages/_pytest/config/__init__.py:1233
[   79s]   /usr/lib/python3.6/site-packages/_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: timeout
[   79s]   
[   79s]     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
[   79s] 
[   79s] -- Docs: https://docs.pytest.org/en/stable/warnings.html
[   79s] =========================== short test summary info ============================
[   79s] FAILED test/test_buffer.py::test_update_highlights - pynvim.api.common.NvimEr...
[   79s] =================== 1 failed, 68 passed, 2 warnings in 8.28s ===================