github / github/vscode-github-actions
ooo: Request textDocument/completion failed with message: Maximum call stack size exceeded: Error: Request textDocument/completion failed with message: Maximum call stack size exceeded
- 主要語言
- TypeScript
- 星號
- 660
- 分支
- 213
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Describe the bug**
Extension is running out of memory sometimes:
```
2024-07-31 13:08:28.569 [error] Request textDocument/completion failed with message: Maximum call stack size exceeded: Error: Request textDocument/completion failed with message: Maximum call stack size exceeded
at /Users/ssbarnea/.vscode/extensions/github.vscode-github-actions-0.26.3/dist/extension-node.js:2:633457
at /Users/ssbarnea/.vscode/extensions/github.vscode-github-actions-0.26.3/dist/extension-node.js:2:633751
at Timeout._onTimeout (/Users/ssbarnea/.vscode/extensions/github.vscode-github-actions-0.26.3/dist/extension-node.js:2:634113)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
2024-08-01 13:33:57.033 [error] [Extension Host] Error loading yaml file
```
**To Reproduce**
Steps to reproduce the behavior:
1. With this workflow '...'
2. Do this '...'
3. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Extension Version**
`v0.26.3`
**Additional context**
That is on a 64GB M1 max laptop, so bit unexpected. I wonder if that is caused by node running out of memory as I encountered recently another issue with it that required me to add `NODE_OPTIONS=--max-old-space-size=4096` in order to just run `yarn webpack`... :p
貢獻指南
研究方向
從 dist/extension-node.js 的堆疊追蹤中回報的 textDocument/completion 失敗和 YAML 載入錯誤開始。由於報告中的重現步驟只是預留位置,請使用實際工作流程重現問題,然後追蹤 completion 請求,直到找出呼叫堆疊或記憶體的增長。完成的條件是 completion 不再超出呼叫堆疊,且 YAML 檔案能夠成功載入。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- typescript, vscode
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100