reported error when handling multi-byte characters
Closed this issue · 2 comments
FelipeLema commented
Hey, there
First of all, thank y'all for a great work: code, answering questions, addressing issues
now, about the issue itself
In neovim, when inputting «id»
(by typing CTRL-k
, <<
, id
, CTRL-k
, >>
) I get the following reported error:
ValueError: `column` parameter (63) is not in a valid range (0-61) for line 128 (' id_: uuid.UUID # TODO felo can this be mapped to «id»\\n').
I think somewhere around the code bytes and chars are used interchangeably with a multi-byte char (and it shouldn't)
here's the traceback, I tried to clean it by escaping \n
and such
File "/Users/felipe/.local/share/nvim/lsp_servers/jedi_language_server/venv/lib/pypy3.9/site-packages/pygls/protocol.py", line 332, in _handle_request
self._execute_request(msg_id, handler, params)
File "/Users/felipe/.local/share/nvim/lsp_servers/jedi_language_server/venv/lib/pypy3.9/site-packages/pygls/protocol.py", line 261, in _execute_request
method_name, method_type, msg_id, handler(params))
File "/Users/felipe/dev/pypy-c-jit-105878-d4b7ddecdfcd-macosx_arm64/lib/pypy3.9/_functools.py", line 81, in __call__
return self._func(*(self._args + fargs), **fkeywords)
File "/Users/felipe/.local/share/nvim/lsp_servers/jedi_language_server/venv/lib/pypy3.9/site-packages/jedi_language_server/server.py", line 258, in signature_help
signatures_jedi = jedi_script.get_signatures(*jedi_lines)
File "/Users/felipe/.local/share/nvim/lsp_servers/jedi_language_server/venv/lib/pypy3.9/site-packages/jedi/api/helpers.py", line 484, in wrapper
raise ValueError('`column` parameter (%d) is not in a valid range '
'
pappasam commented
Hmm, I'm having trouble reproducing on my system. Can you please share a more detailed code snippet?
FelipeLema commented
I'm unable to reproduce right now. Will open a new ticket if I get it again.
sorry about this