Skip to content

"$("(")" is reporting 'the string is missing the terminator: ".' and "$(subexpression) is missing the closing ')'." #101

@AndrewGaspar

Description

@AndrewGaspar

This expression is causing two errors with syntax parsing in VS-Code:

  • 'the string is missing the terminator: ".
  • $(subexpression) is missing the closing ')'.
"$("(")"

Maybe there is some weirdness with bare ( in PowerShell string literals that I'm not aware of, but this seems wrong to me. No amount of escaping seems to resolve the issue, either. In the PowerShell prompt, pressing Enter after entering this text displays the multi-line input prompt, indicating that the shell also thinks the input is incomplete.

This repros with any size string literal, as long as there is an unbalanced OPEN parentheses inside the string.

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