-
Notifications
You must be signed in to change notification settings - Fork 461
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
CMake tools should not configure the project if cache is available #984
Comments
There is a setting |
Thanks for replying. Actually I disable that setting. And what do you mean by "current session"? The session state is not saved somewhere? Because when I reopen the VScode I will need to configure the project again even I have already configured it before. |
The "current session" is when you open the folder in VS Code. If you close and reopen the folder that starts a new "session". In any case, we recommend that CMake Tools configure your project on open and will probably change the default for the setting to |
Ok. That makes sense. Is that possible that the tool can cache the current session state so that it does not need to run the configuration again when each time I open the same folder? |
We'll have to look into it. It seems like CMake should allow us to get project information if the cache file is present. It will be up to the user to ensure the cache is up to date in this case though. How long does your configure step take? |
Sounds great. My project is very big so it takes a couple of minutes to configure. |
In my case vscode 1.43.2 seem to configure always after stopping the build. Even with cmake.configureOnOpen set to true. Then after opening vscode configures the workspace once. When I build then no configuration is done. When I let the build finish not configuration is done again, but if I interrupt the build and build it again, it will unnecessarily configure the workspace again. I think that it is completely useless to run CMake configure step if there already is a CMake configuration in the directory. In this case let CMake decide whether to run configure step again or not. So letting the user decide would be great. |
CMake Tools 1.4.0 Beta is available on GitHub. Please try it out and let us know if you encounter any issues. |
This fix is available in CMake Tools #1.4.0 which has been released. |
This issue doesn't seem to be entirely resolved. I have two variants Debug vs. Release, which use two different build directories ("build/Debug" and "build/Release") and therefore caches. Even if I set "Skip over the configure process if cache is present", configure seems to always rerun upon switching between the variants. Is there currently a way to prevent this, or does this require a fix? I can confirm that in other circumstances this fix/option seems to do the right thing: If I simply stop the build and restart (without switching variants) I see the following in the output and configure is indeed skipped:
|
For this issue we prioritized getting the extension to provide IntelliSense configurations when a workspace opens and |
Hi guys.
I'm new to use CMake tools for VScode. Right now I'm developing a C++ project using the Docker and VScode remote SSH. Everything works fine except for one thing. The project is managed by CMake. So I have installed the CMake extension in VScode. When I reconnect to the remote container (like reload the VScode), the CMake tool will always configure the project first (it may think I did not configure the project before but I did!!). I believe all data is mounted through outside and can be persisted. So anyone knows how to solve this thing?
Thanks
The text was updated successfully, but these errors were encountered: