CommandCodeAI / CommandCodeAI/command-code

Uncaught error for terminal command

未關閉
#447 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

p1
主要語言
沒有語言資料
星號
4k
分支
350
PR 合併指標
30 天內沒有已合併 PR

描述

Summary

✖ CRITICAL: Uncaught Exception!
This is an unexpected error. Please file a bug report at https://github.com/CommandCodeAI/command-code/issues/new
✖ ERROR → TypeError
ℹ REASON → Unknown signal: SIGTSTP
ℹ ERROR STACK ↓
TypeError [ERR_UNKNOWN_SIGNAL]: Unknown signal: SIGTSTP
at process.kill (node:internal/process/per_thread:230:15)
at Timeout._onTimeout (file:///C:/Users/Username/AppData/Roaming/npm/node_modules/command-code/dist/index.mjs:295:109456)
at listOnTimeout (node:internal/timers:588:17)
at process.processTimers (node:internal/timers:523:7)

ℹ Request ID: req_cfb7bdb69e0d63b848e3763255355907
Share this ID with support to help debug your issue.

Just pasted the log here. Using 0.30.2 on Windows 11.

Expected Behavior

No crash

Actual Behavior

Crash

Steps to reproduce the issue
Command Code Version

0.30.2

Operating System

Windows

Terminal/IDE

No response

Shell

No response

Additional context

No response

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 dist/index.mjs 中第 295 行附近的 timeout 開始,檢查接收 SIGTSTP 的 process.kill 呼叫。如果可能,請在 Windows 11 上使用 command-code 0.30.2 重現,然後驗證終端機命令在遇到此訊號時不再當機。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
node.js
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
需要釐清
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。