microsoft / microsoft/TypeScript

[error] TSServer exited. Code: null. Signal: SIGTERM on VSCode output - but Typescript still runs in the background

未关闭
#62,139 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Needs More Info
主要语言
Go
星标
111k
派生
14.3k
平均合并
2 天 4 小时
30 天内合并 PR
132

描述

🔎 Search Terms

[error] TSServer exited. Code: null. Signal: SIGTERM

🕗 Version & Regression Information
  • This is the behavior in every version I tried (5.8.3, 5..7.0)
⏯ Playground Link

No response

💻 Code
{
    "compilerOptions": {
        "target": "esnext",
        "module": "esnext",
        "lib": ["ES2023"],
        "sourceMap": true,
        "moduleResolution": "bundler",
        "resolveJsonModule": true,
        "isolatedModules": true,
        "skipLibCheck": true,
        "strict": true,
        "allowJs": false,
        "checkJs": false,
        "esModuleInterop": true,
        "forceConsistentCasingInFileNames": true,
        "outDir": "build",
        "rootDir": "src",
        "baseUrl": ".",
        "incremental": true,
        "removeComments": true,
        "noUnusedLocals": false,
        "noUnusedParameters": true,
        "verbatimModuleSyntax": true,
        "paths": {
            "@/*": ["src/*"]
        }
    },
    "tsc-alias": {
        "resolveFullPaths": true
    },
    "include": ["src/**/*.ts", "src/**/*.test.ts"],
    "exclude": ["node_modules", "build"]
}

🙁 Actual behavior

I am getting [error] TSServer exited. Code: null. Signal: SIGTERM
Error on my Typescript Output in VSCode
But Typescript still works in the background - if const is not fulfilling interface I will get error about it.
I will also mention VScode is extreamly slow and I suspect one of the reason is that, and that there are multiple Typescript processes in the background.

🙂 Expected behavior

For the process to just be running normally

Additional information about the issue

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从提供的 tsconfig 和 VSCode TypeScript Output 消息开始,然后在报告的 TypeScript 版本中重现 SIGTERM。确定 TypeScript 进程是否正被外部终止,以及是否有重复进程残留;确定原因并确认进程在没有报告错误的情况下正常运行,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。