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