Request textDocument/hover fails when top-level env key is incomplete
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- github-actions, typescript, vscode, yaml
研究方向
首先,使用 workflow 範例在 VS Code 中重現 textDocument/hover 請求,重點關注頂層 env 的情況及其 NullToken 錯誤。追蹤 extension 中的 hover 處理;當滑鼠停留在 run 步驟上時,即使頂層 env 鍵不完整也不再失敗,同時其他範例繼續正常運作,就表示完成。
由索引模型根據 Issue 內容生成。
描述
Type: Bug
Making a workflow file like this:
name: Sample 1
on:
- push
env:
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "Hello, ${{ env.TEST }}"
Causes the following error when hovering over the - run: line:
[Error - 4:08:42 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Unexpected type 'NullToken' encountered while reading 'workflow env'. The type 'MappingToken' was expected.
Code: -32603
In contrast, none of these workflows cause the error:
name: Sample 1
on:
- push
jobs:
test:
runs-on: ubuntu-latest
env:
steps:
- run: echo "Hello, ${{ env.TEST }}"
name: Sample 1
on:
- push
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "Hello, ${{ env.TEST }}"
env:
Extension version: 0.27.1
VS Code version: Code 1.100.2 (848b80aeb52026648a8ff9f7c45a9b0a80641e2e, 2025-05-14T21:47:40.416Z)
OS version: Darwin arm64 24.4.0
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M4 Max (14 x 2400) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 3, 4, 4 |
| Memory (System) | 36.00GB (2.98GB free) |
| Process Argv | --crash-reporter-id 1eb59a8f-a777-446b-b97e-fe7c3d092446 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249601
vscod805cf:30301675
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31309971
pythonpulldiagcf:31298646
996jf627:31283433
pythonrdcb7:31303018
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
pylancecolorcf:31309109
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004
- 主要語言
- TypeScript
- 星號
- 661
- 分支
- 214
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/vscode-github-actions 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 76/100
github/vscode-github-actions#627 · 1 個 reaction ·
-
難度 5/5 一週以上 新手友好度 20/100
github/vscode-github-actions#630 · 2 則留言 · 2 個 reaction ·
-
long work 未關閉
難度 4/5 3-5 天 新手友好度 25/100
github/vscode-github-actions#628 ·
-
bug
難度 3/5 1-2 天 新手友好度 55/100
github/vscode-github-actions#625 ·
-
bug
難度 3/5 1-2 天 新手友好度 64/100
github/vscode-github-actions#621 · 3 則留言 ·
查看 github/vscode-github-actions 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
receptron/mulmoterminal#2264 ·
-
documentation
難度 2/5 1-3 小時 新手友好度 78/100
components-web-app/docs#96 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 68/100
simonsobs/tileviewer#114 ·
-
難度 2/5 1-3 小時 新手友好度 75/100