Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: column parameter (-1) is not in a valid range #74

Closed
Yevgnen opened this issue Feb 19, 2021 · 1 comment
Closed

ValueError: column parameter (-1) is not in a valid range #74

Yevgnen opened this issue Feb 19, 2021 · 1 comment

Comments

@Yevgnen
Copy link

Yevgnen commented Feb 19, 2021

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

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 ('').

Screen Shot 2021-02-19 at 11 02 34 AM

Is this a server side issue? Thanks.

@pappasam
Copy link
Owner

Yep, this is a server side issue! Thanks for pointing out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants