sublimelsp / LSP-volar

Vue support for Sublime's LSP plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error rewriting command lsp_recheck_sessions. Encountered infinite loop

Shuzhenzhou opened this issue · comments

Error rewriting command lsp_recheck_sessions. Encountered infinite loop

LSP: LSP-volar crashed (1 / 5 times in the last 180.0 seconds), exit code 1, exception: None
LSP: LSP-volar crashed (2 / 5 times in the last 180.0 seconds), exit code 1, exception: None
LSP: LSP-volar crashed (3 / 5 times in the last 180.0 seconds), exit code 1, exception: None
LSP: LSP-volar crashed (4 / 5 times in the last 180.0 seconds), exit code 1, exception: None
LSP: LSP-volar crashed (5 / 5 times in the last 180.0 seconds), exit code 1, exception: None

lsp_recheck_sessions. Encountered infinite loop is not an issue and is unrelated to the crash.

As for the crash, check the output after running LSP: Toggle Log Panel command

ok , thank; but logs print SyntaxError: Unexpected token '??=' what should I do

Do I need to change it one by one?

It looks like your global version of node is 14.21.3.

there are two options I can suggest:
a) You could install a newer version of node, for example 16. This option affects your system.

b)From the command palette select: Preference: LSP Utils Settings and set the following in lsp_utils.sublime-settings:

{
    "nodejs_runtime": ["local"],
}

That will download a local Node 16.15.0(it will not mess with your global node version) and will be used by LSP-* based plugins. It is stored in the sublime caches folder. On Window that path should be %LocalAppData%/Sublime Text.

thanks