microsoft / vscode-cmake-tools

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

When a compiler is upgraded, the older version of the compiler is not removed from the toolkit list. #3852

Open wzhengsen opened 5 days ago

wzhengsen commented 5 days ago

Brief Issue Summary

In my wsl2 I have installed clang 18.1.0

One day I upgraded clang to 18.1.8, but the previous version of clang (18.1.0) still exists with the toolkit list.

This doesn't materially affect how the cmake tool works, it's just a display issue.

image image

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

Yingzi1234 commented 5 days ago

@wzhengsen @gcampbell-msft Thank you for your github issue! We can reproduced it on latest version, you can get the details below. Please let us know if you have any concerns! Thank you!

ENV

  1. VSCode version: 1.90.2(user setup)
  2. CMake tools version: 1.21.0(pre-release)
  3. C/C++ version: v1.19.13(pre-release)

Repro steps:

  1. Open a sample folder(e.g., test1.zip)
  2. Click F1 to run command "CMake: select a kit"
  3. Check if the kit in the list is available

Expected result: The list should only show the currently available GCC or Clang kits

Actual result: The list shows several different versions of the GCC or Clang kit and only one option is available 3582