WolframResearch / vscode-wolfram

Official Visual Studio Code extension for Wolfram Language
MIT License
109 stars 7 forks source link

$MaxLicenseProcesses with Infinity crashes LSPServer #14

Closed sw1sh closed 2 years ago

sw1sh commented 2 years ago

I've run the LSPServer`RunServerDiagnosticBasically, the problem boils down to this error: Developer`WriteRawJSONString::jsonstrictencoding: Expression DirectedInfinity cannot be exported as JSON.

Could not convert to JSON: <|jsonrpc -> 2.0, id -> 2, result -> <|kernelVersion -> 13.0, commandLine -> {/Applications/Wolfram Desktop 13.1.app/Contents/MacOS/WolframKernel, -noinit, -noprompt, -nopaclet, -noicon, -nostartuppaclets, -run, Needs[LSPServer`];LSPServer`StartServer[]}, directory -> /Users/swish, maxLicenseProcesses -> Infinity, lspServerVersion -> 1.7, codeParserVersion -> 1.7, codeInspectorVersion -> 1.7, codeFormatterVersion -> 1.7, lspServerBuildDate -> Wed 29 Jun 2022 18:12:08, codeParserBuildDate -> Fri 01 Jul 2022 11:50:30, codeInspectorBuildDate -> Fri 01 Jul 2022 11:58:38, codeFormatterBuildDate -> Fri 01 Jul 2022 13:03:52|>|>
bostick commented 2 years ago

Thanks! Now fixed in sources. https://github.com/WolframResearch/LSPServer/commit/d43d1202b801bf316d027f94030ef0b7753113e0