latex-lsp / texlab

An implementation of the Language Server Protocol for LaTeX
GNU General Public License v3.0
1.56k stars 52 forks source link

Setting the language mode of an unsaved file to latex cause texlab crash #1242

Closed Shilionz closed 1 month ago

Shilionz commented 1 month ago

Repeating steps:

  1. Use vscode command "File: new untitled text file" or use keyboard shortcut Ctrl+n to create a new unsaved file.
  2. Set the language mode to "LaTex (latex)".

And the texlab server would crash while giving following notifications

  1. Request textDocument/documentSymbol failed.
  2. Client texlab: connection to server is erroring. Cannot call write after a stream was destroyed
  3. The texlab server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Could you please check this? Thank you for your hard work on this project.