Skip to content

Incorrect handling of Umlaut when debugging with PowerShell Extension #1744

Closed
@MarcusLerch

Description

@MarcusLerch

Issue Type: Bug

debugging this code

$MyHashTable = [ordered]@{}
$MyHashTable.Add("Key1","Value1")
$MyHashTable.Add("KeyÄ2","ValueÄ2")
$MyHashTable

in VSCode with PowerShell Extension, incorrectly throws the following exceptions:

At C:\Untitled-1.ps1:3 char:24
+ $MyHashTable.Add("KeyÄ2","ValueÄ2")
+                        ~
Missing ')' in method call.

At C:\Untitled-1.ps1:3 char:24
+ $MyHashTable.Add("KeyÄ2","ValueÄ2")
+                        ~~~~~~~~~~~~~
Unexpected token '2","ValueÄ2"' in expression or statement.

At C:\Untitled-1.ps1:3 char:37
+ $MyHashTable.Add("KeyÄ2","ValueÄ2")
+                                     ~
Unexpected token ')' in expression or statement.

However the code runs fine in PowerShell and debugs correct in ISE.

Extension version: 1.11.0
VS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:54:13.295Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 31.92GB (23.73GB free)
Process Argv
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions