You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using lsp-jedi in Emacs. I notice that when the cursor is placed at the end of a Python file (which is usually a blank line), the LSP server keeps printing errors like below
Failed to handle request 1761 textDocument/documentHighlight Object(textDocument=Object(uri='file:///Users/user/git/pastebin/test.py'), position=Object(line=3, character=0))
Traceback (most recent call last):
File "/Users/user/.local/pipx/venvs/jedi-language-server/lib/python3.9/site-packages/pygls/protocol.py", line 324, in _handle_request
self._execute_request(msg_id, handler, params)
File "/Users/user/.local/pipx/venvs/jedi-language-server/lib/python3.9/site-packages/pygls/protocol.py", line 249, in _execute_request
self._send_response(msg_id, handler(params))
File "/Users/user/.local/pipx/venvs/jedi-language-server/lib/python3.9/site-packages/jedi_language_server/server.py", line 269, in highlight
names = jedi_script.get_references(**jedi_lines, scope="file")
File "/Users/user/.local/pipx/venvs/jedi-language-server/lib/python3.9/site-packages/jedi/api/helpers.py", line 485, in wrapper
raise ValueError('`column` parameter (%d) is not in a valid range '
ValueError: `column` parameter (-1) is not in a valid range (0-0) for line 4 ('').
Is this a server side issue? Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I'm using lsp-jedi in Emacs. I notice that when the cursor is placed at the end of a Python file (which is usually a blank line), the LSP server keeps printing errors like below
Is this a server side issue? Thanks.
The text was updated successfully, but these errors were encountered: