-
Notifications
You must be signed in to change notification settings - Fork 462
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 and cpptools integration #198
Comments
There is another extension which does what you're asking for, CMake Tools Helper by @maddouri. On one hand they may have different responsibilities: CMake Tools is a language-agnostic, brings functionality of running CMake to VS Code, while Helper introduces support for particular language (C++) and integrates with particular extension (from cpptools from Microsoft). One the other hand, there are already some assumptions on cpptools and having single complete solution provides much better user experiencer than need to install 4 different extensions. |
Related discussion is going in #174. |
Ah, didn't know about CMake Tools Helper. Currently testing this. If it works, I think I'll close this issue. |
Hmm, I've been trying to get CMake Tools Helper to work correctly, and I didn't have much chance. Adding basic I think a reasonable approach would be to add a Edit: ok, that was simpler than I thought. It's mostly done, everything in the Edit 2: works fine on my bigger (and much more complex) professional project, at the exception of: the standard include paths are not explicitly specified in |
Hello, Thank you @ytimenkov for mentioning the Helper extension :)
I would like to merge the cpptools-related work of the Helper extension into CMake Tools but there are some points that have to be addressed first. You can find the current state of this effort at maddouri/vscode-cmake-tools-helper#2 (btw, I worked with cpptools because, IMHO, currently it is the most useful C++ LSP extension available... even though it's not perfect. When the clang language server extension gets more feature-rich, I will definitely try to interface it with CMake Tools) Other features, such as downloading/installing (and perhaps, in the future, compiling) CMake, might be interesting to merge as well. It could be useful to discuss these in separate issues, what do you think? (perhaps CMake Tools Helper could serve as a testing ground for experimental features that, if deemed useful by the users, might be proposed for merging into CMake Tools?) @dcourtois I will try to answer your questions here, but feel free to take the discussion to the Helper extension's repo https://github.com/maddouri/vscode-cmake-tools-helper if you have suggestions/bug reports ;)
I hope it helps! |
Hi. The only real question that I had was : does specifying a default target in the settings to use when a special target (e.g. all, install, etc) is select seems appealing to anyone reading this PR ? To specifically answer your 3 points :
And to clarify : I like when things are simple. If CMake Tool Helpers would have worked on my project, I would have been happy to use it. But as it stands, it doesn't. And doesn't tell me why (no popup, no log) And it doesn't handle "all" anyway. So if I need to spend time investigating why something doesn't work, and eventually fixing things myself, I will tend to do it on CMake Tools since that would allow me to only have 1 extension to install. |
WIP of cpptools integration here : https://github.com/dcourtois/vscode-cmake-tools/tree/feature/cpptools_integration (I will add a pull request when the last glitches are fixed. See the end of the comment) Features:
I still need to fix some corner cases (in some cases the |
Pull request ready, all last little things that were bugging me are now fixed. |
VSC now supports compilation databases. Could CMake Tools just set this according to the current config (build-directory)? |
CMake Tools 1.1 will support enhanced configuration for cpptools. I expect to release before the end of July. |
Hi there, there's been quite a lot of stuff going on in the cpptools extension recently (the official C/C++ extension, that everyone using CMake is probably using :p) and I was wondering if we could make CMake Tools and cpptools work a bit better together.
For the moment, to use intellisense, you need to create a
c_cpp_properties.json
file, and in this file you need to specify theincludePath
and thedefines
you want to use. Both things that CMake knows perfectly well. So, that would be reeeeeaaally nice if CMake Tools could have the possibility to take over this file and update it depending on the currently selected build type ! Especially on big projects like the ones I'm working on where I have something like 50+ include paths to maintain and tens of defines, changing for each build type !What do you think ? Does it seems feasible ? (as usual, I'll try to implement that as a POC, but in the meantime, wanted to share the idea)
The text was updated successfully, but these errors were encountered: