-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Delete Cache and Reconfigure" not working properly #3515
Comments
Hi @424778940z, could you please provide us with a sample project that reproduces your issue? It would be much easier to investigate with it, thanks! |
nothing complex, it's not about the project, it's caused by system / source pathchange
|
@424778940z Thank you for the detailed repro steps. We'll investigate the issue as soon as we have enough capacity. |
@424778940z Two members from our team attempted the repro and it didn't reproduce. If there is any other information you could provide that might help us reproduce, that would be great, otherwise, we will close the issue. |
@424778940z Could you confirm whether this is still reproducing? Specifically on the most recent pre-release CMake Tools version? Thank you! |
Confirmed it is working under linux. We could close the issue now |
unfortunately, I have to open this issue again, it seems the
|
@424778940z @gcampbell-msft Thanks for your feedback, we can reproduce the problem using the following environment and steps and we will continue to follow the issue: ENV:
Repro Steps:
Expected Result: Provide an option to delete the entire build folder, not just the two files. Actual Result: Only CMakeCache.txt/CMakeFiles have been removed. After running the 'CMake: Delete Cache and Reconfigure' command: |
@Ashley-Li Did you turn on the setting that was added? |
@gcampbell-msft Thank you for your guidance. After setting cmake.deleteBuildDirOnCleanConfigure is true, this issue has fixed. Now deleted the entire build folder, not just the two files. |
could we have a checkbox for this option in settings menu? |
Hi @424778940z Please press "Ctrl+," to open setting page, then search keywords and find "Cmake:Delete Build Dir On Clean Configure" and switch to Workspace, then select the checkbox to enable. Please see below: |
I wonder if this could have been worked around by using the CMake Tools command to do a clean rebuild? |
no cmake only cleans what built directly by it, any by product won't be deleted by clean unless you specifically config it to |
Brief Issue Summary
My use case is a bit odd, I'm swaping between few computers for work, and my project folder is synced by usb drive or network drive.
That means the abs path won't be same between computers. So when I try to build after move computer, cmake will complain some config issues caused by path chage, understandable.
However, when I select
CMake: Delete Cache and Reconfigure
, the cache is not fully cleared, cmake is still complaining something in CMakeCache.txt isn't right, unless I manually remove the build folder entirely.Make things worse, sometime it seems vscode/cmake is holding build folder open so I cannot remove it within vscode, I have to close everything then remove the folder and open everything again.
Could we have an option to force remove build folder or make the ext clear cache properly?
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: