Skip to content

Untitled-1 file opened with PowerShell type causes Powershell Integrated Console to crash #1649

Closed
PowerShell/PowerShellEditorServices
#815
@viloun

Description

@viloun

System Details

System Details Output


### VSCode version: 1.29.1 bc24f98b5f70467bc689abf41cc5550ca637088e x64
### VSCode extensions:
Angular.ng-template@0.1.11
christian-kohler.path-intellisense@1.4.2
donjayamanne.githistory@0.4.4
donjayamanne.python@0.7.0
EditorConfig.EditorConfig@0.12.5
eg2.tslint@1.0.40
eg2.vscode-npm-script@0.3.5
esbenp.prettier-vscode@1.7.2
fabianlauer.vs-code-xml-format@0.1.5
jmrog.vscode-nuget-package-manager@1.1.6
johnpapa.angular-essentials@0.4.0
johnpapa.Angular2@7.0.1
johnpapa.winteriscoming@0.8.8
ms-mssql.mssql@1.4.0
ms-vscode.cpptools@0.20.1
ms-vscode.csharp@1.17.1
ms-vscode.PowerShell@1.10.1
ms-vsts.team@1.144.1
msjsdiag.debugger-for-chrome@4.11.1
natewallace.angular2-inline@0.0.17
PeterJausovec.vscode-docker@0.4.0
PKief.material-icon-theme@3.6.1
rbbit.typescript-hero@3.0.0


### PSES version: 1.10.1.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.14393.693
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.693
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


Issue Description

When creating a temp file, and changing the syntax highlighting to Powershell, the Powershell Integrated Console crashes and never returns. I have to delete the Untitled-1 temp file from my vscode workspace and restart vscode.

Expected Behaviour

The Powershell Integrated Console should not crash. It does not matter if the Untitled-1 is valid or an invalid Powershell command.

Actual Behaviour

Powershell Integrated Console crashes and it does not reload automatically.

Attached Logs

Follow the instructions in the [troubleshooting docs](https://github.com/PowerShell/vscode-powershell/blob/master/docs/troubleshooting.md#logs
1544570084-07e1b270-cb07-403f-a3b4-63d71abe978e1544570070070.zip
)
about capturing and sending logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions