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 is not in a valid range #42

Closed
subsonik opened this issue Oct 16, 2020 · 2 comments
Closed

ValueError: column parameter is not in a valid range #42

subsonik opened this issue Oct 16, 2020 · 2 comments

Comments

@subsonik
Copy link

Hi!

Great work with this project, this has recently become my favourite LSP server to use while coding with Python in Neovim (latest HEAD). It's nice to have a lightweight alternative to pyls. 😀

However, I'm experiencing a fairly recurrent error that occurs when exiting insert mode. The error message returned from vim-lsc (my Neovim LSP client) is:

ValueError: column parameter (36) is not in a valid range (0-34) for line 7 ('from dataclasses import asdict, fi\n').

It doesn't happen all of the time, only when exiting insert mode after extending an already-existing line with more text, e.g. changing from dataclasses import asdict to from dataclasses import asdict, field.

This doesn't occur with pyls. I think they had the same issue, which was raise and fixed here: palantir/python-language-server#193

Any chance you could take a look at this?

Thanks.

@pappasam
Copy link
Owner

Thanks for this issue! I've implemented and released a solution based on the pyls PR from the long-long ago. If you have time, would you try the latest release and close this issue if your problem is resolved?

@subsonik
Copy link
Author

Works like a charm! Thanks for the speedy response and your great work on this project. 😁

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