microsoft / vscode-cmake-tools

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

"target_compile_definitions" not recognized by intellisense #2948

Open hz1624917200 opened 1 year ago

hz1624917200 commented 1 year ago

Brief Issue Summary

Hello, on windows (MSVC or clang-cl (GNU CLI)), intellisense failed to recognize target_compile_definitions configured in CMakeLists.txt. However, it passed the build stage with correct definitions. Those definitions are also set in CMakeCache and compile_commands.json (with ninja generator).

CMake Tools Diagnostics

{
  "os": "win32",
  "vscodeVersion": "1.74.3",
  "cmtVersion": "1.13.39",
  "configurations": [
    {
      "folder": "e:\\WorkSpace\\C\\cmake-3.25.1-tutorial-source\\Step7",
      "cmakeVersion": "3.24.1",
      "configured": true,
      "generator": "Ninja",
      "usesPresets": false,
      "compilers": {
        "C": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/Llvm/x64/bin/clang.exe",
        "CXX": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/Llvm/x64/bin/clang.exe"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Debug",
    "buildTypesSeen": [
      "Debug"
    ],
    "requests": [
      "file:///e%3A/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/tutorial.cxx",
      "file:///e%3A/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/MathFunctions/mysqrt.cxx"
    ],
    "responses": [
      {
        "uri": "file:///e%3A/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/tutorial.cxx",
        "configuration": {
          "includePath": [
            "e:/workspace/c/cmake-3.25.1-tutorial-source/step7/build",
            "e:/workspace/c/cmake-3.25.1-tutorial-source/step7/mathfunctions"
          ],
          "defines": [],
          "compilerPath": "c:/program files/microsoft visual studio/2022/professional/vc/tools/llvm/x64/bin/clang.exe",
          "compilerArgs": [],
          "compilerFragments": [
            "-g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd",
            "-Wall",
            "-Wextra",
            "-Wshadow",
            "-Wformat=2",
            "-Wunused"
          ]
        }
      },
      {
        "uri": "file:///e%3A/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/MathFunctions/mysqrt.cxx",
        "configuration": {
          "includePath": [],
          "defines": [],
          "compilerPath": "c:/program files/microsoft visual studio/2022/professional/vc/tools/llvm/x64/bin/clang.exe",
          "compilerArgs": [],
          "compilerFragments": [
            "-g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd",
            "-Wall",
            "-Wextra",
            "-Wshadow",
            "-Wformat=2",
            "-Wunused"
          ]
        }
      }
    ],
    "partialMatches": [],
    "targetCount": 30,
    "executablesCount": 1,
    "librariesCount": 1,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

[main] Configuring project: Step7 
[main] Saving open files before configure/build
[driver] Start configure 
[driver] Running pre-configure checks and steps
[driver] Using compilers in Clang (GNU CLI) for MSVC (VS Pro2022 - x64) for configure
[cmakefileapi-driver] Configuring using kit
[cmakefileapi-driver] Invoking CMake D:\Program Files (Portable)\cmake\bin\cmake.EXE with arguments ["--no-warn-unused-cli","-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE","-DCMAKE_BUILD_TYPE:STRING=Debug","-DCMAKE_C_COMPILER:FILEPATH=C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\Llvm\\x64\\bin\\clang.exe","-DCMAKE_CXX_COMPILER:FILEPATH=C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\Llvm\\x64\\bin\\clang.exe","-SE:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7","-Be:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/build","-G","Ninja"]
[proc] Executing command: "D:\Program Files (Portable)\cmake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug "-DCMAKE_C_COMPILER:FILEPATH=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\Llvm\x64\bin\clang.exe" "-DCMAKE_CXX_COMPILER:FILEPATH=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\Llvm\x64\bin\clang.exe" -SE:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7 -Be:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/build -G Ninja
[proc]   with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\hz162\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\LOCAL\\crashpad_15604_HYUDQHLMFSYFCPIG","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","COMPUTERNAME":"LAPTOP-9OJVADAK","ComSpec":"C:\\Windows\\system32\\cmd.exe","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\\hz162","LOCALAPPDATA":"C:\\Users\\hz162\\AppData\\Local","LOGONSERVER":"\\\\LAPTOP-9OJVADAK","NUMBER_OF_PROCESSORS":"16","OneDrive":"C:\\Users\\hz162\\OneDrive","OneDriveConsumer":"C:\\Users\\hz162\\OneDrive","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","Path":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22000.0\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Team Tools\\Performance Tools\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Team Tools\\Performance Tools;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22000.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\Tools\\;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Program Files\\Python311\\Scripts\\;C:\\Program Files\\Python311\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\NetSarang\\Xshell 7\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\PowerShell\\7-preview\\preview;C:\\Users\\hz162\\.cargo\\bin;C:\\Users\\hz162\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\Llvm\\x64\\bin;D:\\Program Files (Portable)\\cmake\\bin;;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\Llvm\\x64\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Pro","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD","PROCESSOR_LEVEL":"23","PROCESSOR_REVISION":"6001","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules","PUBLIC":"C:\\Users\\Public","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\Windows","TEMP":"C:\\Users\\hz162\\AppData\\Local\\Temp","TMP":"C:\\Users\\hz162\\AppData\\Local\\Temp","USERDOMAIN":"LAPTOP-9OJVADAK","USERDOMAIN_ROAMINGPROFILE":"LAPTOP-9OJVADAK","USERNAME":"Zheng Huang","USERPROFILE":"C:\\Users\\hz162","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\\Users\\hz162\\AppData\\Roaming\\Code\\CachedData\\97dec172d3256f8ca4bfb2143f3f76b503ca0534","VSCODE_CWD":"C:\\Program Files\\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\be8ced1ac001d743e02c5fc883ca8804-1.74.3-main-sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"15604","windir":"C:\\Windows","DevEnvDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\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\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22000.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22000.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22000.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22000.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22000.0\\\\cppwinrt","LIB":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22000.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22000.0\\\\um\\x64","LIBPATH":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.34.31933\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.22000.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.22000.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319","UCRTVersion":"10.0.22000.0","UniversalCRTSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","VCIDEInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\VC\\","VCINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\","VCToolsRedistDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Redist\\MSVC\\14.34.31931\\","VisualStudioVersion":"17.0","VSINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\","WindowsLibPath":"C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.22000.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.22000.0","WindowsSdkBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\","WindowsSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","WindowsSDKLibVersion":"10.0.22000.0\\","WindowsSDKVersion":"10.0.22000.0\\","VS170COMNTOOLS":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\Tools","CC":"cl.exe","CXX":"cl.exe"}
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is Clang 15.0.1 with GNU-like command-line
[cmake] -- The CXX compiler identification is Clang 15.0.1 with GNU-like command-line
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/Llvm/x64/bin/clang.exe - skipped
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/Llvm/x64/bin/clang.exe - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- Performing Test HAVE_LOG
[cmake] -- Performing Test HAVE_LOG - Success
[cmake] -- Performing Test HAVE_EXP
[cmake] -- Performing Test HAVE_EXP - Success
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: E:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/build
[cmakefileapi-parser] Read reply folder: e:\WorkSpace\C\cmake-3.25.1-tutorial-source\Step7\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-ae42962b7420c7780d27.json","cmakeFiles-v1-9a203f81d5c431e2caac.json","codemodel-v2-4c23aec12ed4f752c0f3.json","directory-.-Debug-31b2542de5bde2425699.json","directory-MathFunctions-Debug-cd2a2d66361fbc3fa7c7.json","index-2023-01-17T15-33-30-0585.json","target-Continuous-Debug-354b15c6470c9034f872.json","target-ContinuousBuild-Debug-20adf29d586708c78176.json","target-ContinuousConfigure-Debug-bf7e27f1fd079d455acc.json","target-ContinuousCoverage-Debug-876e2aae0dae44f6bdcf.json","target-ContinuousMemCheck-Debug-a37e11d729570ae99fa7.json","target-ContinuousStart-Debug-a73a7a81b1dea5705618.json","target-ContinuousSubmit-Debug-30c78e66a23245b7df75.json","target-ContinuousTest-Debug-5228029c2edc3874dddb.json","target-ContinuousUpdate-Debug-9e6841900bfbd82002bf.json","target-Experimental-Debug-bcade31bac24a053d72b.json","target-ExperimentalBuild-Debug-ec8cbcd059a6b4d7ddad.json","target-ExperimentalConfigure-Debug-6ce76f495191dd8e40da.json","target-ExperimentalCoverage-Debug-a65d903dda5ce72fb3b6.json","target-ExperimentalMemCheck-Debug-19e3e3580951b448993c.json","target-ExperimentalStart-Debug-e7a73f81126d18db15d0.json","target-ExperimentalSubmit-Debug-ce5ff76f78b44ff2195c.json","target-ExperimentalTest-Debug-3f168d8e05c1f8587a80.json","target-ExperimentalUpdate-Debug-7dfe0429cdf90fc7bf78.json","target-MathFunctions-Debug-e37ada6f0fce7fd0c162.json","target-Nightly-Debug-1f2aaab655b325420650.json","target-NightlyBuild-Debug-6ea748c41045e034f476.json","target-NightlyConfigure-Debug-4bfb02af15770e121bc8.json","target-NightlyCoverage-Debug-2f05724725ff452b968b.json","target-NightlyMemCheck-Debug-5723b480f714f36cf290.json","target-NightlyMemoryCheck-Debug-2e7ea86a8ee18836f164.json","target-NightlyStart-Debug-7b8afc0c7dbd28189392.json","target-NightlySubmit-Debug-b665f4cd21caa3f94e35.json","target-NightlyTest-Debug-0ba65742ead3d2dc4919.json","target-NightlyUpdate-Debug-7bc3b0957548911873bf.json","target-Tutorial-Debug-29770c503f944e67f08f.json","toolchains-v1-914f2430eb875f364937.json"]
[extension] [1590] cmake.configure finished (returned 0)

Additional Information

After configuring as above, intellisense still can't recognize those definitions image

and here is my CMakeCache content (part)

//Test HAVE_EXP
HAVE_EXP:INTERNAL=1
//Test HAVE_LOG
HAVE_LOG:INTERNAL=1

and in compile_commands, the flag HAVE_LOG and HAVE_EXP are also set.

{
  "directory": "E:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/build",
  "command": "C:\\PROGRA~1\\MICROS~3\\2022\\PROFES~1\\VC\\Tools\\Llvm\\x64\\bin\\clang.exe -DHAVE_EXP -DHAVE_LOG -g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -Wall -Wextra -Wshadow -Wformat=2 -Wunused -o MathFunctions\\CMakeFiles\\MathFunctions.dir\\mysqrt.cxx.obj -c E:\\WorkSpace\\C\\cmake-3.25.1-tutorial-source\\Step7\\MathFunctions\\mysqrt.cxx",
  "file": "E:\\WorkSpace\\C\\cmake-3.25.1-tutorial-source\\Step7\\MathFunctions\\mysqrt.cxx"
}

However, I didn't find any flags above in CMake Diagnostics, is there any exception occurred parsing files?

elahehrashedi commented 1 year ago

can you please share your fileApi file with us? the path to the file looks something like this: "${workspaceFolder}\build\.cmake\api\v1\reply\target-envTest-Debug-62117f3e8a65ca9b8d89.json", the file's name starts with "target"

hz1624917200 commented 1 year ago

Oh, It seems that this problem is caused by an outdated cache. I can now completely reproduce this issue:

  1. Restart VS Code, this will cause cache parsing, this info will appear in output.
    [cache] Reading CMake cache file e:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/build/CMakeCache.txt
    [cache] Parsing CMake cache string
  2. all definitions are correctly configured by now
  3. edit some definitions, then reconfigure CMake project, this will not trigger the cache update in step1

I suppose that we should update cache automatically after configure project(at least reconfigure with cache deleted).

(Please excuse me for my English, I'm not a native speaker : )


Sure, here it is.

{
    "artifacts" : 
    [
        {
            "path" : "Tutorial.exe"
        },
        {
            "path" : "Tutorial.pdb"
        }
    ],
    "backtrace" : 1,
    "backtraceGraph" : 
    {
        "commands" : 
        [
            "add_executable",
            "install",
            "target_link_libraries",
            "target_include_directories"
        ],
        "files" : 
        [
            "CMakeLists.txt"
        ],
        "nodes" : 
        [
            {
                "file" : 0
            },
            {
                "command" : 0,
                "file" : 0,
                "line" : 33,
                "parent" : 0
            },
            {
                "command" : 1,
                "file" : 0,
                "line" : 42,
                "parent" : 0
            },
            {
                "command" : 2,
                "file" : 0,
                "line" : 34,
                "parent" : 0
            },
            {
                "command" : 3,
                "file" : 0,
                "line" : 37,
                "parent" : 0
            }
        ]
    },
    "compileGroups" : 
    [
        {
            "compileCommandFragments" : 
            [
                {
                    "fragment" : "-g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd"
                },
                {
                    "backtrace" : 3,
                    "fragment" : "-Wall"
                },
                {
                    "backtrace" : 3,
                    "fragment" : "-Wextra"
                },
                {
                    "backtrace" : 3,
                    "fragment" : "-Wshadow"
                },
                {
                    "backtrace" : 3,
                    "fragment" : "-Wformat=2"
                },
                {
                    "backtrace" : 3,
                    "fragment" : "-Wunused"
                }
            ],
            "includes" : 
            [
                {
                    "backtrace" : 4,
                    "path" : "E:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/build"
                },
                {
                    "backtrace" : 3,
                    "path" : "E:/WorkSpace/C/cmake-3.25.1-tutorial-source/Step7/MathFunctions"
                }
            ],
            "language" : "CXX",
            "sourceIndexes" : 
            [
                0
            ]
        }
    ],
    "dependencies" : 
    [
        {
            "backtrace" : 3,
            "id" : "MathFunctions::@742f1924b0b2e2878db6"
        }
    ],
    "id" : "Tutorial::@6890427a1f51a3e7e1df",
    "install" : 
    {
        "destinations" : 
        [
            {
                "backtrace" : 2,
                "path" : "bin"
            }
        ],
        "prefix" : 
        {
            "path" : "C:/Program Files (x86)/Tutorial"
        }
    },
    "link" : 
    {
        "commandFragments" : 
        [
            {
                "fragment" : "-g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd",
                "role" : "flags"
            },
            {
                "fragment" : "-Xlinker /subsystem:console",
                "role" : "flags"
            },
            {
                "backtrace" : 3,
                "fragment" : "MathFunctions\\MathFunctions.lib",
                "role" : "libraries"
            },
            {
                "fragment" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -loldnames",
                "role" : "libraries"
            }
        ],
        "language" : "CXX"
    },
    "name" : "Tutorial",
    "nameOnDisk" : "Tutorial.exe",
    "paths" : 
    {
        "build" : ".",
        "source" : "."
    },
    "sourceGroups" : 
    [
        {
            "name" : "Source Files",
            "sourceIndexes" : 
            [
                0
            ]
        }
    ],
    "sources" : 
    [
        {
            "backtrace" : 1,
            "compileGroupIndex" : 0,
            "path" : "tutorial.cxx",
            "sourceGroupIndex" : 0
        }
    ],
    "type" : "EXECUTABLE"
}
hz1624917200 commented 1 year ago

@elahehrashedi Hello? Could you please update this issue's state?

github-actions[bot] commented 1 year ago

This issue is now marked as 'stale' due to there being no activity on it for the past 30 days and being labelled 'more info needed'. Unless the 'stale' label is removed or the issue is commented on, this will be closed in 7 days. If you would like to make this issue exempt from getting stale, please remove the 'more info needed' and 'stale' labels or add the 'stale-exempt' label

qarni commented 8 months ago

@hz1624917200 Could you please provide a minimal repro for us to investigate this issue? Thanks!