Skip to content

OSX/PowershellCore/VSCode extension - any use of functions in a script crashes session #1164

@jski

Description

@jski

System Details

  • Operating system name and version: OSX 10.13.1 High Sierra
  • VS Code version: 1.19.2
  • PowerShell extension version: 1.5.1
1.19.2
490ef761b76b3f3b3832eff7a588aac891e5fe80
x64

Major  Minor  Build  Revision
-----  -----  -----  --------
1      5      1      0

code --list-extensions --show-versions
ms-vscode.PowerShell@1.5.1

Name                           Value
----                           -----
PSVersion                      6.0.0
PSEdition                      Core
GitCommitId                    v6.0.0
OS                             Darwin 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Description

Any time a function is used in a powershell script that loads into the editor window, the powershell session crashes. This happened in realtime while incorporating images for this example:

  1. Write a basic script to write a string. Works fine.
  2. Edit that script to feed a string to a function to write on screen. This crashes immediately after adding in the function call. It happens before saving the file, immediately after typing the { curly brace to note the start of the function script block.

Attached Logs

Verbose debug logs from sessions which crash.

no_function
vscode-powershell-verbose-logs.zip
with_function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions