Repository navigation
Index out of bounds #433
Copy link
Copy link
Open
Labels
Description
Currently I'm trying to debug remote php project in docker. And it runs great but every time I want to see properties and open them by pressing enter there is an error that shows up constantly:
Error detected while processing function provider#python3#Call:
line 18: Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/debugger_interface.py", line 72, in handle_return_keypress
return self.event_dispatcher.by_position(self.session_handler)
File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/event.py", line 543, in by_position
return event.run()
File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/event.py", line 151, in run
self.ui.windows.watch().delete(lineno, lineno+1)
File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/ui/vimui.py", line 465, in delete
self._buffer.delete(start_line, end_line)
File "/home/dornat/.vim/plugged/vdebug/pythonx/vdebug/ui/vimui.py", line 357, in delete
self._buffer[end_line]
File "/usr/lib/python3.8/site-packages/pynvim/api/buffer.py", line 45, in __getitem__
return self.request('nvim_buf_get_lines', i, i + 1, True)[0]
File "/usr/lib/python3.8/site-packages/pynvim/api/common.py", line 58, in request
return self._session.request(name, self, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
raise self.error_wrapper(err)
pynvim.api.common.NvimError: Index out of boundsAnd in log file there is this stuff.
- [Debug] {Sun 01 2019 23:31:08} User action in watch window, line 40
- [Debug] {Sun 01 2019 23:31:08} ** WatchWindowPropertyGetEvent
- [Debug] {Sun 01 2019 23:31:08} Command: property_get -i 41 -n "$this->*Zenith\\Library\\Http\\Dispatcher\\DispatcherAbstract*_router" -d 0
- [Debug] {Sun 01 2019 23:31:09} Response: <?xml version="1.0" encoding="iso-8859-1"?> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="41"><property name="$this->*Zenith\Library\Http\Dispatcher\ DispatcherAbstract*_router" fullname="$this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router" type="object" classname="AltoRouter" children="1" numchildren="4" page="0" pagesi ze="32"><property name="routes" fullname="$this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->routes" facet="protected" type="array" children="1" numchildren="275"></pr operty><property name="namedRoutes" fullname="$this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->namedRoutes" facet="protected" type="array" children="1" numchildren=" 275"></property><property name="basePath" fullname="$this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->basePath" facet="protected" type="string" size="0" encoding="bas e64"><![CDATA[]]></property><property name="matchTypes" fullname="$this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->matchTypes" facet="protected" type="array" childre n="1" numchildren="16"></property></property></response>
- [Info] {Sun 01 2019 23:31:09} Writing 5 properties to the window
- [Debug] {Sun 01 2019 23:31:09} Writing to window:
▾ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router = (AltoRouter [4])
▸ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->routes = (array [275])
▸ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->namedRoutes = (array [275])
⬦ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->basePath = (string [0]) ``
▸ $this->*Zenith\Library\Http\Dispatcher\DispatcherAbstract*_router->matchTypes = (array [16])Maybe this line that says about "writing 5 properties to the window" but an array has only 4 elements can be somehow connected to this. Just shot in the dark.
Don't know where else to look.
Reactions are currently unavailable
Activity
[-]Index out of bound[/-][+]Index out of bounds[/+]gvanbeck commentedon Jan 14, 2020
+1
BlackIkeEagle commentedon Feb 3, 2020
Thanks I'll have a look
nacknime-official commentedon Aug 15, 2020
+1
I use pydbgp.
Mte90 commentedon Aug 27, 2020
I got that today.
Mte90 commentedon Aug 27, 2020
I got also this error after this and issues on closing but I don't know if they are related
nkoporec commentedon Sep 8, 2020
Have the same issue, when opening a larger array (php), any ideas on how to resolve this? I'm having this issue while using neovim, if I switch to vim, it works normally.
BlackIkeEagle commentedon Sep 27, 2020
Someone a simple example to reproduce this, just opened a few large arrays in nvim without an issue
perotta commentedon Oct 5, 2022
Hi @Dornat did you find a solution for this? I'm having the same problem. I don't know exactly how to reproduce it niether