-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Crash with invalid JSON #517
Comments
This is a GenLSP (the framework that Next LS uses for LSP protocol stuff) issue, not the vscode extension issue I have seen this a couple of times, but haven't been able to reproduce. Its unclear to me if under the hood we are not executing the protocol correctly, or if the editor is sending the wrong Content-Length header. |
The fact that it starts with a new line implies to me that an extra new line was sent or a new line was not properly consumed on the last message, so then it offset the payload by a character |
Can I somehow increase log verbosity to perhaps see massages as they get created and consumed? |
In the VScode extension you can set one of the next LS options to trace and it'll print out a lot more stuff. |
After some while of working (usually about 30 to 60 minutes) next-ls crashes and can not recover.
After some digging I found the following logs in
.elixir-tools/next-ls.log
, but not in the "Next LS" output pane of VS Code, I am therefore unsure whether this is a problem of the VScode plugin or NextLS.In fact the JSON snippet seen in the last message looks like this after clean up:
So there is a closing curly brace missing.
The text was updated successfully, but these errors were encountered: