Open Nahor opened 2 years ago
Thank you for the feature suggestion. We may not get to this immediately, but would accept a PR from the community if someone can get to this before us.
Sometimes CMake tools asks to remove missing kits. It's not quite clear when this happens. Is there an action to "Clean up" the kits? If no maybe adding such an action could be part of the solution?
We ask to remove missing kits when we detect that the compiler binaries no longer exist.
We don't currently have an action to clean up the Kits. The workaround is to run the 'Edit User-local CMake Kits" command, replace the file contents with []
and then scan for kits again. This issue is asking for us to detect the duplicates when scanning for updates and do the clean up at that point in time instead of adding a new command for it.
when click on 'scan for kits':
it would be enough to scan from an empty result set and replace whatever is the current. Or in other words, just do a 'clean all' current kits and then scan for available kits.
one or the other should suffice to have consistent results. as otherwise the cpp-cmake tools looks broken when there is a compiler update.
Hi @Raffaello , thanks for sharing your thoughts here! Our development team will investigate this issue later and any progress will update here.
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
CMake Tools Diagnostics
Debug Log
No response
Additional Information
No response