-
Notifications
You must be signed in to change notification settings - Fork 17
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
Clicking on "Clean CMake" removes "build/compile_commands.json" in C++ project #135
Comments
The Clean CMake button simply deletes the entire build directory, then re-runs CMake to recreate it. It should recreate the Is your issue that it's not recreating the |
Exactly. |
Could you provide your CMakeLists.txt file? If you've created the project using the extension, then it should contain a |
I've created with the extension. I will send you later the day. I'm not at my computer rn. |
I might be able to give some info here. Seen the same behaviour as @qubit999. Created project from extension. I realised it only appears once you have run Init projectInit project from AttachmentsCompile using CMakeCompile project using CMake Compile option from AttachmentsRun
|
This is my CMakeLists.txt:
I just noticed that it appended another non-edit block. Guys, can you fix this? I need a working VS code extension without fearing to break the build process by reconfiguring or cleaning CMake. I use this feature everytime I update my code. |
It only does this is you import a project that doesn't need to be imported (ie an existing VS Code project, that already has the DO NOT EDIT block). We should probably add an error to stop people doing this though, as it has come up a few times. You should just delete the top DO NOT EDIT block. Regarding why running CMake from the command line works but the Configure/Clean CMake commands don't work, my guess would be the relative paths in your CMakeLists.txt file. Instead of Also, I'm not sure what these lines are for, but they probably won't work as
Finally, when you say @iodar Don't just run |
This is my updated CMakeLists.txt:
|
Is this working for you now then? You didn't make any of the other suggested changes to the CMakeLists.txt, so if it's still not working then you should try making those changes first |
Hello,
is this a feature or a bug?
I have the same issue on Mac and on Windows.
The text was updated successfully, but these errors were encountered: