PowerShell / PowerShell/vscode-powershell

Exception showing on Scope variables

Open
#3,020 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Debugging Issue-Bug
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Issue Type: Bug

Begin debugging session for Pester tests.
Added misspelled expression to Watch panel
Hit F10 a few times and F11
Renamed expression
Tried to add a second one, the plus sign grayed out and not able to add anymore.

Extension version: 2020.9.0
VS Code version: Code - Insiders 1.51.0-insider (6c8c6008ef9d86e46b086a00f273b1fee5bd8c51, 2020-10-21T05:39:35.557Z)
OS version: Windows_NT x64 10.0.19041

PSEditorService_Output.txt

View of the Watch panel when this happened, after a few seconds the original expression I added and renamed goes away. Then when I click on the plus sign to try and add another one it seems to show an empty item:

image

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.88GB (14.19GB free)
Process Argv --crash-reporter-id c13a5331-9871-4944-a4d0-0f26ca06b445
Screen Reader no
VM 33%

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by debugging Pester tests in VS Code with a misspelled and renamed Watch expression, following the reported F10/F11 steps. Review PSEditorService_Output.txt and the Watch panel behavior; done means expressions remain usable and the plus button still allows another watch item without an exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.