runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
317 stars 36 forks source link

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

Open ouweiya opened 1 year ago

ouweiya commented 1 year ago

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
rictic commented 1 year ago

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