Skip to content

[Issue] VSCode build task fails on Windows due to PowerShell parser error (&& chaining) #26

@sjoerdev

Description

@sjoerdev

i have vscode on windows, i have the cpp and cmake extensions installed. when i press f5 to run i get this error:

 *  Executing task: cmake -S 'C:\Users\sdev\Desktop\CoreDeck' -B 'C:\Users\sdev\Desktop\CoreDeck/build-debug' -DCMAKE_BUILD_TYPE=Debug -DCOREDECK_BUILD_TESTS=ON -DCOREDECK_SENTRY_DSN="https://bbb4503be53864c512a1bf57e63ffc50@o4511291657486336.ingest.de.sentry.io/4511291660697680" && cmake --build 'C:\Users\sdev\Desktop\CoreDeck/build-debug' --parallel --target CoreDeck 

ParserError: 
Line |
   1 |  function prompt { $(Get-Location):  } -Command cmake -S 'C:\Users\sde …
     |                                   ~
     | Unexpected token ':' in expression or statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dev-environmentLocal editor setups, VS Code configs (tasks/launch JSONs), and developer workflow

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions