microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.46k stars 449 forks source link

Having an issue with building anythyng #4101

Open NikitaWeW opened 3 days ago

NikitaWeW commented 3 days ago

Brief Issue Summary

Configuration is successful, but when I click build (target: all) in any project, it crashes almost immediately. If I configure and build in shell, everything works fine.

CMake Tools Diagnostics

{
  "os": "win32",
  "vscodeVersion": "1.93.1",
  "cmtVersion": "1.19.52",
  "configurations": [
    {
      "folder": "h:\\me\\test",
      "cmakeVersion": "3.30.1",
      "configured": true,
      "generator": "MinGW Makefiles",
      "usesPresets": false,
      "compilers": {
        "C": "C:/msys64/mingw64/bin/gcc.exe",
        "CXX": "C:/msys64/mingw64/bin/g++.exe"
      }
    },
    {
      "folder": "h:\\me\\learning-opengl",
      "cmakeVersion": "3.30.1",
      "configured": false,
      "generator": "MinGW Makefiles",
      "usesPresets": false,
      "compilers": {}
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Debug",
    "buildTypesSeen": [
      "Debug"
    ],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 1,
    "executablesCount": 1,
    "librariesCount": 0,
    "targets": [
      {
        "name": "main",
        "type": "EXECUTABLE"
      }
    ]
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": false
    },
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": false
    }
  ]
}

Debug Log

test project:

[main] Building folder: h:/me/test/build 
[main] Saving open files before configure/build
[build] Starting build
[driver] Start build all
[proc] Executing command: chcp
[proc] Executing command: C:\msys64\mingw32\bin\cmake.EXE --build h:/me/test/build --config Debug --target all -j 8 --
[proc]   with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\user\\AppData\\Roaming","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_12840_TIVZWLCFAYIWBFXM","COMPUTERNAME":"WIN-U1A2JJLJJ95","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","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\user","JAVA_HOME":"H:\\me\\jdk-22.0.1","LOCALAPPDATA":"C:\\Users\\user\\AppData\\Local","LOGONSERVER":"\\\\WIN-U1A2JJLJJ95","MOZ_PLUGIN_PATH":"C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\plugins\\","NUMBER_OF_PROCESSORS":"6","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\user\\OneDrive","OneDriveConsumer":"C:\\Users\\user\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Pro","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD","PROCESSOR_LEVEL":"21","PROCESSOR_REVISION":"0102","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\msys64\\mingw64\\bin;C:\\msys64\\mingw64\\bin;C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;C:/VulkanSDK/Bin;C:\\Windows\\system32;C:/Windows;C:\\Windows\\System32\\Wbem;C:/Windows/System32/WindowsPowerShell/v1.0/;C:\\Windows\\System32\\OpenSSH\\;C:/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/;C:\\Program Files\\dotnet\\;C:/Program Files/GitHub CLI/;C:\\Program Files\\PowerShell\\7\\;C:/Users/user/AppData/Local/Programs/Python/Launcher/;C:\\Program Files\\Git\\cmd;H:/me/jdk-22.0.1/bin;C:\\Python\\Python312\\Scripts;C:/Python/Python312;C:\\msys64\\mingw64\\bin;C:/msys64/mingw32/bin;C:\\cmake-3.30.0-rc4-windows-x86_64\\bin;C:/Program Files/ninja-build;C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;H:/me/notepad-plus-plus/PowerEditor/gcc/bin.x86_64;H:\\me\\scripts;","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\Windows","TEMP":"C:\\Users\\user\\AppData\\Local\\Temp","TMP":"C:\\Users\\user\\AppData\\Local\\Temp","USERDOMAIN":"WIN-U1A2JJLJJ95","USERDOMAIN_ROAMINGPROFILE":"WIN-U1A2JJLJJ95","USERNAME":"user","USERPROFILE":"C:\\Users\\user","VK_SDK_PATH":"C:\\VulkanSDK\\1.3.290.0","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\user\\AppData\\Roaming\\Code\\CachedData\\38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\ee27be9a-1.93.1-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"12840","VULKAN_SDK":"C:\\VulkanSDK\\1.3.290.0","windir":"C:\\Windows","CMT_MINGW_PATH":"C:\\msys64\\mingw64\\bin","MSYSTEM":"MINGW64","MSYSTEM_PREFIX":"/mingw64","NINJA_STATUS":"[%s/%t %p :: %e] ","":""}
[driver] Build completed: 00:00:00.104
[cmakefileapi-parser] Read reply folder: h:\me\test\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-6fd8f2648db90e7eece0.json","cmakeFiles-v1-d793409f11ae24afb781.json","codemodel-v2-92acd976403c4a3e0824.json","directory-.-Debug-d0094a50bb2071803777.json","index-2024-09-29T09-32-48-0286.json","target-main-Debug-316daf9bedf0a9871afa.json","toolchains-v1-4ed94a6bd37c9ff9e313.json"]
[expand] expanded ${workspaceFolder}/build
[build] Build finished with exit code -1
[cache] Reading CMake cache file h:/me/test/build/CMakeCache.txt
[cache] Parsing CMake cache string
[extension] [3065] cmake.build finished (returned -1)

in more complex project:

[main] Building folder: h:/me/learning-opengl/build 
[main] Saving open files before configure/build
[build] Starting build
[driver] Start build all
[proc] Executing command: chcp
[proc] Executing command: C:\msys64\mingw32\bin\cmake.EXE --build h:/me/learning-opengl/build --config Debug --target all -j 8 --
[proc]   with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\user\\AppData\\Roaming","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_12840_TIVZWLCFAYIWBFXM","COMPUTERNAME":"WIN-U1A2JJLJJ95","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","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\user","JAVA_HOME":"H:\\me\\jdk-22.0.1","LOCALAPPDATA":"C:\\Users\\user\\AppData\\Local","LOGONSERVER":"\\\\WIN-U1A2JJLJJ95","MOZ_PLUGIN_PATH":"C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\plugins\\","NUMBER_OF_PROCESSORS":"6","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\user\\OneDrive","OneDriveConsumer":"C:\\Users\\user\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Pro","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD","PROCESSOR_LEVEL":"21","PROCESSOR_REVISION":"0102","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\msys64\\mingw64\\bin;C:\\msys64\\mingw64\\bin;C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;C:/VulkanSDK/Bin;C:\\Windows\\system32;C:/Windows;C:\\Windows\\System32\\Wbem;C:/Windows/System32/WindowsPowerShell/v1.0/;C:\\Windows\\System32\\OpenSSH\\;C:/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/;C:\\Program Files\\dotnet\\;C:/Program Files/GitHub CLI/;C:\\Program Files\\PowerShell\\7\\;C:/Users/user/AppData/Local/Programs/Python/Launcher/;C:\\Program Files\\Git\\cmd;H:/me/jdk-22.0.1/bin;C:\\Python\\Python312\\Scripts;C:/Python/Python312;C:\\msys64\\mingw64\\bin;C:/msys64/mingw32/bin;C:\\cmake-3.30.0-rc4-windows-x86_64\\bin;C:/Program Files/ninja-build;C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;H:/me/notepad-plus-plus/PowerEditor/gcc/bin.x86_64;H:\\me\\scripts;","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\Windows","TEMP":"C:\\Users\\user\\AppData\\Local\\Temp","TMP":"C:\\Users\\user\\AppData\\Local\\Temp","USERDOMAIN":"WIN-U1A2JJLJJ95","USERDOMAIN_ROAMINGPROFILE":"WIN-U1A2JJLJJ95","USERNAME":"user","USERPROFILE":"C:\\Users\\user","VK_SDK_PATH":"C:\\VulkanSDK\\1.3.290.0","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\user\\AppData\\Roaming\\Code\\CachedData\\38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\ee27be9a-1.93.1-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"12840","VULKAN_SDK":"C:\\VulkanSDK\\1.3.290.0","windir":"C:\\Windows","CMT_MINGW_PATH":"C:\\msys64\\mingw64\\bin","MSYSTEM":"MINGW64","MSYSTEM_PREFIX":"/mingw64","NINJA_STATUS":"[%s/%t %p :: %e] ","":""}
[driver] Build completed: 00:00:00.081
[cmakefileapi-parser] Read reply folder: h:\me\learning-opengl\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-c371bc85e8d624253165.json","cmakeFiles-v1-d46c8dfb4bae3228c2ea.json","codemodel-v2-89d656d462697fe1a2d7.json","directory-.-Debug-266523dfb5e9245739be.json","directory-glad-Debug-8a3b22be61e01174ce99.json","index-2024-09-29T09-37-57-0741.json","target-glad-Debug-149f56a824d8c746ed25.json","target-imgui-Debug-8583613dd1b5c1fa9b28.json","target-main-Debug-28725f8f5bfc021d09bc.json","toolchains-v1-0aa245875f5f4dce0a2c.json"]
[expand] expanded ${workspaceFolder}/build
[build] Build finished with exit code -1
[cache] Reading CMake cache file h:/me/learning-opengl/build/CMakeCache.txt
[cache] Parsing CMake cache string
[extension] [9435] cmake.build finished (returned -1)
kuch3n commented 3 days ago

Your MSYSTEM variable is set to MINGW64 and your running cmake from mingw32 environment: [proc] Executing command: C:\msys64\mingw32\bin\cmake.EXE [...]. Does it help to set "cmake.cmakePath": "C:/msys64/mingw64/bin/cmake.exe"?

PS: Use UCRT64 environment, it has UTF-8 support :p

Amy-Li03 commented 2 days ago

Thank you @kuch3n's advice. Hi @NikitaWeW , we don't repro your issue on our side, could you please try above method to see if your problem is solved?

NikitaWeW commented 2 days ago

Your MSYSTEM variable is set to MINGW64 and your running cmake from mingw32 environment: [proc] Executing command: C:\msys64\mingw32\bin\cmake.EXE [...]. Does it help to set "cmake.cmakePath": "C:/msys64/mingw64/bin/cmake.exe"?

PS: Use UCRT64 environment, it has UTF-8 support :p

thank you, i will try this asap

NikitaWeW commented 2 days ago

Ok, true, i had mingw32 cmake for some reason. after installing 64 version i got the same issue.

NikitaWeW commented 2 days ago

Sorry for the accidental closing (missclick, oops). log:

[main] Building folder: h:/me/learning-opengl/build 
[main] Saving open files before configure/build
[build] Starting build
[driver] Start build all
[proc] Executing command: C:\msys64\mingw64\bin\cmake.exe --build h:/me/learning-opengl/build --config Debug --target all -j 8 --
[proc]   with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\user\\AppData\\Roaming","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_6664_OGUNIKOFJERLATEX","COMPUTERNAME":"WIN-U1A2JJLJJ95","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","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\user","JAVA_HOME":"H:\\me\\jdk-22.0.1","LOCALAPPDATA":"C:\\Users\\user\\AppData\\Local","LOGONSERVER":"\\\\WIN-U1A2JJLJJ95","MOZ_PLUGIN_PATH":"C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\plugins\\","NUMBER_OF_PROCESSORS":"6","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\user\\OneDrive","OneDriveConsumer":"C:\\Users\\user\\OneDrive","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Pro","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 21 Model 1 Stepping 2, AuthenticAMD","PROCESSOR_LEVEL":"21","PROCESSOR_REVISION":"0102","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\msys64\\mingw64\\bin;C:\\msys64\\mingw64\\bin;C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;C:/VulkanSDK/Bin;C:\\Windows\\system32;C:/Windows;C:\\Windows\\System32\\Wbem;C:/Windows/System32/WindowsPowerShell/v1.0/;C:\\Windows\\System32\\OpenSSH\\;C:/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/;C:\\Program Files\\dotnet\\;C:/Program Files/GitHub CLI/;C:\\Program Files\\PowerShell\\7\\;C:/Users/user/AppData/Local/Programs/Python/Launcher/;C:\\Program Files\\Git\\cmd;H:/me/jdk-22.0.1/bin;C:\\Python\\Python312\\Scripts;C:/Python/Python312;C:\\msys64\\mingw64\\bin;C:/cmake-3.30.0-rc4-windows-x86_64/bin;C:\\Program Files\\ninja-build;C:/Users/user/AppData/Local/Programs/Microsoft VS Code/bin;H:\\me\\notepad-plus-plus\\PowerEditor\\gcc\\bin.x86_64;H:/me/scripts;","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\Windows","TEMP":"C:\\Users\\user\\AppData\\Local\\Temp","TMP":"C:\\Users\\user\\AppData\\Local\\Temp","USERDOMAIN":"WIN-U1A2JJLJJ95","USERDOMAIN_ROAMINGPROFILE":"WIN-U1A2JJLJJ95","USERNAME":"user","USERPROFILE":"C:\\Users\\user","VK_SDK_PATH":"C:\\VulkanSDK\\1.3.290.0","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\user\\AppData\\Roaming\\Code\\CachedData\\38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\user\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\ee27be9a-1.93.1-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"6664","VULKAN_SDK":"C:\\VulkanSDK\\1.3.290.0","windir":"C:\\Windows","CMT_MINGW_PATH":"C:\\msys64\\mingw64\\bin","MSYSTEM":"MINGW64","MSYSTEM_PREFIX":"/mingw64","NINJA_STATUS":"[%s/%t %p :: %e] ","":""}
[driver] Build completed: 00:00:00.014
[cmakefileapi-parser] Read reply folder: h:\me\learning-opengl\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-f05f86a3fb054a0aa624.json","cmakeFiles-v1-d14419cfcae1e03a2ba3.json","codemodel-v2-8c177f1f7822cdb8fa64.json","directory-.-Debug-2b9fc3edbf5f3500fe02.json","directory-glad-Debug-8a3b22be61e01174ce99.json","index-2024-09-30T17-42-33-0900.json","target-glad-Debug-149f56a824d8c746ed25.json","target-main-Debug-af89d71d7b080ef462b1.json","toolchains-v1-0aa245875f5f4dce0a2c.json"]
[expand] expanded ${workspaceFolder}/build
[cache] Reading CMake cache file h:/me/learning-opengl/build/CMakeCache.txt
[cache] Parsing CMake cache string
[build] Build finished with exit code -1
[extension] [3089] cmake.build finished (returned -1)

