sublimelsp / LSP-volar

Vue support for Sublime's LSP plugin
MIT License
84 stars 8 forks source link

Error rewriting command lsp_recheck_sessions. Encountered infinite loop #185

Closed Shuzhenzhou closed 1 year ago

Shuzhenzhou commented 1 year ago

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

rchl commented 1 year ago

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

Shuzhenzhou commented 1 year ago

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

Shuzhenzhou commented 1 year ago

image

Shuzhenzhou commented 1 year ago

Do I need to change it one by one?

predragnikolic commented 1 year ago

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.

Shuzhenzhou commented 1 year ago

thanks