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

[Bug] I don't see C++ build time at all

Open khteh opened this issue 6 months ago • 21 comments

Brief Issue Summary

Why is https://github.com/microsoft/vscode-cmake-tools/issues/3008 closed? I don't see any build time information at all in both "Terminal" and "Output" windows.

CMake Tools Diagnostics

{
  "os": "linux",
  "vscodeVersion": "1.94.2",
  "cmtVersion": "1.20.53",
  "configurations": [
    {
      "folder": "/usr/src/DataStructuresAlgorithms",
      "cmakeVersion": "3.31.6",
      "configured": true,
      "generator": "Ninja Multi-Config",
      "usesPresets": false,
      "compilers": {
        "C": "/usr/bin/gcc",
        "CXX": "/usr/bin/g++"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Debug",
    "buildTypesSeen": [
      "Debug",
      "Release"
    ],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 31,
    "executablesCount": 2,
    "librariesCount": 1,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

[proc] Executing command: /usr/bin/cmake --version
[proc] Executing command: /usr/bin/cmake -E capabilities
[kit] Successfully loaded 11 kits from /home/khteh/.local/share/CMakeTools/cmake-tools-kits.json
[variant] Loaded new set of variants
[proc] Executing command: /usr/bin/gcc -v
[main] Configuring project: DataStructuresAlgorithms 
[proc] Executing command: /usr/bin/cmake -Dgtest_build_samples:STRING=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ --no-warn-unused-cli -S/usr/src/DataStructuresAlgorithms -B/usr/src/DataStructuresAlgorithms/build -G "Ninja Multi-Config"
[cmake] /usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[cmake] -- Setting GNU options from CMakeLists.txt
[cmake] x64 architecture in use
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Setting GNU options from src/CMakeLists.txt
[cmake] -- Configuring done (0.0s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: /usr/src/DataStructuresAlgorithms/build
[proc] Executing command: /usr/bin/cmake --build /usr/src/DataStructuresAlgorithms/build --config Debug --target clean --
[proc] Executing command: /usr/bin/cmake --build /usr/src/DataStructuresAlgorithms/build --config Debug --target clean --
[proc] Executing command: /usr/bin/cmake --build /usr/src/DataStructuresAlgorithms/build --config Debug --target all --
[extension] [5752] cmake.buildDirectory started
[extension] [5752] cmake.buildDirectory finished (returned "/usr/src/DataStructuresAlgorithms/build")
[proc] Executing command: /usr/bin/cmake --build /usr/src/DataStructuresAlgorithms/build --config Debug --target clean --
[proc]   with environment: {"ADVISOR_2025_DIR":"/opt/intel/oneapi/advisor/2025.0","APM":"/opt/intel/oneapi/advisor/2025.0/perfmodels","CCL_CONFIGURATION":"cpu_gpu_dpcpp","CCL_ROOT":"/opt/intel/oneapi/ccl/2021.14","CHROME_DESKTOP":"code-url-handler.desktop","CLASSPATH":"/opt/intel/oneapi/mpi/2021.14/share/java/mpi.jar","CMAKE_PREFIX_PATH":"/opt/intel/oneapi/tbb/2022.0/env/..:/opt/intel/oneapi/pti/0.10/lib/cmake/pti:/opt/intel/oneapi/mkl/2025.0/lib/cmake:/opt/intel/oneapi/ipp/2022.0/lib/cmake/ipp:/opt/intel/oneapi/dpl/2022.7/lib/cmake/oneDPL:/opt/intel/oneapi/dnnl/2025.0/lib/cmake:/opt/intel/oneapi/dal/2025.0:/opt/intel/oneapi/compiler/2025.0","CMPLR_ROOT":"/opt/intel/oneapi/compiler/2025.0","COLORTERM":"truecolor","CPATH":"/opt/intel/oneapi/umf/0.9/include:/opt/intel/oneapi/tbb/2022.0/env/../include:/opt/intel/oneapi/pti/0.10/include:/opt/intel/oneapi/mpi/2021.14/include:/opt/intel/oneapi/mkl/2025.0/include:/opt/intel/oneapi/ippcp/2025.0/include:/opt/intel/oneapi/ipp/2022.0/include:/opt/intel/oneapi/dpl/2022.7/include:/opt/intel/oneapi/dpcpp-ct/2025.0/include:/opt/intel/oneapi/dnnl/2025.0/include:/opt/intel/oneapi/dev-utilities/2025.0/include:/opt/intel/oneapi/dal/2025.0/include:/opt/intel/oneapi/ccl/2021.14/include","DALROOT":"/opt/intel/oneapi/dal/2025.0","DAL_MAJOR_BINARY":"3","DAL_MINOR_BINARY":"0","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DEBUGINFOD_URLS":"https://debuginfod.ubuntu.com ","DERBY_HOME":"/usr/lib/jvm/java-21-oracle-x64/db","DESKTOP_SESSION":"ubuntu","DIAGUTIL_PATH":"/opt/intel/oneapi/dpcpp-ct/2025.0/etc/dpct/sys_check/sys_check.sh:/opt/intel/oneapi/compiler/2025.0/etc/compiler/sys_check/sys_check.sh","DISPLAY":":0","DNNLROOT":"/opt/intel/oneapi/dnnl/2025.0","DOTNET_BUNDLE_EXTRACT_BASE_DIR":"/home/khteh/.cache/dotnet_bundle_extract","DPL_ROOT":"/opt/intel/oneapi/dpl/2022.7","ELECTRON_NO_ATTACH_CONSOLE":"1","FI_PROVIDER_PATH":"/opt/intel/oneapi/mpi/2021.14/opt/mpi/libfabric/lib/prov:/usr/lib/x86_64-linux-gnu/libfabric","GDB_INFO":"/opt/intel/oneapi/debugger/2025.0/share/info/","GDK_BACKEND":"x11","GDMSESSION":"ubuntu","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_SETUP_DISPLAY":":1","GNOME_SHELL_SESSION_MODE":"ubuntu","GNOME_TERMINAL_SCREEN":"/org/gnome/Terminal/screen/f6c82eb2_ec05_426f_a786_d274fdd451cf","GNOME_TERMINAL_SERVICE":":1.111","GSM_SKIP_SSH_AGENT_WORKAROUND":"true","GTK_MODULES":"gail:atk-bridge","HOME":"/home/khteh","IM_CONFIG_PHASE":"1","INFOPATH":"/opt/intel/oneapi/debugger/2025.0/share/info","INTEL_PYTHONHOME":"/opt/intel/oneapi/debugger/2025.0/opt/debugger","IPPCP_TARGET_ARCH":"intel64","IPPCRYPTOROOT":"/opt/intel/oneapi/ippcp/2025.0","IPPROOT":"/opt/intel/oneapi/ipp/2022.0","IPP_TARGET_ARCH":"intel64","I_MPI_ROOT":"/opt/intel/oneapi/mpi/2021.14","J2REDIR":"/usr/lib/jvm/jdk-21-oracle-x64","J2SDKDIR":"/usr/lib/jvm/jdk-21-oracle-x64","JAVA_HOME":"/usr/lib/jvm/jdk-21-oracle-x64","LANG":"en_US.UTF-8","LANGUAGE":"en_US:en","LC_ADDRESS":"en_SG.UTF-8","LC_IDENTIFICATION":"en_SG.UTF-8","LC_MEASUREMENT":"en_SG.UTF-8","LC_MONETARY":"en_SG.UTF-8","LC_NAME":"en_SG.UTF-8","LC_NUMERIC":"en_SG.UTF-8","LC_PAPER":"en_SG.UTF-8","LC_TELEPHONE":"en_SG.UTF-8","LC_TIME":"en_SG.UTF-8","LD_LIBRARY_PATH":"/opt/intel/oneapi/tcm/1.2/lib:/opt/intel/oneapi/umf/0.9/lib:/opt/intel/oneapi/tbb/2022.0/env/../lib/intel64/gcc4.8:/opt/intel/oneapi/pti/0.10/lib:/opt/intel/oneapi/mpi/2021.14/opt/mpi/libfabric/lib:/opt/intel/oneapi/mpi/2021.14/lib:/opt/intel/oneapi/mkl/2025.0/lib:/opt/intel/oneapi/ippcp/2025.0/lib/:/opt/intel/oneapi/ipp/2022.0/lib:/opt/intel/oneapi/dnnl/2025.0/lib:/opt/intel/oneapi/debugger/2025.0/opt/debugger/lib:/opt/intel/oneapi/dal/2025.0/lib:/opt/intel/oneapi/compiler/2025.0/opt/compiler/lib:/opt/intel/oneapi/compiler/2025.0/lib:/opt/intel/oneapi/ccl/2021.14/lib/","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LIBRARY_PATH":"/opt/intel/oneapi/tcm/1.2/lib:/opt/intel/oneapi/umf/0.9/lib:/opt/intel/oneapi/tbb/2022.0/env/../lib/intel64/gcc4.8:/opt/intel/oneapi/pti/0.10/lib:/opt/intel/oneapi/mpi/2021.14/lib:/opt/intel/oneapi/mkl/2025.0/lib:/opt/intel/oneapi/ippcp/2025.0/lib/:/opt/intel/oneapi/ipp/2022.0/lib:/opt/intel/oneapi/dnnl/2025.0/lib:/opt/intel/oneapi/dal/2025.0/lib:/opt/intel/oneapi/compiler/2025.0/lib:/opt/intel/oneapi/ccl/2021.14/lib/","LOGNAME":"khteh","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:","MANPATH":"/opt/intel/oneapi/mpi/2021.14/share/man:/opt/intel/oneapi/debugger/2025.0/share/man:/opt/intel/oneapi/compiler/2025.0/share/man:","MEMORY_PRESSURE_WATCH":"/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/[email protected]/memory.pressure","MEMORY_PRESSURE_WRITE":"c29tZSAyMDAwMDAgMjAwMDAwMAA=","MKLROOT":"/opt/intel/oneapi/mkl/2025.0","NLSPATH":"/opt/intel/oneapi/compiler/2025.0/lib/compiler/locale/%l_%t/%N","OCL_ICD_FILENAMES":"/opt/intel/oneapi/compiler/2025.0/lib/libintelocl.so","ONEAPI_ROOT":"/opt/intel/oneapi","ORIGINAL_XDG_CURRENT_DESKTOP":"ubuntu:GNOME","PAPERSIZE":"a4","PATH":"/home/khteh/.yarn/bin:/home/khteh/.config/yarn/global/node_modules/.bin:/home/khteh/.pub-cache/bin:/home/khteh/.local/bin:/home/khteh/.pub-cache/bin:/opt/intel/oneapi/vtune/2025.0/bin64:/opt/intel/oneapi/mpi/2021.14/bin:/opt/intel/oneapi/mkl/2025.0/bin:/opt/intel/oneapi/dpcpp-ct/2025.0/bin:/opt/intel/oneapi/dev-utilities/2025.0/bin:/opt/intel/oneapi/debugger/2025.0/opt/debugger/bin:/opt/intel/oneapi/compiler/2025.0/bin:/opt/intel/oneapi/advisor/2025.0/bin64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/go:/opt/td-agent/bin:/opt/neo4j:/snap/bin:/home/khteh/.dotnet/tools:/usr/lib/jvm/jdk-21-oracle-x64/bin:/usr/lib/jvm/jdk-21-oracle/db/bin","PKG_CONFIG_PATH":"/opt/intel/oneapi/vtune/2025.0/include/pkgconfig/lib64:/opt/intel/oneapi/tbb/2022.0/env/../lib/pkgconfig:/opt/intel/oneapi/mpi/2021.14/lib/pkgconfig:/opt/intel/oneapi/mkl/2025.0/lib/pkgconfig:/opt/intel/oneapi/ippcp/2025.0/lib/pkgconfig:/opt/intel/oneapi/dpl/2022.7/lib/pkgconfig:/opt/intel/oneapi/dnnl/2025.0/lib/pkgconfig:/opt/intel/oneapi/dal/2025.0/lib/pkgconfig:/opt/intel/oneapi/compiler/2025.0/lib/pkgconfig:/opt/intel/oneapi/ccl/2021.14/lib/pkgconfig/:/opt/intel/oneapi/advisor/2025.0/include/pkgconfig/lib64:","PWD":"/usr/src/DataStructuresAlgorithms","PYTHONPATH":"/opt/intel/oneapi/advisor/2025.0/pythonapi","Pti_DIR":"/opt/intel/oneapi/pti/0.10/lib/cmake/pti","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/khteh-p17-2i:@/tmp/.ICE-unix/4391,unix/khteh-p17-2i:/tmp/.ICE-unix/4391","SETVARS_COMPLETED":"1","SHELL":"/bin/bash","SHLVL":"1","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","SYSTEMD_EXEC_PID":"4529","TBBROOT":"/opt/intel/oneapi/tbb/2022.0/env/..","TCM_ROOT":"/opt/intel/oneapi/tcm/1.2","TERM":"xterm-256color","UMF_ROOT":"/opt/intel/oneapi/umf/0.9","USER":"khteh","USERNAME":"khteh","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/khteh/.config/Code/CachedData/384ff7382de624fb94dbaf6da11977bba1ecd427","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/usr/src/DataStructuresAlgorithms","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-6ab77945-1.94-main.sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"/usr/share/code/resources/app/out/nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"120426","VTE_VERSION":"8000","VTUNE_PROFILER_2025_DIR":"/opt/intel/oneapi/vtune/2025.0","VTUNE_PROFILER_DIR":"/opt/intel/oneapi/vtune/2025.0","WAYLAND_DISPLAY":"wayland-0","XAUTHORITY":"/run/user/1000/.mutter-Xwaylandauth.JC5K62","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_CURRENT_DESKTOP":"Unity","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"ubuntu","XDG_SESSION_TYPE":"wayland","XMODIFIERS":"@im=ibus","_":"/usr/bin/code","ELECTRON_RUN_AS_NODE":"1","VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME":"/home/khteh","VSCODE_L10N_BUNDLE_LOCATION":"","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","APPLICATIONINSIGHTS_CONFIGURATION_CONTENT":"{}","NINJA_STATUS":"[%s/%t %p :: %e] "}
[proc] Executing command: /usr/bin/cmake --build /usr/src/DataStructuresAlgorithms/build --config Debug --target all --
[proc]   with environment: {"ADVISOR_2025_DIR":"/opt/intel/oneapi/advisor/2025.0","APM":"/opt/intel/oneapi/advisor/2025.0/perfmodels","CCL_CONFIGURATION":"cpu_gpu_dpcpp","CCL_ROOT":"/opt/intel/oneapi/ccl/2021.14","CHROME_DESKTOP":"code-url-handler.desktop","CLASSPATH":"/opt/intel/oneapi/mpi/2021.14/share/java/mpi.jar","CMAKE_PREFIX_PATH":"/opt/intel/oneapi/tbb/2022.0/env/..:/opt/intel/oneapi/pti/0.10/lib/cmake/pti:/opt/intel/oneapi/mkl/2025.0/lib/cmake:/opt/intel/oneapi/ipp/2022.0/lib/cmake/ipp:/opt/intel/oneapi/dpl/2022.7/lib/cmake/oneDPL:/opt/intel/oneapi/dnnl/2025.0/lib/cmake:/opt/intel/oneapi/dal/2025.0:/opt/intel/oneapi/compiler/2025.0","CMPLR_ROOT":"/opt/intel/oneapi/compiler/2025.0","COLORTERM":"truecolor","CPATH":"/opt/intel/oneapi/umf/0.9/include:/opt/intel/oneapi/tbb/2022.0/env/../include:/opt/intel/oneapi/pti/0.10/include:/opt/intel/oneapi/mpi/2021.14/include:/opt/intel/oneapi/mkl/2025.0/include:/opt/intel/oneapi/ippcp/2025.0/include:/opt/intel/oneapi/ipp/2022.0/include:/opt/intel/oneapi/dpl/2022.7/include:/opt/intel/oneapi/dpcpp-ct/2025.0/include:/opt/intel/oneapi/dnnl/2025.0/include:/opt/intel/oneapi/dev-utilities/2025.0/include:/opt/intel/oneapi/dal/2025.0/include:/opt/intel/oneapi/ccl/2021.14/include","DALROOT":"/opt/intel/oneapi/dal/2025.0","DAL_MAJOR_BINARY":"3","DAL_MINOR_BINARY":"0","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DEBUGINFOD_URLS":"https://debuginfod.ubuntu.com ","DERBY_HOME":"/usr/lib/jvm/java-21-oracle-x64/db","DESKTOP_SESSION":"ubuntu","DIAGUTIL_PATH":"/opt/intel/oneapi/dpcpp-ct/2025.0/etc/dpct/sys_check/sys_check.sh:/opt/intel/oneapi/compiler/2025.0/etc/compiler/sys_check/sys_check.sh","DISPLAY":":0","DNNLROOT":"/opt/intel/oneapi/dnnl/2025.0","DOTNET_BUNDLE_EXTRACT_BASE_DIR":"/home/khteh/.cache/dotnet_bundle_extract","DPL_ROOT":"/opt/intel/oneapi/dpl/2022.7","ELECTRON_NO_ATTACH_CONSOLE":"1","FI_PROVIDER_PATH":"/opt/intel/oneapi/mpi/2021.14/opt/mpi/libfabric/lib/prov:/usr/lib/x86_64-linux-gnu/libfabric","GDB_INFO":"/opt/intel/oneapi/debugger/2025.0/share/info/","GDK_BACKEND":"x11","GDMSESSION":"ubuntu","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_SETUP_DISPLAY":":1","GNOME_SHELL_SESSION_MODE":"ubuntu","GNOME_TERMINAL_SCREEN":"/org/gnome/Terminal/screen/f6c82eb2_ec05_426f_a786_d274fdd451cf","GNOME_TERMINAL_SERVICE":":1.111","GSM_SKIP_SSH_AGENT_WORKAROUND":"true","GTK_MODULES":"gail:atk-bridge","HOME":"/home/khteh","IM_CONFIG_PHASE":"1","INFOPATH":"/opt/intel/oneapi/debugger/2025.0/share/info","INTEL_PYTHONHOME":"/opt/intel/oneapi/debugger/2025.0/opt/debugger","IPPCP_TARGET_ARCH":"intel64","IPPCRYPTOROOT":"/opt/intel/oneapi/ippcp/2025.0","IPPROOT":"/opt/intel/oneapi/ipp/2022.0","IPP_TARGET_ARCH":"intel64","I_MPI_ROOT":"/opt/intel/oneapi/mpi/2021.14","J2REDIR":"/usr/lib/jvm/jdk-21-oracle-x64","J2SDKDIR":"/usr/lib/jvm/jdk-21-oracle-x64","JAVA_HOME":"/usr/lib/jvm/jdk-21-oracle-x64","LANG":"en_US.UTF-8","LANGUAGE":"en_US:en","LC_ADDRESS":"en_SG.UTF-8","LC_IDENTIFICATION":"en_SG.UTF-8","LC_MEASUREMENT":"en_SG.UTF-8","LC_MONETARY":"en_SG.UTF-8","LC_NAME":"en_SG.UTF-8","LC_NUMERIC":"en_SG.UTF-8","LC_PAPER":"en_SG.UTF-8","LC_TELEPHONE":"en_SG.UTF-8","LC_TIME":"en_SG.UTF-8","LD_LIBRARY_PATH":"/opt/intel/oneapi/tcm/1.2/lib:/opt/intel/oneapi/umf/0.9/lib:/opt/intel/oneapi/tbb/2022.0/env/../lib/intel64/gcc4.8:/opt/intel/oneapi/pti/0.10/lib:/opt/intel/oneapi/mpi/2021.14/opt/mpi/libfabric/lib:/opt/intel/oneapi/mpi/2021.14/lib:/opt/intel/oneapi/mkl/2025.0/lib:/opt/intel/oneapi/ippcp/2025.0/lib/:/opt/intel/oneapi/ipp/2022.0/lib:/opt/intel/oneapi/dnnl/2025.0/lib:/opt/intel/oneapi/debugger/2025.0/opt/debugger/lib:/opt/intel/oneapi/dal/2025.0/lib:/opt/intel/oneapi/compiler/2025.0/opt/compiler/lib:/opt/intel/oneapi/compiler/2025.0/lib:/opt/intel/oneapi/ccl/2021.14/lib/","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LIBRARY_PATH":"/opt/intel/oneapi/tcm/1.2/lib:/opt/intel/oneapi/umf/0.9/lib:/opt/intel/oneapi/tbb/2022.0/env/../lib/intel64/gcc4.8:/opt/intel/oneapi/pti/0.10/lib:/opt/intel/oneapi/mpi/2021.14/lib:/opt/intel/oneapi/mkl/2025.0/lib:/opt/intel/oneapi/ippcp/2025.0/lib/:/opt/intel/oneapi/ipp/2022.0/lib:/opt/intel/oneapi/dnnl/2025.0/lib:/opt/intel/oneapi/dal/2025.0/lib:/opt/intel/oneapi/compiler/2025.0/lib:/opt/intel/oneapi/ccl/2021.14/lib/","LOGNAME":"khteh","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:","MANPATH":"/opt/intel/oneapi/mpi/2021.14/share/man:/opt/intel/oneapi/debugger/2025.0/share/man:/opt/intel/oneapi/compiler/2025.0/share/man:","MEMORY_PRESSURE_WATCH":"/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/[email protected]/memory.pressure","MEMORY_PRESSURE_WRITE":"c29tZSAyMDAwMDAgMjAwMDAwMAA=","MKLROOT":"/opt/intel/oneapi/mkl/2025.0","NLSPATH":"/opt/intel/oneapi/compiler/2025.0/lib/compiler/locale/%l_%t/%N","OCL_ICD_FILENAMES":"/opt/intel/oneapi/compiler/2025.0/lib/libintelocl.so","ONEAPI_ROOT":"/opt/intel/oneapi","ORIGINAL_XDG_CURRENT_DESKTOP":"ubuntu:GNOME","PAPERSIZE":"a4","PATH":"/home/khteh/.yarn/bin:/home/khteh/.config/yarn/global/node_modules/.bin:/home/khteh/.pub-cache/bin:/home/khteh/.local/bin:/home/khteh/.pub-cache/bin:/opt/intel/oneapi/vtune/2025.0/bin64:/opt/intel/oneapi/mpi/2021.14/bin:/opt/intel/oneapi/mkl/2025.0/bin:/opt/intel/oneapi/dpcpp-ct/2025.0/bin:/opt/intel/oneapi/dev-utilities/2025.0/bin:/opt/intel/oneapi/debugger/2025.0/opt/debugger/bin:/opt/intel/oneapi/compiler/2025.0/bin:/opt/intel/oneapi/advisor/2025.0/bin64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/go:/opt/td-agent/bin:/opt/neo4j:/snap/bin:/home/khteh/.dotnet/tools:/usr/lib/jvm/jdk-21-oracle-x64/bin:/usr/lib/jvm/jdk-21-oracle/db/bin","PKG_CONFIG_PATH":"/opt/intel/oneapi/vtune/2025.0/include/pkgconfig/lib64:/opt/intel/oneapi/tbb/2022.0/env/../lib/pkgconfig:/opt/intel/oneapi/mpi/2021.14/lib/pkgconfig:/opt/intel/oneapi/mkl/2025.0/lib/pkgconfig:/opt/intel/oneapi/ippcp/2025.0/lib/pkgconfig:/opt/intel/oneapi/dpl/2022.7/lib/pkgconfig:/opt/intel/oneapi/dnnl/2025.0/lib/pkgconfig:/opt/intel/oneapi/dal/2025.0/lib/pkgconfig:/opt/intel/oneapi/compiler/2025.0/lib/pkgconfig:/opt/intel/oneapi/ccl/2021.14/lib/pkgconfig/:/opt/intel/oneapi/advisor/2025.0/include/pkgconfig/lib64:","PWD":"/usr/src/DataStructuresAlgorithms","PYTHONPATH":"/opt/intel/oneapi/advisor/2025.0/pythonapi","Pti_DIR":"/opt/intel/oneapi/pti/0.10/lib/cmake/pti","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/khteh-p17-2i:@/tmp/.ICE-unix/4391,unix/khteh-p17-2i:/tmp/.ICE-unix/4391","SETVARS_COMPLETED":"1","SHELL":"/bin/bash","SHLVL":"1","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","SYSTEMD_EXEC_PID":"4529","TBBROOT":"/opt/intel/oneapi/tbb/2022.0/env/..","TCM_ROOT":"/opt/intel/oneapi/tcm/1.2","TERM":"xterm-256color","UMF_ROOT":"/opt/intel/oneapi/umf/0.9","USER":"khteh","USERNAME":"khteh","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/khteh/.config/Code/CachedData/384ff7382de624fb94dbaf6da11977bba1ecd427","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/usr/src/DataStructuresAlgorithms","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-6ab77945-1.94-main.sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"/usr/share/code/resources/app/out/nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"120426","VTE_VERSION":"8000","VTUNE_PROFILER_2025_DIR":"/opt/intel/oneapi/vtune/2025.0","VTUNE_PROFILER_DIR":"/opt/intel/oneapi/vtune/2025.0","WAYLAND_DISPLAY":"wayland-0","XAUTHORITY":"/run/user/1000/.mutter-Xwaylandauth.JC5K62","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_CURRENT_DESKTOP":"Unity","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"ubuntu","XDG_SESSION_TYPE":"wayland","XMODIFIERS":"@im=ibus","_":"/usr/bin/code","ELECTRON_RUN_AS_NODE":"1","VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME":"/home/khteh","VSCODE_L10N_BUNDLE_LOCATION":"","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","APPLICATIONINSIGHTS_CONFIGURATION_CONTENT":"{}","NINJA_STATUS":"[%s/%t %p :: %e] "}

Additional Information

No response

khteh avatar May 16 '25 03:05 khteh

Hi @khteh Thanks for reporting issue here!

Verified this issue on CMake Tools v1.21.25(pre-release) and v1.20.53(release), the test result as below:

  1. When I run CMake: Build or CMake: Debug, the build time is displayed as shown below. Image

I have recorded a video to display the process, please correct if there is difference with yours. Image

Thanks again for the information. Could you please let us know what kind of project this is? If possible, could you share the project with us or provide a minimal reproducible example? This would greatly help us investigate the issue further and provide more accurate support.

AnsonSoh avatar May 16 '25 06:05 AnsonSoh

Which window and/or tab do you see this info?

khteh avatar May 16 '25 07:05 khteh

Hi @khteh,

I see this information in the Output window. Image

AnsonSoh avatar May 16 '25 07:05 AnsonSoh

I really don't see what you see and showed me. This is what I see in the Terminal tab:

 *  Executing task: CMake: build 

build task started....
/usr/bin/cmake --build /usr/src/DataStructuresAlgorithms/build --config Debug --target all --
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[2/2  50% :: 0.564] Linking CXX executable /usr/src/DataStructuresAlgorithms/x64/Debug/Console
[2/2 100% :: 2.026] Linking CXX executable /usr/src/DataStructuresAlgorithms/x64/Debug/DataStructuresAlgorithms.Tests
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
build finished with warning(s).
 *  Terminal will be reused by tasks, press any key to close it. 

This is all I see in the Output tab:

[cmake] /usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[cmake] -- Setting GNU options from CMakeLists.txt
[cmake] x64 architecture in use
[cmake] -- Setting GNU options from src/CMakeLists.txt

It's a C++ project and I don't use Preset configuration.

khteh avatar May 16 '25 07:05 khteh

Hi @khteh, Thanks for your respond.

Repro Steps:

  1. Open the command palette (F1 or Ctrl+Shift+P).
  2. Enter and select the command 'CMake: Quick Start'.
  3. Enter project name ‘HelloWorld’ -> ‘C++’ -> ‘Executable’ -> ‘CPack’ -> ‘Add a New Preset…’ -> ‘Custom’ -> Enter ‘MyPreset’.
  4. Open the command palette (F1 or Ctrl+Shift+P).
  5. Enter and select the command 'CMake: Debug'.

Result: The build time is shown in the Output tab. Even without using a preset configuration, the build time still appears in the output.

Could you please share your project with us or provide a minimal reproducible example? This would greatly help us investigate the issue further and provide more accurate support. Alternatively, if it's easier, you could also share the exact repro steps you followed.

AnsonSoh avatar May 16 '25 10:05 AnsonSoh

5. Enter and select the command 'CMake: Debug'.

We are talking about "Build" time. Why debug here?

I don't create a new project. It's an existing C++ project.

khteh avatar May 16 '25 11:05 khteh

@khteh In the terminal screenshot you included, the build time is there.

In the original screenshot in the original creation of the issue, the screenshot is showing the configure process and startup of the extension, it isn't showing the output of the build.

Also, the output of the build execution will either be in two places:

  1. If your setting for cmake.buildTask is disabled, it should appear in the output pane as @AnsonSoh showed.
  2. If cmake.buildTask is enabled, it will appear in the terminal view like you showed in your screenshot.

gcampbell-msft avatar May 16 '25 13:05 gcampbell-msft

I really don't see what you see and showed me. This is what I see in the Terminal tab:

 *  Executing task: CMake: build 

build task started....
/usr/bin/cmake --build /usr/src/DataStructuresAlgorithms/build --config Debug --target all --
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[2/2  50% :: 0.564] Linking CXX executable /usr/src/DataStructuresAlgorithms/x64/Debug/Console
[2/2 100% :: 2.026] Linking CXX executable /usr/src/DataStructuresAlgorithms/x64/Debug/DataStructuresAlgorithms.Tests
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
build finished with warning(s).
 *  Terminal will be reused by tasks, press any key to close it. 

This is all I see in the Output tab:

[cmake] /usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[cmake] -- Setting GNU options from CMakeLists.txt
[cmake] x64 architecture in use
[cmake] -- Setting GNU options from src/CMakeLists.txt

It's a C++ project and I don't use Preset configuration.

You mean this one? Where do you see the build time?

khteh avatar May 16 '25 14:05 khteh

In addition, in this SO post https://stackoverflow.com/questions/74212702/build-times-vscode-are-higher-that-visual-studio there is a much nicer summary of the build time:

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:24.45

khteh avatar May 16 '25 14:05 khteh

  • If your setting for cmake.buildTask is disabled, it should appear in the output pane as @AnsonSoh showed.

Disabled.

khteh avatar May 16 '25 14:05 khteh

Image

Or are you looking for a more explicit kind of output?

gcampbell-msft avatar May 16 '25 14:05 gcampbell-msft

Hi @khteh,

I see this information in the Output window. Image

Then how about this one? Which is the right one?

khteh avatar May 16 '25 14:05 khteh

@khteh Both, this is what I was referring to in this comment: https://github.com/microsoft/vscode-cmake-tools/issues/4461#issuecomment-2886768583

@AnsonSoh Had the setting disabled so that the output went to the "Output" pane

gcampbell-msft avatar May 16 '25 14:05 gcampbell-msft

Image

Or are you looking for a more explicit kind of output?

What you showed me was in the terminal tab and I have the option disabled.

khteh avatar May 16 '25 14:05 khteh

So this in Terminal tab shows it takes 110 seconds to build?

[191/191 100% :: 110.886] Linking CXX executable /usr/src/DataStructuresAlgorithms/x64/Debug/DataStructuresAlgorithms.Tests

If your setting for cmake.buildTask is disabled, it should appear in the output pane as @AnsonSoh showed.

But I have the setting disabled and I don't see anything useful at all in the Output tab.

khteh avatar May 16 '25 15:05 khteh

@khteh Could you walk me through how you're building? If it's showing up in the terminal view then somehow you must be using the task or some other build method.

gcampbell-msft avatar May 16 '25 20:05 gcampbell-msft

CTRL+SHFT+B = "Tasks: Run Build Task"

khteh avatar May 17 '25 02:05 khteh

Hi @khteh, Thanks for your respond.

Reproduced this issue on CMake Tool v1.21.27(pre-release) and v1.20.53.

Repro Steps:

  1. Open the command palette (F1 or Ctrl+Shift+P).
  2. Enter and select the command 'CMake: Quick Start'.
  3. Enter project name ‘HelloWorld’ -> ‘C++’ -> ‘Executable’ -> ‘CPack’ -> ‘Add a New Preset…’ -> ‘Custom’ -> Enter ‘MyPreset’.
  4. Open the command palette (F1 or Ctrl+Shift+P).
  5. Enter and select the command 'Tasks: Run Build Task'.
  6. Choose 'CMake: build/CMake: clean rebuild'

Result: The build time was not displayed.

Terminal window: Image

Output Window: Image

@gcampbell-msft FYI.

AnsonSoh avatar May 22 '25 06:05 AnsonSoh

Hi @khteh Thanks for reporting issue here!

Verified this issue on CMake Tools v1.21.25(pre-release) and v1.20.53(release), the test result as below:

  1. When I run CMake: Build or CMake: Debug, the build time is displayed as shown below. Image

I only see the [5/5 100% :: 1.912] but NOT the Build completed ... message in TERMINAL. Is this the standard display of build time by CMake? Why the difference in the timing between what is in the sqaure bracket [... :: 0.886] and in the Build completed ... message?

Nice to have (VS2022):

========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 1:43 pm and took 01:01.751 minutes ==========

khteh avatar May 22 '25 06:05 khteh

Noted, but I’m not sure about the difference either. Can @gcampbell-msft help clarify this?

AnsonSoh avatar May 23 '25 06:05 AnsonSoh

@AnsonSoh @khteh Okay, I see the repro here: https://github.com/microsoft/vscode-cmake-tools/issues/4461#issuecomment-2900037748, so that may be a bug that we need to investigate. For this comment, thanks for the specific repro steps, we can use this to investigate

For this comment: https://github.com/microsoft/vscode-cmake-tools/issues/4461#issuecomment-2900052752, I believe there is a known issue, though I can't find it in the issues list right now, where we know of this item because we output content upon newlines and with certain build tools this leaves us a step behind on outputting content. For this one, @khteh does it reproduce in a very simple project that we can repro and investigate with?

gcampbell-msft avatar Jun 09 '25 14:06 gcampbell-msft