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
{{ message }}
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
Negative position value in textDocument/hover request #381
How to reproduce
Detailed step to reproduce this issue.
Open a .tex file (and possibly confirm that the texlab language server is connected to buffer)
Type something that triggers completion, for example \begin{
The language server crashes
Expected behavior
A clear and concise description of what you expected to happen.
The language server should not crash.
Okay, I've had quite some struggles with this. At first, I thought this was a bug in texlab because only that language server crashed emmediately after the completion pop up comes. I opened an issue on its repository: latex-lsp/texlab#450. Turns out the language servers receives the following request:
In this, params..textDocument.position.character has a value of -2. This should not be the case (character can not be negative). While going through my configs, it turned out to be that completeopt without noselect causes this! The -2 value is set somewhere around here:
So, TL;DR, language server quits after receiving bad value for position due to completeopt being 'menuone,noinsert'. It works as expected when noselect is added to compleopt.
I'm on the latest nvim (well, updated 5 hours ago) and latest completion-nvim.
Let me know if I could provide more information, happy to help!
Activity