Skip to content

Unable to debug scripts in folder with ampersand in title #1400

Closed
@DanrwAU

Description

@DanrwAU

Issue Description

I am experiencing a problem with running debug on script residing in a folder path containing an ampersand.

When running these i get the following error:
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.

This works fine in ISE.

Unfortunately as this is a hardcoded onedrive path i can't easily modify this.

Attached Logs

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17134
VSCode 1.24.1
PowerShell Extension Version 1.7.0

PowerShell Information

Name Value
PSVersion 5.1.17134.112
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17134.112
BuildVersion 10.0.17134.112
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
cisco jamiewoodio 1.0.1
Material-theme zhuangtongfa 2.15.0
one-monokai azemoh 0.3.4
PowerShell ms-vscode 1.7.0
slack-theme felipe-mendes 1.6.1
team ms-vsts 1.136.0
vscode-icons robertohuertasm 7.24.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions