Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vcpkg] Build failure when the path contains multiple spaces #15619

Closed
JackBoosY opened this issue Jan 13, 2021 · 1 comment
Closed

[vcpkg] Build failure when the path contains multiple spaces #15619

JackBoosY opened this issue Jan 13, 2021 · 1 comment
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@JackBoosY
Copy link
Contributor

JackBoosY commented Jan 13, 2021

Describe the bug
Build fails when vcpkg is built in a path with multiple spaces.

Environment

  • OS: Windows 10
  • Compiler: Visual Studio 2017

To Reproduce
Steps to reproduce the behavior:

  1. create folder named Ne w folder(double spaces after w) in the root folder
  2. clone vcpkg
  3. .\bootstrap-vcpkg.bat

Expected behavior
Build vcpkg successful.

Failure logs

PS G:\Ne w   folder\vcpkg> .\bootstrap-vcpkg.bat

Building vcpkg.exe ...

. : The term 'G:\Ne w folder\vcpkg\scripts\cleanEnvironmentHelper.ps1' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:3
+ . "G:\Ne w folder\vcpkg\scripts\cleanEnvironmentHelper.ps1"; & "C:\Pr ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (G:\Ne w folder\...nmentHelper.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

MSBUILD : error MSB1009: Project file does not exist.
Switch: G:\Ne w folder\vcpkg\toolsrc\windows-bootstrap\vcpkg.vcxproj
G:\Ne w   folder\vcpkg\scripts\bootstrap.ps1 : Building vcpkg.exe failed. Please ensure you have installed Visual
Studio with the Desktop C++ workload and the Windows SDK for Desktop C++.
At line:1 char:4
+ & {& 'G:\Ne w   folder\vcpkg\scripts\bootstrap.ps1' }
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,bootstrap.ps1

ScriptHalted
At G:\Ne w   folder\vcpkg\scripts\bootstrap.ps1:411 char:5
+     throw
+     ~~~~~
    + CategoryInfo          : OperationStopped: (:) [], RuntimeException
    + FullyQualifiedErrorId : ScriptHalted

Additional context
Add any other context about the problem here.
N/A

@JackBoosY JackBoosY added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Jan 13, 2021
@BillyONeal
Copy link
Member

Will be fixed by #15474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

No branches or pull requests

2 participants