nvarner / typst-lsp

A brand-new language server for Typst, plus a VS Code extension
MIT License
1.13k stars 78 forks source link

LSP program hangs up indefinitely when editing source file in Helix #313

Open Kirottu opened 9 months ago

Kirottu commented 9 months ago

Issue

After launching Helix to edit a typst file, the language server seems to hang indefinitely. Trying to perform any LSP actions leads to Helix saying that the language server is not active for the buffer, even though the typst-lsp process is still running. This seems to be a recent issue, as it wasn't a problem for typst 0.7 and typst-lsp 0.9.x.

Kirottu commented 9 months ago

Apparently it is some issue related to typst packages, after commenting and uncommenting the package imports the LSP came back to life.

nvarner commented 9 months ago

Do you have an example of a file where this happens, or logs from a session where it did?