microsoft / microsoft/vscode-cmake-tools

Scan-for-kits duplicates entries for updated kits

Open
#2,570 5 comments 6 reactions 0 assignees View on GitHub
enhancement Feature: kits
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

When a compiler/kit is updated and running "Scan for kits", CMake tools will show both the old and new version of the kit.

Here is an example showing duplicates for MSVC and for MingW
![kits](https://user-images.githubusercontent.com/1198364/170320192-1879d56f-6308-4585-9726-55f19f27f5a5.png)

### CMake Tools Diagnostics

```shell
{
"os": "win32",
"vscodeVersion": "1.67.2",
"cmtVersion": "1.10.5",
"configurations": [
{
"folder": ",
"cmakeVersion": "3.23.1",
"configured": false,
"generator": "Ninja Multi-Config",
"usesPresets": false,
"compilers": {}
}
],
"cpptoolsIntegration": {
"isReady": false,
"hasCodeModel": false,
"activeBuildType": "",
"buildTypesSeen": [],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 0,
"executablesCount": 0,
"librariesCount": 0,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": true
}
]
}
```

### Debug Log

_No response_

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified in the issue. Reproduce the problem on Windows by updating an MSVC or MinGW kit and running “Scan for kits”, then trace the kit discovery behavior; done means the scan shows only one entry for each updated kit.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.