Open sam20908 opened 3 years ago
Thank you for your suggestion. We do prompt to remove Kits that have an explicit compiler path when that path is no longer valid, but we don't store compiler paths in VS Kits, so they don't currently participate in the pruning. It would be good for us to detect when a VS Kit has been uninstalled.
Any updates on this? It's been almost a year, and this is starting to get a little annoying, especially with Clang + MSVC
Is there a way to manually remove dead entries?
Is there a way to manually remove dead entries?
You can remove dead entries by running the CMake: Edit User-Local CMake Kits
command. This will open the json file. From there, you can either search out and remove the dead Kits, or just replace the whole file with []
and rescan for Kits.
when we do [Scan for kits]
, why not auto clear the cmake-tools-kits.json
? 😋
@enjustli While I appreciate the annoyance with stale kits not being removed, we shouldn't just auto clear the cmake-tools-kits.json, because there may be manual entries that have been added that we don't want to remove forcefully, we would instead need to handle the feature request of better handling VS kits being uninstalled.
Brief Issue Summary
When VS no longer exists on the system (i.e. uninstalling them), I expected the cached kits to be removed the next time I scan for kits, but that's not the case.
Expected:
CMake Tools Log
Developer Tools Log
Platform and Versions
Other Notes/Information