diagnostic

{
  "os": "win32",
  "vscodeVersion": "1.93.1",
  "cmtVersion": "1.19.52",
  "configurations": [
    {
      "folder": "h:\\me\\learning-opengl",
      "cmakeVersion": "3.30.1",
      "configured": true,
      "generator": "MinGW Makefiles",
      "usesPresets": false,
      "compilers": {
        "C": "C:/msys64/mingw64/bin/gcc.exe",
        "CXX": "C:/msys64/mingw64/bin/g++.exe"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Debug",
    "buildTypesSeen": [
      "Debug"
    ],
    "requests": [
      "file:///h%3A/me/learning-opengl/src/main.cpp"
    ],
    "responses": [
      {
        "uri": "file:///h%3A/me/learning-opengl/src/main.cpp",
        "configuration": {
          "includePath": [
            "h:/me/gladopengl/include",
            "h:/me/learning-opengl/build/glad/include",
            "h:/me/learning-opengl/gvo/dependencies/glfw/include",
            "h:/me/learning-opengl/gvo/dependencies/c-logger/src",
            "h:/me/assimp/build/include",
            "h:/me/assimp/include",
            "h:/me/learning-opengl/gvo/dependencies/openal/include",
            "h:/me/learning-opengl/gvo/dependencies/glm/glm",
            "h:/me/learning-opengl/imgui",
            "h:/me/learning-opengl/imgui/backends"
          ],
          "defines": [],
          "compilerPath": "c:/msys64/mingw64/bin/g++.exe",
          "compilerArgs": [],
          "compilerFragments": [
            "-g -std=gnu++17"
          ]
        }
      }
    ],
    "partialMatches": [],
    "targetCount": 2,
    "executablesCount": 1,
    "librariesCount": 1,
    "targets": [
      {
        "name": "glad",
        "type": "STATIC_LIBRARY"
      },
      {
        "name": "main",
        "type": "EXECUTABLE"
      }
    ]
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": false
    }
  ]
}
kuch3n commented 1 day ago

What would help is to run the cmake command from an actual MSYS2 console (C:\msys64\mingw64.exe) and run the command /usr/bin/cmake.exe --build h:/me/learning-opengl/build --config Debug --target all -j 8 --. So we can see if it's bound to CMake Tools or to your system

NikitaWeW commented 7 hours ago
user@WIN-U1A2JJLJJ95 MSYS ~
$ /usr/bin/cmake.exe --build h:/me/learning-opengl/build --config Debug --target all -j 8 --
-bash: /usr/bin/cmake.exe: No such file or directory

user@WIN-U1A2JJLJJ95 MSYS ~
$ msys64/cmake.exe --build h:/me/learning-opengl/build --config Debug --target all -j 8 --
-bash: msys64/cmake.exe: No such file or directory

user@WIN-U1A2JJLJJ95 MSYS ~
$ mingw64/cmake.exe --build h:/me/learning-opengl/build --config Debug --target all -j 8 --
-bash: mingw64/cmake.exe: No such file or directory

user@WIN-U1A2JJLJJ95 MSYS ~
$ mingw64/bin/cmake.exe --build h:/me/learning-opengl/build --config Debug --target all -j 8 --
-bash: mingw64/bin/cmake.exe: No such file or directory