weixin_39798031
2020-12-30 14:47 阅读 12

Visual Studio kits are not detected when temp folder has a space in it

Brief Issue Summary

CMake Tools is unable to detect Visual Studio kits. It doesn't matter if it's Release or Preview version, because I tried them all. I can use "unspecified" to make it use the Visual Studio kit, but that doesn't really solve the main problem.

Expected:

CMake Tools should detect Visual Studio kits

  1. Try scanning for kits

Apparent Behavior:

It finds every other compiler EXCEPT Visual Studio (it even finds Clang with MSVC)

CMake Tools Log


[variant] Loaded new set of variants
[kit] Successfully loaded 2 kits from C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json
[main] Configuring folder: Super- 
[cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
[cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DARCANE_BUILD_TEST=TRUE -DCMAKE_TOOLCHAIN_FILE=C:\Development\Arcane\vcpkg\scripts\buildsystems\vcpkg.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\mingw64\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\mingw64\bin\g++.exe -Hc:/Development/Super- -Bc:/Development/Super-/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: C:/Development/Super-/build
[cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
[cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
[proc] Executing command: C:\msys64\mingw64\bin\mingw32-make.exe -v
[proc] Executing command: C:\msys64\mingw64\bin\mingw32-make.exe -v
[proc] Executing command: C:\msys64\mingw64\bin\mingw32-make.exe -v
[kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.5298857161470067.bat.env'
[kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.7537868830469785.bat.env'
[kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.9624249568439802.bat.env'
[kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.853832593212307.bat.env'
[kit] Found Kit: GCC 10.2.0
[kit] Found Kit: GCC for x86_64-w64-mingw32 10.2.0
[kit] Found Kit: GCC for x86_64-w64-mingw32 10.2.0
[kit] Successfully loaded 2 kits from C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json

Developer Tools Log


console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.938Z [debug] [main] Safe constructing new CMakeTools instance
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.939Z [debug] [variant] Constructing VariantManager
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.940Z [debug] [main] Constructing new CMakeTools instance
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.940Z [debug] [main] Starting CMakeTools second-phase init
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.973Z [info] [variant] Loaded new set of variants
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.973Z [debug] [main] CMakeTools instance initialization complete.
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.975Z [debug] [kit] Reading kits file C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.991Z [info] [kit] Successfully loaded 2 kits from C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.993Z [debug] [kit] Not reading non-existent kits file: c:\Development\Super-\.vscode\cmake-kits.json
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:23.994Z [debug] [main] Injecting new Kit into CMake driver
console.ts:137 [Extension Host] activating extension
console.ts:137 [Extension Host] starting language server
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.111Z [debug] [extension] Configuring workspace on open file:///c%3A/Development/Super-
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.112Z [info] [main] Configuring folder: Super- 
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.112Z [debug] [main] Saving open files before configure/build
console.ts:137 [Extension Host] (node:17548) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:70
console.ts:137 [Extension Host] updateCustomBrowseConfiguration
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.935Z [debug] [main] Starting new CMake driver
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.935Z [debug] [main] Starting CMake driver
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.936Z [debug] [main] Using generator from user configuration: Ninja
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.936Z [debug] [cmakefileapi-driver] Creating instance of CMakeFileApiDriver
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.936Z [debug] [driver] CMakeDriver Kit set to GCC 10.2.0
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.937Z [debug] [driver] Run _refreshExpansions
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.937Z [debug] [driver] Run _refreshExpansions cb
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.948Z [debug] [cache] Reading CMake cache file c:/Development/Super-/build/CMakeCache.txt
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.949Z [debug] [cache] Parsing CMake cache string
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.970Z [debug] [cache] Reading CMake cache file c:/Development/Super-/build/CMakeCache.txt
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.981Z [debug] [cache] Parsing CMake cache string
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.994Z [debug] [cmakefileapi-parser] Read reply folder: c:\Development\Super-\build\.cmake\api\v1\reply
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:24.995Z [debug] [cmakefileapi-parser] Found index files: ["cache-v2-53d5bf88c6dd165dcfeb.json","codemodel-v2-2d1c2b8763b7c43d9bed.json","index-2020-10-16T00-39-50-0602.json","target-Super-Debug-43e82ac3ffad63b777bb.json"]
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.000Z [warning] [cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
t.log @ console.ts:70
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.002Z [warning] [cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
t.log @ console.ts:70
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.004Z [debug] [driver] Setting new variant , Disable optimizations - include debug information.
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.004Z [debug] [driver] Run _refreshExpansions
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.004Z [debug] [driver] Run _refreshExpansions cb
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.138Z [debug] [driver] Run _refreshExpansions
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.138Z [debug] [driver] Run _refreshExpansions cb
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.141Z [debug] [driver] Start configure 
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.142Z [debug] [driver] Runnnig pre-configure checks and steps
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.142Z [debug] [driver] Using compilers in GCC 10.2.0 for configure
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.150Z [debug] [driver] Run _refreshExpansions
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.151Z [debug] [driver] Run _refreshExpansions cb
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.158Z [debug] [cmakefileapi-driver] Invoking CMake C:\Program Files\CMake\bin\cmake.EXE with arguments ["--no-warn-unused-cli","-DARCANE_BUILD_TEST=TRUE","-DCMAKE_TOOLCHAIN_FILE=C:\\Development\\Arcane\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake","-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE","-DCMAKE_BUILD_TYPE:STRING=Debug","-DCMAKE_C_COMPILER:FILEPATH=C:\\msys64\\mingw64\\bin\\gcc.exe","-DCMAKE_CXX_COMPILER:FILEPATH=C:\\msys64\\mingw64\\bin\\g++.exe","-Hc:/Development/Super-","-Bc:/Development/Super-/build","-G","Ninja"]
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.168Z [info] [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DARCANE_BUILD_TEST=TRUE -DCMAKE_TOOLCHAIN_FILE=C:\Development\Arcane\vcpkg\scripts\buildsystems\vcpkg.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\mingw64\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\mingw64\bin\g++.exe -Hc:/Development/Super- -Bc:/Development/Super-/build -G Ninja
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.231Z [info] [cmake] Not searching for unused variables given on the command line.
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.362Z [info] [cmake] -- Configuring done
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.391Z [info] [cmake] -- Generating done
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.416Z [info] [cmake] -- Build files have been written to: C:/Development/Super-/build
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.421Z [debug] [cmakefileapi-parser] Read reply folder: c:\Development\Super-\build\.cmake\api\v1\reply
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.422Z [debug] [cmakefileapi-parser] Found index files: ["cache-v2-53d5bf88c6dd165dcfeb.json","codemodel-v2-2d1c2b8763b7c43d9bed.json","index-2020-10-16T00-41-25-0414.json","target-Super-Debug-43e82ac3ffad63b777bb.json"]
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.423Z [warning] [cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
t.log @ console.ts:70
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.424Z [warning] [cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
t.log @ console.ts:70
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.553Z [debug] [cache] Reading CMake cache file c:/Development/Super-/build/CMakeCache.txt
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.554Z [debug] [cache] Parsing CMake cache string
workbench.html:1 A cookie associated with a cross-site resource at https://visualstudio.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
console.ts:137 [Extension Host] updateCustomBrowseConfiguration
console.ts:137 [Extension Host] provideCustomConfiguration
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.885Z [debug] [cache] Reading CMake cache file c:/Development/Super-/build/CMakeCache.txt
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:25.886Z [debug] [cache] Parsing CMake cache string
console.ts:137 [Extension Host] provideCustomConfiguration
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:32.097Z [debug] [extension] [8986] cmake.setVariant started
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:34.295Z [debug] [extension] [8986] cmake.setVariant finished (returned 1)
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:34.362Z [debug] [extension] [9233] cmake.selectKit started
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:34.362Z [debug] [kitsController] Start selection of kits. Found 4 kits.
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:34.362Z [debug] [kitsController] Opening kit selection QuickPick
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.413Z [debug] [kitsController] Rescanning for kits
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.413Z [debug] [kit] Scanning for Kits on system
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.423Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.424Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.424Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.424Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.424Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.425Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.425Z [debug] [kit] Scanning directory C:\Program Files (x86)\Windows Kits\10\bin\x64 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.425Z [debug] [kit] Scanning directory C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.426Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\MSBuild\Current\Bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.426Z [debug] [kit] Scanning directory C:\Windows\Microsoft.NET\Framework64\v4.0.30319 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.426Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.427Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.427Z [debug] [kit] Scanning directory C:\Program Files (x86)\Common Files\Oracle\Java\javapath for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.427Z [debug] [kit] Skipping scan of not existing path C:\Python38\Scripts\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.427Z [debug] [kit] Found 0 kits in directory C:\Python38\Scripts\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.428Z [debug] [kit] Scanning directory C:\Program Files\Intel\iCLS Client\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.428Z [debug] [kit] Skipping scan of not existing path C:\Python38\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.428Z [debug] [kit] Found 0 kits in directory C:\Python38\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.428Z [debug] [kit] Scanning directory C:\Windows\system32 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.429Z [debug] [kit] Scanning directory C:\Windows\System32\Wbem for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.429Z [debug] [kit] Scanning directory C:\Windows for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.429Z [debug] [kit] Scanning directory C:\Windows\System32\WindowsPowerShell\v1.0\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.429Z [debug] [kit] Scanning directory C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.430Z [debug] [kit] Scanning directory C:\WINDOWS\System32\Wbem for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.430Z [debug] [kit] Scanning directory C:\WINDOWS\system32 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.430Z [debug] [kit] Scanning directory C:\WINDOWS\System32\WindowsPowerShell\v1.0\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.430Z [debug] [kit] Scanning directory C:\WINDOWS for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.431Z [debug] [kit] Scanning directory C:\WINDOWS\System32\OpenSSH\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.431Z [debug] [kit] Scanning directory C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.431Z [debug] [kit] Scanning directory C:\ProgramData\chocolatey\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.431Z [debug] [kit] Scanning directory C:\Program Files\Git\cmd for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.432Z [debug] [kit] Skipping scan of not existing path C:\Program Files\PowerShell\7-preview\preview
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.432Z [debug] [kit] Found 0 kits in directory C:\Program Files\PowerShell\7-preview\preview
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.432Z [debug] [kit] Scanning directory C:\Program Files\Intel\Intel(R) Management Engine Components\DAL for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.433Z [debug] [kit] Scanning directory C:\Program Files\CMake\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.433Z [debug] [kit] Scanning directory C:\Program Files\nodejs\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.433Z [debug] [kit] Scanning directory C:\Users\Sam Huang\OneDrive\Documents\Ninja for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.434Z [debug] [kit] Scanning directory C:\Users\Sam Huang\AppData\Local\Microsoft\WindowsApps for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.434Z [debug] [kit] Skipping scan of not existing path C:\Users\Sam Huang\AppData\Local\bin\NASM
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.434Z [debug] [kit] Found 0 kits in directory C:\Users\Sam Huang\AppData\Local\bin\NASM
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.434Z [debug] [kit] Scanning directory C:\msys64\mingw64\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.435Z [debug] [kit] Scanning directory C:\Users\Sam Huang\AppData\Roaming\npm for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.435Z [debug] [kit] Scanning directory C:\tools\neovim\Neovim\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.435Z [debug] [kit] Scanning directory C:\Users\Sam Huang\AppData\Local\Programs\Microsoft VS Code\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.435Z [debug] [kit] Scanning directory C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.443Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.448Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.452Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.455Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.455Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Windows Kits\10\bin\x64
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.457Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.464Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.470Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\MSBuild\Current\Bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.483Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.487Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.487Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Common Files\Oracle\Java\javapath
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.498Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.498Z [debug] [kit] Found 0 kits in directory C:\Program Files\Intel\iCLS Client\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.522Z [debug] [kit] Found 0 kits in directory C:\Windows\Microsoft.NET\Framework64\v4.0.30319
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.523Z [debug] [kit] Found 0 kits in directory C:\Windows\System32\WindowsPowerShell\v1.0\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.540Z [debug] [kit] Found 0 kits in directory C:\Windows
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.541Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.563Z [debug] [kit] Found 0 kits in directory C:\Windows\System32\Wbem
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.564Z [debug] [kit] Found 0 kits in directory C:\WINDOWS\System32\WindowsPowerShell\v1.0\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.581Z [debug] [kit] Found 0 kits in directory C:\WINDOWS\System32\Wbem
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.582Z [debug] [kit] Found 0 kits in directory C:\WINDOWS\System32\OpenSSH\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.587Z [debug] [kit] Found 0 kits in directory C:\WINDOWS
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.587Z [debug] [kit] Found 0 kits in directory C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.587Z [debug] [kit] Found 0 kits in directory C:\ProgramData\chocolatey\bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.588Z [debug] [kit] Found 0 kits in directory C:\Program Files\Git\cmd
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.588Z [debug] [kit] Found 0 kits in directory C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.588Z [debug] [kit] Found 0 kits in directory C:\Program Files\CMake\bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.588Z [debug] [kit] Found 0 kits in directory C:\Program Files\nodejs\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.588Z [debug] [kit] Found 0 kits in directory C:\Users\Sam Huang\OneDrive\Documents\Ninja
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.590Z [debug] [kit] Found 0 kits in directory C:\Users\Sam Huang\AppData\Local\Microsoft\WindowsApps
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.590Z [debug] [kit] Found 0 kits in directory C:\Users\Sam Huang\AppData\Roaming\npm
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.591Z [debug] [kit] Found 0 kits in directory C:\tools\neovim\Neovim\bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.592Z [debug] [kit] Testing GCC binary: C:\msys64\mingw64\bin\gcc.exe
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.607Z [debug] [kit] Testing GCC binary: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc-10.2.0.exe
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.613Z [debug] [kit] Testing GCC binary: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.621Z [debug] [kit] Found 0 kits in directory C:\Users\Sam Huang\AppData\Local\Programs\Microsoft VS Code\bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.622Z [debug] [kit] Found 0 kits in directory C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.788Z [debug] [kit] Found 0 kits in directory C:\Windows\system32
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.937Z [debug] [kit] Found 0 kits in directory C:\WINDOWS\system32
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.946Z [debug] [kit] Detected GCC compiler: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.947Z [debug] [kit] Detected GCC compiler: C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc-10.2.0.exe
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.947Z [debug] [kit] Detected GCC compiler: C:\msys64\mingw64\bin\gcc.exe
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.948Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - x86
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x86 - target arch:x86
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.950Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - x86_amd64
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x86 - target arch:x64
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.951Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - x86_arm
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x86 - target arch:arm
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.954Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - x86_arm64
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x86 - target arch:arm64
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.954Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - amd64_x86
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x64 - target arch:x86
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.954Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - amd64
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x64 - target arch:x64
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.955Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - amd64_arm
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x64 - target arch:arm
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.956Z [debug] [kit] Checking for kit: Visual Studio Community 2019 Release - amd64_arm64
console.ts:137 [Extension Host] varsForVSInstallation path:'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community' version:16.7.30611.23 host arch:x64 - target arch:arm64
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.962Z [debug] [kit] Skipping scan of not existing path C:\Program Files (x86)\LLVM\bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.962Z [debug] [kit] Skipping scan of not existing path C:\Program Files\LLVM\bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.962Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.963Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.963Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.963Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.963Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.964Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.964Z [debug] [kit] Scanning directory C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.964Z [debug] [kit] Scanning directory C:\Program Files (x86)\Windows Kits\10\bin\x64 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.964Z [debug] [kit] Scanning directory C:\Windows\Microsoft.NET\Framework64\v4.0.30319 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.965Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\MSBuild\Current\Bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.965Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.965Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.966Z [debug] [kit] Scanning directory C:\Program Files (x86)\Common Files\Oracle\Java\javapath for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.966Z [debug] [kit] Skipping scan of not existing path C:\Python38\Scripts\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.966Z [debug] [kit] Skipping scan of not existing path C:\Python38\
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.966Z [debug] [kit] Scanning directory C:\Program Files\Intel\iCLS Client\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.968Z [debug] [kit] Scanning directory C:\Windows\system32 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.970Z [debug] [kit] Scanning directory C:\Windows for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.970Z [debug] [kit] Scanning directory C:\Windows\System32\Wbem for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.971Z [debug] [kit] Scanning directory C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.971Z [debug] [kit] Scanning directory C:\Windows\System32\WindowsPowerShell\v1.0\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.971Z [debug] [kit] Scanning directory C:\WINDOWS\system32 for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.971Z [debug] [kit] Scanning directory C:\WINDOWS\System32\Wbem for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.972Z [debug] [kit] Scanning directory C:\WINDOWS\System32\WindowsPowerShell\v1.0\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.972Z [debug] [kit] Scanning directory C:\WINDOWS\System32\OpenSSH\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.973Z [debug] [kit] Scanning directory C:\WINDOWS for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.973Z [debug] [kit] Scanning directory C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.973Z [debug] [kit] Scanning directory C:\ProgramData\chocolatey\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.974Z [debug] [kit] Scanning directory C:\Program Files\Git\cmd for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.974Z [debug] [kit] Skipping scan of not existing path C:\Program Files\PowerShell\7-preview\preview
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.974Z [debug] [kit] Scanning directory C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.974Z [debug] [kit] Scanning directory C:\Program Files\Intel\Intel(R) Management Engine Components\DAL for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.974Z [debug] [kit] Scanning directory C:\Program Files\CMake\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.975Z [debug] [kit] Scanning directory C:\Program Files\nodejs\ for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.975Z [debug] [kit] Scanning directory C:\Users\Sam Huang\AppData\Local\Microsoft\WindowsApps for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.975Z [debug] [kit] Skipping scan of not existing path C:\Users\Sam Huang\AppData\Local\bin\NASM
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.976Z [debug] [kit] Scanning directory C:\Users\Sam Huang\OneDrive\Documents\Ninja for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.976Z [debug] [kit] Scanning directory C:\msys64\mingw64\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.976Z [debug] [kit] Scanning directory C:\Users\Sam Huang\AppData\Roaming\npm for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.976Z [debug] [kit] Scanning directory C:\tools\neovim\Neovim\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.976Z [debug] [kit] Scanning directory C:\Users\Sam Huang\AppData\Local\Programs\Microsoft VS Code\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.977Z [debug] [kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm\bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.977Z [info] [proc] Executing command: C:\msys64\mingw64\bin\mingw32-make.exe -v
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.989Z [info] [proc] Executing command: C:\msys64\mingw64\bin\mingw32-make.exe -v
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:35.996Z [info] [proc] Executing command: C:\msys64\mingw64\bin\mingw32-make.exe -v
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.064Z [debug] [kit] Found 3 kits in directory C:\msys64\mingw64\bin
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.120Z [error] [kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.5298857161470067.bat.env'
t.log @ console.ts:70
console.ts:137 [Extension Host] Error running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86 with: 'C:\Users\Sam' is not recognized as an internal or external command,
operable program or batch file.

console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.129Z [error] [kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.7537868830469785.bat.env'
t.log @ console.ts:70
console.ts:137 [Extension Host] Error running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86_x64 with: 'C:\Users\Sam' is not recognized as an internal or external command,
operable program or batch file.

console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.137Z [error] [kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.9624249568439802.bat.env'
t.log @ console.ts:70
console.ts:137 [Extension Host] Error running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x64_x86 with: 'C:\Users\Sam' is not recognized as an internal or external command,
operable program or batch file.

console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.143Z [error] [kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.853832593212307.bat.env'
t.log @ console.ts:70
console.ts:137 [Extension Host] Error running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x64 with: 'C:\Users\Sam' is not recognized as an internal or external command,
operable program or batch file.

console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.144Z [info] [kit] Found Kit: GCC 10.2.0
2console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.144Z [info] [kit] Found Kit: GCC for x86_64-w64-mingw32 10.2.0
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.144Z [debug] [kitsController] Saving kits to C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.144Z [debug] [kitsController] Saving new kits to C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.149Z [debug] [extension] [9233] cmake.selectKit finished (returned false)
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.149Z [debug] [kit] Reading kits file C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json
console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.157Z [info] [kit] Successfully loaded 2 kits from C:\Users\Sam Huang\AppData\Local\CMakeTools\cmake-tools-kits.json
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Sam%20Huang/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/semver-umd.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Sam%20Huang/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/tas-client-umd.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Sam%20Huang/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/main.js.map: 

Platform and Versions

  • Operating System: Windows 10
  • CMake Version: 3.18.2
  • VSCode Version: 1.50.1
  • CMake Tools Extension Version: 1.4.2
  • Compiler/Toolchain: Visual Studio 2019 (16.7.6)

Other Notes/Information

It was working fine for some time, but I noticed it stopped working after one of the times I uninstalled Visual Studio to install the Preview version.

该提问来源于开源项目:microsoft/vscode-cmake-tools

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

13条回答 默认 最新

  • weixin_39606003 weixin_39606003 2020-12-30 14:47

    Can you give us more information about your current installation state? - do you have an vswhere.exe at [Program Files x86]\Microsoft Visual Studio\Installer? - do you have a VC\Auxiliary\Build\vcvarsall.bat in all your VS installations? - what exact VS you had first and what you just installed ? (we need more than the year, was it enterprise, community, build tools, etc...) - anything different than the default install/uninstall experience? Like checking/unchecking components? - could you rescan again after some install-repair of all your VSes?

    点赞 评论 复制链接分享
  • weixin_39798031 weixin_39798031 2020-12-30 14:47

    1. vswhere.exe is present in the installation (it also shows that in the log) 2. vcvarsall.bat is also present in the installation (I only have one installation when I reported this) 3. I had the latest Visual Studio 2019 Community installed (16.7.6 as of the time of this report) 4. When I uninstall Visual Studio, I unchecked all the workloads first, then I uninstalled Visual Studio itself (not sure if that's the cause or not) 5. I did try to repair my installation, but the kit still didn't pick it up.

    Note: After examining the log a bit, it seems that it did pick up the installation because of vswhere.exe, but it tried executing a non-existent .bat file in the Temp folder, therefore failing to set the kit?

    点赞 评论 复制链接分享
  • weixin_39606003 weixin_39606003 2020-12-30 14:47

    Thank you for the extra info. We will try to reproduce this and debug. I wasn't able to spot anything suspicious yet from a quick glance at the extension source code, following up on the hints from your logs.

    点赞 评论 复制链接分享
  • weixin_39606003 weixin_39606003 2020-12-30 14:47

    Only if it's not too difficult, can you try to install 1.4.1 instead of 1.4.2 and rescan the kits? We'll get to do that as well but if you manage to find the answer quicker than us (whether the missing kits show up for 1.4.1) it might give us more hints to find the root cause.

    点赞 评论 复制链接分享
  • weixin_39798031 weixin_39798031 2020-12-30 14:47

    I tried version 1.4.1, and it still didn't find the kit.

    On a side note, I recalled my history a bit further because I uninstalled and installed Visual Studio a lot in the past. It worked when I had Visual Studio Build Tools and was able to pick it up. As soon as I uninstall that though, I also removed all the entries in the kits JSON file because I don't think CMake Tools removes non-existent kits back then. Then that was when it no longer picked up any further installations of Visual Studio (and that was when the supposedly .bat files were deleted?).

    点赞 评论 复制链接分享
  • weixin_39782782 weixin_39782782 2020-12-30 14:47

    The problem appears to be related to having a space in the path. can you try putting the temp bat file in a path with a space in it and see if that reproduces the error?

    
    console.ts:137 [Extension Host] [CMakeTools] 2020-10-16T00:41:36.143Z [error] [kit] Error: ENOENT: no such file or directory, open 'C:\Users\Sam Huang\AppData\Local\Temp\vs-cmt-0.853832593212307.bat.env'
    t.log @ console.ts:70
    console.ts:137 [Extension Host] Error running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x64 with: 'C:\Users\Sam' is not recognized as an internal or external command,
    operable program or batch file.
    
    点赞 评论 复制链接分享
  • weixin_39606003 weixin_39606003 2020-12-30 14:47

    Yes that's it. I also thought to experiment with quoting to fix this but for some reason things still don't work well if I make sure to quote some paths in our code base. I'm sure that after a bit more time I can find a good fix. In the meantime I can create a low priority work item to make the extension deal with the space path as well.

    点赞 评论 复制链接分享
  • weixin_39782782 weixin_39782782 2020-12-30 14:47

    I think this is worthy to include in 1.5.

    点赞 评论 复制链接分享
  • weixin_39798031 weixin_39798031 2020-12-30 14:47

    So the actual issue is the fact my home path has a space?

    If so, should I rename this issue to better reflect that?

    点赞 评论 复制链接分享
  • weixin_39606003 weixin_39606003 2020-12-30 14:47

    Removing the space is just your workaround until we release 1.5. The extension should still handle this scenario. We are working on a fix right now. Thank you for reporting this.

    点赞 评论 复制链接分享
  • weixin_39798031 weixin_39798031 2020-12-30 14:47

    Unfortunately, I can't really rename my user folder since that'd break many other things. I have patience 😄 !

    点赞 评论 复制链接分享
  • weixin_39606003 weixin_39606003 2020-12-30 14:47

    This should be fixed in CMake Tools 1.5.0 which was published today. Let us know if you encounter any issues with this release.

    点赞 评论 复制链接分享
  • weixin_39798031 weixin_39798031 2020-12-30 14:47

    Yep it works! Thank you!

    点赞 评论 复制链接分享

相关推荐