vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

Wrong output encoding when running build task using MSBuild

Open COOLIRON2311 opened this issue 1 year ago • 24 comments

Brief Issue Summary

I have created a default Executable project using the CMake: Quick Start option from Command Palette. I've also modified auto-generated main.cpp so that the compiler should fail and report a mistake in my code:

#include <iostream>

int main(int, char **)
{
    std::cout << "Hello, from app!\n" // missing semicolon
}

Finally, I've up a default build task, which utilizes $msCompile problem matcher: Note: that cmake.buildTask is globally set to true

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "cmake",
			"label": "CMake: build",
			"command": "build",
			"targets": [
				"app"
			],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"problemMatcher": ["$msCompile"],
			"detail": "CMake template build task"
		}
	]
}

And when I run the build task, these malformed characters appear in the output log:

 *  Executing task: CMake: build 

build task started....
"C:\Program Files\CMake\bin\cmake.EXE" --build d:/Desktop/cpptest/build --config Debug --target app -j 18 --
����� MSBuild 17.9.5+33de0b227 ��� .NET Framework

  main.cpp
D:\Desktop\cpptest\main.cpp(6,1): error C2143: ᨭ⠪��᪠� �訡��: ������⢨� ";" ��। "}" [D:\Desktop\cpptest\build\app.vcxproj]
build finished with error(s).

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.

As a result of this, the problem matcher parses the error message just fine, but is also unable to decode these characters properly:

problems

[!IMPORTANT] The language of my system is set to Russian, so I know that these characters should be Cyrillic. Either cp866 or cp1251 is used I suppose.

CMake Tools Diagnostics

{
  "os": "win32",
  "vscodeVersion": "1.87.0",
  "cmtVersion": "1.17.17",
  "configurations": [
    {
      "folder": "d:\\Desktop\\cpptest",
      "cmakeVersion": "3.28.3",
      "configured": true,
      "generator": "Visual Studio 17 2022",
      "usesPresets": false,
      "compilers": {}
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Debug",
    "buildTypesSeen": [
      "Debug",
      "Release",
      "MinSizeRel",
      "RelWithDebInfo"
    ],
    "requests": [
      "file:///d%3A/Desktop/cpptest/main.cpp"
    ],
    "responses": [
      {
        "uri": "file:///d%3A/Desktop/cpptest/main.cpp",
        "configuration": {
          "includePath": [],
          "defines": [],
          "compilerPath": "c:/program files/microsoft visual studio/2022/community/vc/tools/msvc/14.39.33519/bin/hostx64/x64/cl.exe",
          "compilerArgs": [],
          "compilerFragments": [
            "/DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1"
          ]
        }
      }
    ],
    "partialMatches": [],
    "targetCount": 3,
    "executablesCount": 1,
    "librariesCount": 0,
    "targets": [
      {
        "name": "ALL_BUILD",
        "type": "UTILITY"
      },
      {
        "name": "ZERO_CHECK",
        "type": "UTILITY"
      },
      {
        "name": "app",
        "type": "EXECUTABLE"
      }
    ]
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": false
    }
  ]
}

Debug Log

