lit-analyzer icon indicating copy to clipboard operation
lit-analyzer copied to clipboard

TS Server Crashes When Enabling Strict Mode "strict": true

Open ouweiya opened this issue 2 years ago • 1 comments

The ts-lit-plugin and vscode-lit-plugin both crash when strict mode "strict": true is enabled. However, the CLI tool lit-analyzer works fine under the same configuration.

Dependencies: "ts-lit-plugin": "^2.0.0-pre.1", "typescript": "^5.1.3",

Plugin Configuration

{
  "compilerOptions": {
    "plugins": [
      {
        "name": "ts-lit-plugin",
        "strict": true,        
      }
    ]
  }
}

log

2023-06-21 14:25:34.997 [info] <syntax> Forking...
2023-06-21 14:25:34.997 [info] <syntax> Starting...
2023-06-21 14:25:34.997 [info] <semantic> Log file: c:\Users\jack\AppData\Roaming\Code\logs\20230621T140125\window1\exthost\vscode.typescript-language-features\tsserver-log-ZQhmjV\tsserver.log
2023-06-21 14:25:34.997 [info] <semantic> Forking...
2023-06-21 14:25:34.997 [info] <semantic> Starting...
2023-06-21 14:25:35.089 [error] TSServer exited. Code: null. Signal: SIGTERM

ouweiya avatar Jun 21 '23 06:06 ouweiya

Hm, maybe a change in how tsconfigs are processed in ts-lit-plugin? I'll investigate

rictic avatar Jun 23 '23 17:06 rictic