wil/Common.h - no such file #1698

Open
opened 2026-01-30 22:34:04 +00:00 by claunia · 0 comments
Owner

Originally created by @elithrar on GitHub (Jun 16, 2019).

Summary: A header file - wil/Common.h - can't be found, even after blowing away the git repo and starting over.

Environment

Microsoft Windows [Version 10.0.18917.1000]

checked out: microsoft/terminal@94bcbb9

Steps to reproduce

  1. Clone the repo
  2. Init submodules as per the README
  3. Kick off the build in PowerShell
➜  git clone https://github.com/microsoft/terminal.git
➜  git submodule update --init --recursive
Submodule 'dep/gsl' (https://github.com/microsoft/gsl) registered for path 'dep/gsl'
Submodule 'dep/wil' (https://github.com/microsoft/wil) registered for path 'dep/wil'
Cloning into '/mnt/c/Users/Gamer/repos/terminal/dep/gsl'...
Cloning into '/mnt/c/Users/Gamer/repos/terminal/dep/wil'...
Submodule path 'dep/gsl': checked out 'b74b286d5e333561b0f1ef1abd18de2606624455'
Submodule path 'dep/wil': checked out 'fbcd1d2abb558da4564ce343b688f7a658f51318'
Import-Module .\tools\OpenConsole.psm1
Set-MsBuildDevEnvironment
Invoke-OpenConsoleBuild

Expected behavior

The solution builds & outputs a binary.

Actual behavior

The header file isn't found. This applies when I attempt to build it directly via VS 2019 as well (with the C++, UWP, C++ plat tools packages auto-installed).

It's hard to debug further (I'm not a native Windows developer), but it doesn't appear to be a git-related issue - the submodule sync is done.

Previous issues related to this seem to be based on users overlooking submodules used here; which (as above) seem to be checked out.

Build FAILED.

"C:\Users\Gamer\repos\terminal\OpenConsole.sln" (default target) (1) ->
"C:\Users\Gamer\repos\terminal\src\host\exe\Host.EXE.vcxproj.metaproj" (default target) (2) ->
"C:\Users\Gamer\repos\terminal\src\buffer\out\lib\bufferout.vcxproj" (default target) (3) ->
(ClCompile target) ->
  C:\Users\Gamer\repos\terminal\src\inc\LibraryIncludes.h(48): fatal error C1083: Cannot open include file: 'wil/Common.h': No such file or d irectory [C:\Users\Gamer\repos\terminal\src\buffer\out\lib\bufferout.vcxproj]

"C:\Users\Gamer\repos\terminal\OpenConsole.sln" (default target) (1) ->
"C:\Users\Gamer\repos\terminal\src\cascadia\TerminalCore\lib\TerminalCore-lib.vcxproj.metaproj" (default target) (23) ->
"C:\Users\Gamer\repos\terminal\src\cascadia\TerminalSettings\TerminalSettings.vcxproj" (default target) (24) ->
(CppWinRTMakeComponentProjection target) ->
  C:\Users\Gamer\repos\terminal\packages\Microsoft.Windows.CppWinRT.2.0.190417.3\build\native\Microsoft.Windows.CppWinRT.targets(448,9): erro r MSB3073: The command ""C:\Users\Gamer\repos\terminal\packages\Microsoft.Windows.CppWinRT.2.0.190417.3\build\native\..\..\bin\"cppwinrt @"x6 4\Debug\cppwinrt_comp.rsp"" exited with code 9009. [C:\Users\Gamer\repos\terminal\src\cascadia\TerminalSettings\TerminalSettings.vcxproj]
    0 Warning(s)
Originally created by @elithrar on GitHub (Jun 16, 2019). Summary: A header file - `wil/Common.h` - can't be found, even after blowing away the git repo and starting over. # Environment ```none Microsoft Windows [Version 10.0.18917.1000] ``` checked out: microsoft/terminal@94bcbb9 # Steps to reproduce 1. Clone the repo 2. Init submodules as per the README 3. Kick off the build in PowerShell ``` ➜ git clone https://github.com/microsoft/terminal.git ➜ git submodule update --init --recursive Submodule 'dep/gsl' (https://github.com/microsoft/gsl) registered for path 'dep/gsl' Submodule 'dep/wil' (https://github.com/microsoft/wil) registered for path 'dep/wil' Cloning into '/mnt/c/Users/Gamer/repos/terminal/dep/gsl'... Cloning into '/mnt/c/Users/Gamer/repos/terminal/dep/wil'... Submodule path 'dep/gsl': checked out 'b74b286d5e333561b0f1ef1abd18de2606624455' Submodule path 'dep/wil': checked out 'fbcd1d2abb558da4564ce343b688f7a658f51318' ``` ```powershell Import-Module .\tools\OpenConsole.psm1 Set-MsBuildDevEnvironment Invoke-OpenConsoleBuild ``` # Expected behavior The solution builds & outputs a binary. # Actual behavior The header file isn't found. This applies when I attempt to build it directly via VS 2019 as well (with the C++, UWP, C++ plat tools packages auto-installed). It's hard to debug further (I'm not a native Windows developer), but it doesn't appear to be a git-related issue - the submodule sync is done. Previous issues related to this seem to be based on users overlooking submodules used here; which (as above) seem to be checked out. ``` Build FAILED. "C:\Users\Gamer\repos\terminal\OpenConsole.sln" (default target) (1) -> "C:\Users\Gamer\repos\terminal\src\host\exe\Host.EXE.vcxproj.metaproj" (default target) (2) -> "C:\Users\Gamer\repos\terminal\src\buffer\out\lib\bufferout.vcxproj" (default target) (3) -> (ClCompile target) -> C:\Users\Gamer\repos\terminal\src\inc\LibraryIncludes.h(48): fatal error C1083: Cannot open include file: 'wil/Common.h': No such file or d irectory [C:\Users\Gamer\repos\terminal\src\buffer\out\lib\bufferout.vcxproj] "C:\Users\Gamer\repos\terminal\OpenConsole.sln" (default target) (1) -> "C:\Users\Gamer\repos\terminal\src\cascadia\TerminalCore\lib\TerminalCore-lib.vcxproj.metaproj" (default target) (23) -> "C:\Users\Gamer\repos\terminal\src\cascadia\TerminalSettings\TerminalSettings.vcxproj" (default target) (24) -> (CppWinRTMakeComponentProjection target) -> C:\Users\Gamer\repos\terminal\packages\Microsoft.Windows.CppWinRT.2.0.190417.3\build\native\Microsoft.Windows.CppWinRT.targets(448,9): erro r MSB3073: The command ""C:\Users\Gamer\repos\terminal\packages\Microsoft.Windows.CppWinRT.2.0.190417.3\build\native\..\..\bin\"cppwinrt @"x6 4\Debug\cppwinrt_comp.rsp"" exited with code 9009. [C:\Users\Gamer\repos\terminal\src\cascadia\TerminalSettings\TerminalSettings.vcxproj] 0 Warning(s) ```
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-30 22:34:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1698