[proc] Executing command: cmake --version
[proc] Executing command: cmake -E capabilities
[main] Safe constructing new CMakeProject instance
[variant] Constructing VariantManager
[main] Constructing new CMakeProject instance
[main] Starting CMake Tools second-phase init
[expand] expanding ${workspaceFolder}
[variant] Loaded new set of variants
[kit] Reading kits file C:\Users\ivani\AppData\Local\CMakeTools\cmake-tools-kits.json
[kit] Successfully loaded 6 kits from C:\Users\ivani\AppData\Local\CMakeTools\cmake-tools-kits.json
[expand] expanding C:\cygwin64\bin\gcc.exe
[expand] expanding C:\cygwin64\bin\g++.exe
[expand] expanding C:\cygwin64\bin\gcc.exe
[expand] expanding C:\cygwin64\bin\g++.exe
[expand] expanding cmake
[kit] Not reading non-existent kits file: d:\Desktop\cpptest\.vscode\cmake-kits.json
[expand] expanding D:/Desktop/cpptest
[main] Injecting new Kit into CMake driver
[main] CMakeProject instance initialization complete.
[extension] Attempting to use cache to configure workspace file:///d%3A/Desktop/cpptest
[expand] expanding cmake
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --version
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -E capabilities
[main] Starting new CMake driver
[main] Starting CMake driver
[cmakefileapi-driver] Creating instance of CMakeFileApiDriver
[driver] Initializing base driver using kit
[driver] CMakeDriver Kit set to Visual Studio Community 2022 Release - amd64
[proc] Executing command: chcp
[visual-studio] Patch Windows SDK path from C:\Program Files (x86)\Windows Kits\10\bin\x64 to C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64 for C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat
[visual-studio] OK running C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat x64, env vars: {"DevEnvDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\","Framework40Version":"v4.0","FrameworkDir":"C:\\Windows\\Microsoft.NET\\Framework64\\","FrameworkDIR64":"C:\\Windows\\Microsoft.NET\\Framework64\\","FrameworkVersion":"v4.0.30319","FrameworkVersion64":"v4.0.30319","INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\cppwinrt;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um","LIB":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\lib\\um\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.19041.0\\\\um\\x64","LIBPATH":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319","NETFXSDKDir":"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\","Path":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\FSharp\\Tools;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C:\\Program Files\\Python312\\Scripts\\;C:\\Program Files\\Python312\\;C:\\Program Files\\Python312\\Library\\bin;C:\\Program Files\\Java\\jdk-21\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\ProgramData\\chocolatey\\lib\\mpv.install\\tools;C:\\tools\\BCURRAN3;C:\\Program Files\\swipl\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\gs\\gs10.00.0\\bin;C:\\Program Files\\share;D:\\vcpkg;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\Gpg4win\\..\\GnuPG\\bin;C:\\Program Files\\Git\\cmd;C:\\cygwin64\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.2\\compute-sanitizer;C:\\Program Files\\radare2-5.8.8-w64\\bin;C:\\Program Files\\Process Lasso\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\chocolatey\\lib\\maven\\apache-maven-3.9.6\\bin;C:\\metasploit-framework\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2023.3.1\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Users\\ivani\\.cargo\\bin;C:\\Users\\ivani\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ivani\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Nmap;C:\\Program Files (x86)\\DjVuLibre;C:\\cygwin64\\bin;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Qt\\Qt5.12.12\\5.12.12\\msvc2017_64\\bin;C:\\Users\\ivani\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64;C:\\metasploit-framework\\bin;C:\\Users\\ivani\\AppData\\Roaming\\npm;C:\\Users\\ivani\\.dotnet\\tools;;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe","UCRTVersion":"10.0.19041.0","UniversalCRTSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","VCIDEInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\","VCINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\","VCToolsRedistDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Redist\\MSVC\\14.38.33135\\","VisualStudioVersion":"17.0","VSINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\","WindowsLibPath":"C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0","WindowsSdkBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\","WindowsSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","WindowsSDKLibVersion":"10.0.19041.0\\","WindowsSDKVersion":"10.0.19041.0\\","WindowsSDK_ExecutablePath_x64":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\","WindowsSDK_ExecutablePath_x86":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\","TMP":"C:\\Users\\ivani\\AppData\\Local\\Temp"}
[kit] The environment for kit 'Visual Studio Community 2022 Release - amd64': {
  "ACSetupSvcPort": "23210",
  "ACSvcPort": "17532",
  "ALLUSERSPROFILE": "C:\\ProgramData",
  "APPDATA": "C:\\Users\\ivani\\AppData\\Roaming",
  "CommonPropertyBagPath": "C:\\Users\\ivani\\AppData\\Local\\Temp\\csdevkit\\3887c47d.json",
  "COMPUTERNAME": "TUF-DASH-F15",
  "CUDA_PATH": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3",
  "CUDA_PATH_V12_3": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3",
  "ChocolateyInstall": "C:\\ProgramData\\chocolatey",
  "ChocolateyLastPathUpdate": "133499825360151581",
  "ChocolateyToolsLocation": "C:\\tools",
  "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
  "CommonProgramFiles": "C:\\Program Files\\Common Files",
  "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
  "CommonProgramW6432": "C:\\Program Files\\Common Files",
  "DOTNET_CLI_TELEMETRY_OPTOUT": "1",
  "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
  "EFC_6208": "1",
  "ELECTRON_RUN_AS_NODE": "1",
  "EnableLog": "WARNING",
  "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer",
  "FPS_BROWSER_USER_PROFILE_STRING": "Default",
  "FRONTEND_PORT": "8000",
  "HOME": "C:\\Users\\ivani",
  "HOMEDRIVE": "C:",
  "HOMEPATH": "\\Users\\ivani",
  "JAVA_HOME": "C:\\Program Files\\Java\\jdk-21",
  "JD2_HOME": "C:\\Users\\ivani\\AppData\\Local\\JDownloader 2.0",
  "LOCALAPPDATA": "C:\\Users\\ivani\\AppData\\Local",
  "LOGONSERVER": "\\\\TUF-DASH-F15",
  "NUMBER_OF_PROCESSORS": "16",
  "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
  "OS": "Windows_NT",
  "OneDrive": "C:\\Users\\ivani\\OneDrive",
  "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW",
  "PROCESSOR_ARCHITECTURE": "AMD64",
  "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 154 Stepping 3, GenuineIntel",
  "PROCESSOR_LEVEL": "6",
  "PROCESSOR_REVISION": "9a03",
  "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
  "PUBLIC": "C:\\Users\\Public",
  "Path": "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\FSharp\\Tools;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C:\\Program Files\\Python312\\Scripts\\;C:\\Program Files\\Python312\\;C:\\Program Files\\Python312\\Library\\bin;C:\\Program Files\\Java\\jdk-21\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\ProgramData\\chocolatey\\lib\\mpv.install\\tools;C:\\tools\\BCURRAN3;C:\\Program Files\\swipl\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\gs\\gs10.00.0\\bin;C:\\Program Files\\share;D:\\vcpkg;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\Gpg4win\\..\\GnuPG\\bin;C:\\Program Files\\Git\\cmd;C:\\cygwin64\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.2\\compute-sanitizer;C:\\Program Files\\radare2-5.8.8-w64\\bin;C:\\Program Files\\Process Lasso\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\chocolatey\\lib\\maven\\apache-maven-3.9.6\\bin;C:\\metasploit-framework\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2023.3.1\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Users\\ivani\\.cargo\\bin;C:\\Users\\ivani\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ivani\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Nmap;C:\\Program Files (x86)\\DjVuLibre;C:\\cygwin64\\bin;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Qt\\Qt5.12.12\\5.12.12\\msvc2017_64\\bin;C:\\Users\\ivani\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64;C:\\metasploit-framework\\bin;C:\\Users\\ivani\\AppData\\Roaming\\npm;C:\\Users\\ivani\\.dotnet\\tools;;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
  "ProgramData": "C:\\ProgramData",
  "ProgramFiles": "C:\\Program Files",
  "ProgramFiles(x86)": "C:\\Program Files (x86)",
  "ProgramW6432": "C:\\Program Files",
  "QtMsBuild": "C:\\Users\\ivani\\AppData\\Local\\QtMsBuild",
  "RlsSvcPort": "22112",
  "SESSIONNAME": "Console",
  "SystemDrive": "C:",
  "SystemRoot": "C:\\WINDOWS",
  "TEMP": "C:\\Users\\ivani\\AppData\\Local\\Temp",
  "TMP": "C:\\Users\\ivani\\AppData\\Local\\Temp",
  "USERDOMAIN": "TUF-DASH-F15",
  "USERDOMAIN_ROAMINGPROFILE": "TUF-DASH-F15",
  "USERNAME": "ivani",
  "USERPROFILE": "C:\\Users\\ivani",
  "VBOX_MSI_INSTALL_PATH": "C:\\Program Files\\Oracle\\VirtualBox\\",
  "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
  "VSCODE_CODE_CACHE_PATH": "C:\\Users\\ivani\\AppData\\Roaming\\Code\\CachedData\\019f4d1419fbc8219a181fab7892ebccf7ee29a2",
  "VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
  "VSCODE_CWD": "C:\\Users\\ivani\\AppData\\Local\\Programs\\Microsoft VS Code",
  "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
  "VSCODE_IPC_HOOK": "\\\\.\\pipe\\046830d3-1.87.0-main-sock",
  "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"ru\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
  "VSCODE_PID": "20076",
  "ZES_ENABLE_SYSMAN": "1",
  "asl.log": "Destination=file",
  "windir": "C:\\WINDOWS",
  "DevEnvDir": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\",
  "Framework40Version": "v4.0",
  "FrameworkDir": "C:\\Windows\\Microsoft.NET\\Framework64\\",
  "FrameworkDIR64": "C:\\Windows\\Microsoft.NET\\Framework64\\",
  "FrameworkVersion": "v4.0.30319",
  "FrameworkVersion64": "v4.0.30319",
  "INCLUDE": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\cppwinrt;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um",
  "LIB": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\lib\\um\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.19041.0\\\\um\\x64",
  "LIBPATH": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319",
  "NETFXSDKDir": "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\",
  "UCRTVersion": "10.0.19041.0",
  "UniversalCRTSdkDir": "C:\\Program Files (x86)\\Windows Kits\\10\\",
  "VCIDEInstallDir": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\",
  "VCINSTALLDIR": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\",
  "VCToolsRedistDir": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Redist\\MSVC\\14.38.33135\\",
  "VisualStudioVersion": "17.0",
  "VSINSTALLDIR": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\",
  "WindowsLibPath": "C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0",
  "WindowsSdkBinPath": "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\",
  "WindowsSdkDir": "C:\\Program Files (x86)\\Windows Kits\\10\\",
  "WindowsSDKLibVersion": "10.0.19041.0\\",
  "WindowsSDKVersion": "10.0.19041.0\\",
  "WindowsSDK_ExecutablePath_x64": "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\",
  "WindowsSDK_ExecutablePath_x86": "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\",
  "VS170COMNTOOLS": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools",
  "CC": "cl.exe",
  "CXX": "cl.exe"
}
[driver] Trying to detect generator supported by system
[expand] expanding D:/Desktop/cpptest
[expand] expanding ${workspaceFolder}/build
[cache] Reading CMake cache file d:/Desktop/cpptest/build/CMakeCache.txt
[cache] Parsing CMake cache string
[cache] Reading CMake cache file d:/Desktop/cpptest/build/CMakeCache.txt
[cache] Parsing CMake cache string
[cmakefileapi-parser] Read reply folder: d:\Desktop\cpptest\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-2d1b7f8f3e6695337096.json","cmakeFiles-v1-6f5c4ad72f9367a84b60.json","codemodel-v2-096b4f40ec0af2a3dc8a.json","directory-.-Debug-d0094a50bb2071803777.json","directory-.-MinSizeRel-d0094a50bb2071803777.json","directory-.-Release-d0094a50bb2071803777.json","directory-.-RelWithDebInfo-d0094a50bb2071803777.json","index-2024-03-03T19-20-26-0663.json","target-ALL_BUILD-Debug-5b8033345ba9016d7be8.json","target-ALL_BUILD-MinSizeRel-5b8033345ba9016d7be8.json","target-ALL_BUILD-Release-5b8033345ba9016d7be8.json","target-ALL_BUILD-RelWithDebInfo-5b8033345ba9016d7be8.json","target-app-Debug-cb2b2c10bb8c093b5082.json","target-app-MinSizeRel-cfafd3d6ebfc78c08d5c.json","target-app-Release-b5bec4b42d5d435a6c3e.json","target-app-RelWithDebInfo-d761412729deb15daae2.json","target-ZERO_CHECK-Debug-cc75f34c803196af3a7c.json","target-ZERO_CHECK-MinSizeRel-cc75f34c803196af3a7c.json","target-ZERO_CHECK-Release-cc75f34c803196af3a7c.json","target-ZERO_CHECK-RelWithDebInfo-cc75f34c803196af3a7c.json","toolchains-v1-7cf7fae669d01830c29c.json"]
[driver] Setting new variant Debug
[expand] expanding D:/Desktop/cpptest
[expand] expanding ${workspaceFolder}/build
[expand] expanding D:/Desktop/cpptest
[expand] expanding cmake
[expand] expanding ${workspaceFolder}/build
[driver] Use cached configuration 
[driver] Running pre-configure checks and steps
[expand] expanding --no-warn-unused-cli
[expand] expanding -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE
[expand] expanding D:/Desktop/cpptest
[expand] expanding ${workspaceFolder}/build
[cmakefileapi-parser] Read reply folder: d:\Desktop\cpptest\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-2d1b7f8f3e6695337096.json","cmakeFiles-v1-6f5c4ad72f9367a84b60.json","codemodel-v2-096b4f40ec0af2a3dc8a.json","directory-.-Debug-d0094a50bb2071803777.json","directory-.-MinSizeRel-d0094a50bb2071803777.json","directory-.-Release-d0094a50bb2071803777.json","directory-.-RelWithDebInfo-d0094a50bb2071803777.json","index-2024-03-03T19-20-26-0663.json","target-ALL_BUILD-Debug-5b8033345ba9016d7be8.json","target-ALL_BUILD-MinSizeRel-5b8033345ba9016d7be8.json","target-ALL_BUILD-Release-5b8033345ba9016d7be8.json","target-ALL_BUILD-RelWithDebInfo-5b8033345ba9016d7be8.json","target-app-Debug-cb2b2c10bb8c093b5082.json","target-app-MinSizeRel-cfafd3d6ebfc78c08d5c.json","target-app-Release-b5bec4b42d5d435a6c3e.json","target-app-RelWithDebInfo-d761412729deb15daae2.json","target-ZERO_CHECK-Debug-cc75f34c803196af3a7c.json","target-ZERO_CHECK-MinSizeRel-cc75f34c803196af3a7c.json","target-ZERO_CHECK-Release-cc75f34c803196af3a7c.json","target-ZERO_CHECK-RelWithDebInfo-cc75f34c803196af3a7c.json","toolchains-v1-7cf7fae669d01830c29c.json"]
[expand] expanding cmake
[expand] expanding --build
[expand] expanding d:/Desktop/cpptest/build
[expand] expanding --config
[expand] expanding Debug
[expand] expanding --target
[expand] expanding app
[expand] expanding -j
[expand] expanding 18
[expand] expanding --
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build d:/Desktop/cpptest/build --config Debug --target app -j 18 --
[proc]   with environment: {"ACSetupSvcPort":"23210","ACSvcPort":"17532","ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\ivani\\AppData\\Roaming","CommonPropertyBagPath":"C:\\Users\\ivani\\AppData\\Local\\Temp\\csdevkit\\3887c47d.json","COMPUTERNAME":"TUF-DASH-F15","CUDA_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3","CUDA_PATH_V12_3":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ChocolateyLastPathUpdate":"133499825360151581","ChocolateyToolsLocation":"C:\\tools","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DOTNET_CLI_TELEMETRY_OPTOUT":"1","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","EFC_6208":"1","ELECTRON_RUN_AS_NODE":"1","EnableLog":"WARNING","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","FRONTEND_PORT":"8000","HOME":"C:\\Users\\ivani","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\ivani","JAVA_HOME":"C:\\Program Files\\Java\\jdk-21","JD2_HOME":"C:\\Users\\ivani\\AppData\\Local\\JDownloader 2.0","LOCALAPPDATA":"C:\\Users\\ivani\\AppData\\Local","LOGONSERVER":"\\\\TUF-DASH-F15","NUMBER_OF_PROCESSORS":"16","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\ivani\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 154 Stepping 3, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"9a03","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\FSharp\\Tools;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.19041.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\libnvvp;C:\\Program Files\\Python312\\Scripts\\;C:\\Program Files\\Python312\\;C:\\Program Files\\Python312\\Library\\bin;C:\\Program Files\\Java\\jdk-21\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\ProgramData\\chocolatey\\lib\\mpv.install\\tools;C:\\tools\\BCURRAN3;C:\\Program Files\\swipl\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\gs\\gs10.00.0\\bin;C:\\Program Files\\share;D:\\vcpkg;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\Gpg4win\\..\\GnuPG\\bin;C:\\Program Files\\Git\\cmd;C:\\cygwin64\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.2\\compute-sanitizer;C:\\Program Files\\radare2-5.8.8-w64\\bin;C:\\Program Files\\Process Lasso\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\chocolatey\\lib\\maven\\apache-maven-3.9.6\\bin;C:\\metasploit-framework\\bin\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2023.3.1\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Users\\ivani\\.cargo\\bin;C:\\Users\\ivani\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ivani\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Nmap;C:\\Program Files (x86)\\DjVuLibre;C:\\cygwin64\\bin;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Qt\\Qt5.12.12\\5.12.12\\msvc2017_64\\bin;C:\\Users\\ivani\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64;C:\\metasploit-framework\\bin;C:\\Users\\ivani\\AppData\\Roaming\\npm;C:\\Users\\ivani\\.dotnet\\tools;;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","QtMsBuild":"C:\\Users\\ivani\\AppData\\Local\\QtMsBuild","RlsSvcPort":"22112","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","TEMP":"C:\\Users\\ivani\\AppData\\Local\\Temp","TMP":"C:\\Users\\ivani\\AppData\\Local\\Temp","USERDOMAIN":"TUF-DASH-F15","USERDOMAIN_ROAMINGPROFILE":"TUF-DASH-F15","USERNAME":"ivani","USERPROFILE":"C:\\Users\\ivani","VBOX_MSI_INSTALL_PATH":"C:\\Program Files\\Oracle\\VirtualBox\\","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\ivani\\AppData\\Roaming\\Code\\CachedData\\019f4d1419fbc8219a181fab7892ebccf7ee29a2","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\ivani\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\046830d3-1.87.0-main-sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"ru\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"20076","ZES_ENABLE_SYSMAN":"1","asl.log":"Destination=file","windir":"C:\\WINDOWS","NINJA_STATUS":"[%s/%t %p :: %e] ","DevEnvDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\","Framework40Version":"v4.0","FrameworkDir":"C:\\Windows\\Microsoft.NET\\Framework64\\","FrameworkDIR64":"C:\\Windows\\Microsoft.NET\\Framework64\\","FrameworkVersion":"v4.0.30319","FrameworkVersion64":"v4.0.30319","INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\cppwinrt;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um","LIB":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\lib\\um\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.19041.0\\\\um\\x64","LIBPATH":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319","NETFXSDKDir":"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\","UCRTVersion":"10.0.19041.0","UniversalCRTSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","VCIDEInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\","VCINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\","VCToolsRedistDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Redist\\MSVC\\14.38.33135\\","VisualStudioVersion":"17.0","VSINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\","WindowsLibPath":"C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.19041.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.19041.0","WindowsSdkBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\","WindowsSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","WindowsSDKLibVersion":"10.0.19041.0\\","WindowsSDKVersion":"10.0.19041.0\\","WindowsSDK_ExecutablePath_x64":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\","WindowsSDK_ExecutablePath_x86":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\","VS170COMNTOOLS":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools","CC":"cl.exe","CXX":"cl.exe"}
[expand] expanding cmake
[cache] Reading CMake cache file d:/Desktop/cpptest/build/CMakeCache.txt
[cache] Parsing CMake cache string
[expand] expanding cmake
[cache] Reading CMake cache file d:/Desktop/cpptest/build/CMakeCache.txt
[cache] Parsing CMake cache string
[expand] expanding cmake
[expand] expanding cmake
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build d:/Desktop/cpptest/build --config Debug --target app -j 18 -- exited with code: 1

Additional Information

No response

COOLIRON2311 avatar Mar 03 '24 19:03 COOLIRON2311

@COOLIRON2311 Where are you seeing this output? Is it in the output pane or the terminal?

Either way, I suspect this may actually be a bug on core VS Code, since we don't control the output of the output pane or the terminal, we only pass data to it. Could you confirm whether this happens if you use a non type: cmake build task or if you do this directly on the command-line in the VS Code terminal?

Thanks!

gcampbell-msft avatar Mar 04 '24 16:03 gcampbell-msft

@gcampbell-msft I am seeing this output in the terminal. I've tried setting the task type to shell so the config is as follows:

{
	"label": "Non-CMake task",
	"type": "shell",
	"command": "cmake",
	"args": [
		"--build",
		"d:/Desktop/cpptest/build",
		"--config",
		"Debug",
		"--target",
		"app",
		"-j",
		"18"
	],
	"group": "build",
	"problemMatcher": [
		"$msCompile"
	]
}

And when I run this task, the output in the terminal is not malformed:

*  Executing task: cmake --build d:/Desktop/cpptest/build --config Debug --target app -j 18 

Версия MSBuild 17.9.5+33de0b227 для .NET Framework

  main.cpp
D:\Desktop\cpptest\main.cpp(6,1): error C2143: синтаксическая ошибка: отсутствие ";" перед "}" [D:\Desktop\cpptest\build\app.vcxproj]

 *  The terminal process "C:\Users\ivani\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe -Command cmake --build d:/Desktop/cpptest/build --config Debug --target app -j 18" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.

And the problem matcher is able to pick up the compiler warning too:

image

[!IMPORTANT] That's why I suspect it has something to do with chcp command: [proc] Executing command: chcp which is being executed during startup (see Debug Log above)

COOLIRON2311 avatar Mar 05 '24 22:03 COOLIRON2311

@COOLIRON2311 Where are you seeing this output? Is it in the output pane or the terminal?

Either way, I suspect this may actually be a bug on core VS Code, since we don't control the output of the output pane or the terminal, we only pass data to it. Could you confirm whether this happens if you use a non type: cmake build task or if you do this directly on the command-line in the VS Code terminal?

Thanks!

Quote replying just in case mentions don't work for non-collaborators.

COOLIRON2311 avatar Mar 08 '24 08:03 COOLIRON2311

@COOLIRON2311 Interesting! Thanks for the update and additional information. This sounds like it may be something with our task type, so I will add it to our backlog to investigate.

gcampbell-msft avatar Mar 11 '24 13:03 gcampbell-msft

I have the same problem, is there any temporary solution?

huyi51462 avatar Jul 18 '24 17:07 huyi51462

@huyi51462 Yes there is

COOLIRON2311 avatar Jul 18 '24 18:07 COOLIRON2311

@huyi51462 Yes there is

nop, its not work good for me. vsc could not get problem info. image image

huyi51462 avatar Jul 19 '24 16:07 huyi51462

@COOLIRON2311 , thanks for reporting this issue. Today we try to repro your issue, but we didn't repro it. No malformed characters appear. Please see the below video. For further investigation, could you please share us a video with clear repro steps? If we miss or misunderstand anything, please let us know. We are looking forward to hearing from you. Thanks. ENV: VS code: 1.91.1 CMake Tools: v1.18.43 System Language: Russian VS Code display language: English 072601

Evelyn-001 avatar Jul 26 '24 09:07 Evelyn-001

@Evelyn-001 Thanks for your attention. We encountered the wrong output problem when using MSBuild as the build tool, not Ninja. I'm currently using VS Code version 1.19.1 and CMake Tools version 1.19.34, but I'm still facing the same problem. windows 11 23h2

huyi51462 avatar Aug 01 '24 08:08 huyi51462

#550 I've tried setting cmake.outputLogEncoding to a different encoding (GBK or GBK2312) but the issue remains.

huyi51462 avatar Aug 01 '24 17:08 huyi51462

Thanks for your reply. About this issue, we want to confirm the below issue with you:

  1. What is your system language and VS Code display language?
  2. When you mentioned wrong output encoding, do you mean malformed characters appeared?
  3. In this comment, there is no information for error on PROBLEM output. Is this your issue?
  4. Could you please check the below video about my repro steps? Could you please provide a demo project with clear video (contains repro steps) for further investigation? We are looking forward to hearing from you. Thanks.

ENV: VS code: 1.91.1 CMake Tools: v1.18.44 & v1.19.34 System Language: English VS Code display language: English/Russian 080201

Evelyn-001 avatar Aug 02 '24 02:08 Evelyn-001

@Evelyn-001 The display language of VS Code was set to Russian for me.

COOLIRON2311 avatar Aug 02 '24 13:08 COOLIRON2311

@Evelyn-001

  1. System language : Simplified Chinese(GBK2312) ; Vs Code language : English
  2. Yes
  3. Nope, its a separate issue. I'll show you two issues together in the video below.
  4. As you can see, when I uncheck the "Build Task" option (which is the default), MSBuild produces malformed characters in the output window,the problem window also outputs malformed characters; However, when I check this option, MSBuild print correctly in the terminal window, and there is no output in the problem window.
  5. I didn't configure task.json in the video, but I did before and the problem was the same.

ENV System : Windows 11 23h2 VS code : 1.92.0 CMake Tool : v1.18.44 & v1.19.35 System language : Simplified Chinese(GBK2312) Vs Code language : English / Simplified Chinese 动画3

huyi51462 avatar Aug 04 '24 17:08 huyi51462

@huyi51462, thanks for your reply. About the System language: Simplified Chinese (GBK2312) you mentioned, did you set a special font? could you please tell us which font you set? How do you set it up? we don't repro this issue using System language: Simplified Chinese. Does this issue repro System language: Simplified Chinese on your side? If it still reproduces, could you please share us a demo project for further investigation? We are looking forward to hearing from you. Thanks.

Evelyn-001 avatar Aug 08 '24 07:08 Evelyn-001

@Evelyn-001 I have not set any additional system language or fonts. I've reproduced the issue on both Win10 and Win11 in minimal environmentsI have only installed vscode ,VS 2022(simplified Chinese)and cmake on the system, without installing any other software. In vscode, I have only installed the C++ extension pack and cmake tools, but the problem still persists. win10 win11

huyi51462 avatar Aug 08 '24 16:08 huyi51462

Thanks for your reply. We have reproduced this issue with below ENV. Our development team will investigate this issue later and we will provide you with any updates. Thank you for your support. Env: VS code: 1.92.1 CMake Tool: v1.18.44 OS: System languag : Simplified Chinese image image

Evelyn-001 avatar Aug 13 '24 08:08 Evelyn-001

Glad to be able to provide some information, thanks for your work.

huyi51462 avatar Aug 14 '24 04:08 huyi51462

Our development team will investigate this issue later and we will provide you with any updates. Thank you for your support.

Evelyn-001 avatar Aug 19 '24 03:08 Evelyn-001

💀 "Our development team will investigate this issue later and we will provide you with any updates."

In my case, I workaround this by setting the outputLogEncoding to utf8.

"cmake.outputLogEncoding": "utf8"

rtxa avatar Oct 11 '24 23:10 rtxa

💀 "Our development team will investigate this issue later and we will provide you with any updates."

In my case, I workaround this by setting the outputLogEncoding to utf8.

"cmake.outputLogEncoding": "utf8"

Actually, I tryed this option first thing. It didn't work.It's not a settings issue.

huyi51462 avatar Oct 11 '24 23:10 huyi51462

The issue doesn't seem to present for me anymore. No idea what exactly has been patched, but now the encoding is normal.

COOLIRON2311 avatar Oct 13 '24 15:10 COOLIRON2311

@COOLIRON2311 we are very happy your issue has been resolved, thanks for help us build a better cmake tools! @huyi51462 do you still have this problem?

Amy-Li03 avatar Oct 15 '24 07:10 Amy-Li03

@Amy-Li03 no, the problem still exists

huyi51462 avatar Oct 15 '24 08:10 huyi51462

Our development team will investigate this issue later and any progress will update here. Thank you!

Amy-Li03 avatar Oct 16 '24 06:10 Amy-Li03

@huyi51462 If you manually update your setting like mentioned in #4190, does your issue get resolved?

gcampbell-msft avatar Dec 09 '24 14:12 gcampbell-msft

@gcampbell-msft Still doesn't work.

huyi51462 avatar Dec 14 '24 10:12 huyi51462

@gcampbell-msft Actually, I just reinstalled Windows 11 22H2, and I also reinstalled VS Code and Visual Studio 2022. Setting the “OutputLogEncodeing” option to GBK, UTF-8, or AUTO yields the same wrong output.

huyi51462 avatar Dec 14 '24 10:12 huyi51462

Hi @huyi51462 , after setting the “OutputLogEncodeing” option to UTF-8, you need to save firstly, and then build it, this setting will work, the messages in output window will be correct. Image

Amy-Li03 avatar Dec 18 '24 03:12 Amy-Li03

@Amy-Li03 Thank you for your demo. I've figured out the issue. It wasn't a problem with saving the configuration. I've been setting OutputLogEncoding in the user configuration. In my understanding, user configurations should override workspace configurations, so I wouldn't have to set it for each project. However, it turns out that the settings in the user configuration don't take effect, while those in the workspace do.

huyi51462 avatar Dec 18 '24 03:12 huyi51462

@huyi51462 User settings affect all VS Code instances across all workspaces; Workspace settings affect only the current project or folder you're working on. However, if there are conflicting settings, workspace settings take precedence over user settings for the current workspace.

Amy-Li03 avatar Dec 18 '24 06:12 Amy-Li03