microsoft / vscode-cmake-tools

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

Redundant messages appear in the terminal window #3970

Closed v-frankwang closed 3 weeks ago

v-frankwang commented 3 months ago

Brief Issue Summary

ENV: CMake Tools: v1.19.35(pre-release) vscode: 1.91.1 C/C++ extension: v1.21.5

Repro steps:

  1. Create a new folder named 'Test' and open it with vscode.
  2. Create a file named CMakeLists.txt with the following content:
    cmake_minimum_required(VERSION 3.5) 
    project(Test)
    add_executable(Test main.cpp)
  3. Create a file named main.cpp with the following content:
    #include <iostream> 
           auto main() -> int { std::cout << "Helloworld" << std::endl; }
  4. Click F1 to run the “CMake: Configure" command
  5. Click the “launch the selected target in the terminal windows”.

Actual result:

Linux: image

Mac: image

CMake Tools Diagnostics

{
  "os": "linux",
  "vscodeVersion": "1.91.1",
  "cmtVersion": "1.19.35",
  "configurations": [
    {
      "folder": "/home/test/Desktop/v-frankwang/test",
      "cmakeVersion": "3.30.2",
      "configured": true,
      "generator": "Ninja",
      "usesPresets": false,
      "compilers": {
        "C": "/usr/bin/gcc",
        "CXX": "/usr/bin/g++"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Debug",
    "buildTypesSeen": [
      "Debug"
    ],
    "requests": [
      "file:///home/test/Desktop/v-frankwang/test/main.cpp"
    ],
    "responses": [
      {
        "uri": "file:///home/test/Desktop/v-frankwang/test/main.cpp",
        "configuration": {
          "includePath": [],
          "defines": [],
          "compilerPath": "/usr/bin/g++",
          "compilerArgs": [],
          "compilerFragments": [
            "-g"
          ]
        }
      }
    ],
    "partialMatches": [],
    "targetCount": 1,
    "executablesCount": 1,
    "librariesCount": 0,
    "targets": [
      {
        "name": "Test",
        "type": "EXECUTABLE"
      }
    ]
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

No response

Additional Information

No response

gcampbell-msft commented 3 weeks ago

Closing this due to lower priority.