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
USER HELP WANTED: Beta and documentation testing #274
Comments
I have been trying the new version, and my main problem is that include files are still not automatically detected and added to the IntelliSense include path. There is another extension that tries to do this, CMake Toools Helper, but for me it does not work properly. It would be nice if with 1.0 this extension would include support for that. |
It fails to initialize with the error 'invalid kits' but that means I can't use the commands such as edit kits since the extension is no longer loaded. edit: was able to find the file, but the result stays the same when removing it and re-scanning for kits. |
Yeah, what @omaralvarez said. The CMake tool could easily examine the Cache and append the include paths. I have to do it manually now. One thing I've noticed is that the CMake server has no way of being shutdown or restarted. For example, if I wanna delete my build folder while the extension is running, the locking mechanism on Windows makes anything impossible so I have to close VS Code and then reopen it. Also, default initialize the build type to Debug instead of Unknown. |
@eldadroobol, good find on bad kits. I'll get a fix for that. For now, you can open up the kits json file manually to fix it. It's stored in @LeonineKing1199, what do you need to delete the build directory for? Does Also, regarding a default build type: Pull #277 should load up a default variant. |
@eldadroobol could you open a new issue for that one? I'm taking a look now but just want to keep it tracked separately. Could you include the content of your kits file that makes it do bad? What kind of errors are you seeing? |
Just published a second beta release. It should fix the issue with kits, as well as some bugfixes. |
Testing a simple hello world project using beta 2, latest vscode and latest macOS. Any attempt to configure results in the following error message:
Similar error occur when trying to run any other cmake-tools command. |
Unfortunately, not quite. Sometimes I need a full on rebuild of the cache and all relevant CMake files. A lot of times it's just easier to burn 'n' purge the build directory. |
@LeonineKing1199 and @sterin, I want to follow up, but could you each create a new issue for your specific problem and mention this issue (to generate a new link)? I want to keep this thread short and general and make sure that we're not spamming notification emails to everyone who comments. Thanks! |
@vector-of-bool made an issue (#282) |
The startup issue has indeed been resolved in beta2 btw. |
@omaralvarez If you are using Microsofts C++ extension, once you populate the |
@sterin Me too. CMake Tools 0.11.0-beta2, VS Code 1.19.1 and using MS Build Tools 15.5.2, no big brother VS installed. CMake Tools 0.10.x found MSVC alright, but this new version does not show the build environment selector. None of the new features light up. The commands show in the Command Palette, but they all throw errors. I cannot configure because of the aforementioned
neither do I see the kit selector... |
@MathiasMagnus can you provider a develop Mode log file of vscode in a new issue. |
How can I do that? I turned on |
I use in the most cases this way: |
To anyone having trouble on macOS, I've found the bug and have a fix in the works for it. See #278. @MathiasMagnus, setting |
Just pushed a beta3. Should now work on macOS, plus there are some updated docs on variable expansion for configuration options. |
And now, the fourth beta is out. It should fix a bunch of issues with using Visual Studio kits. This might be the last beta (barring any big new bugs) now that macOS, Linux, and Windows all seem to be working for the most part. |
For me the VSIX installer fails with an |
Kits approach is interesting, but for me not practicable. |
I tried out beta 4 on Windows 10 with Visual Studio 2015 & 2017 installed. It detected all the kits but then spits out two errors:
If I click the button at the bottom to select a kit, I get another error:
The CMake output window contains the following:
|
I tried overriding
After reloading the window, CMake Tools is able to initialize itself and I can click the kits button to select a different kit. EDIT: However, I got an error when trying to select a configuration. It was something rather unhelpful like "false != true". I changed |
Nothing is weird about that. Those are cross-compilers if you have them installed. amd64 is 64-bit comiler targeting 64-bit machines, x86 is the same but with 32-bits, the underscore variants have their first part indicating the compiler (host) architecture and the second part indicates the target (resulting binary) architecture. I would expect these to light up as part of normal behavior. |
I think the weird ones are the |
@LeonineKing1199 No, what @MathiasMagnus says makes sense. I do think that the kit names could be formatted/worded better to make that distinction clearer. |
CMake Tools Helper is not really required anymore, as the C/Cpp Tools can now parse the "compile_commands.json" emitted by select cmake Generators. |
Could you be more specific? Which generators are supported? Which code and cpptools version? I have lost a lot of time with this, and would like to nip it in the bud. Edit: I have finally made this work. For anyone looking for an answer to this: You need a generator that creates a compile_commands.json and then you need to specify its path in |
Just some feedback. But the thing that is really bugging me is the fact that if I switch toolkits, the generator is not. It will always pick the first entry in the With some more testing: If you want to know why I'm switching between toolkits, here is the reason: Thanks for your attention and for making CMake Tools available EDIT: |
I have similar experiences, although it's less of a hassle for me. I'm not switching between configurations, but have both Ninja and MS Build Tools installed. I always build with MSVC (not hooked up Clang up yet), and even though the default preferredGenerator for MSVC compilers are the Visual Studio generators, it keeps using Ninja, because that is at the top of the global config. I'd guess that the Kit preferences are there to override the global setup... for me it's fine using Ninja, after all it's faster than MSBuild, but it might cause aggravation to others. |
I see a different issue: trying to configure CMake always results in this error:
|
Can you create a new issue with a log output? This makes it easier to identify the problem and handle the bug fixing. Menu -> help -> toggle developer Tools - > goto tab console -> rights click into messages -> Save as ... |
Going to shameless plug here that I have an open call for contributors. Please send help! |
Hello. I've seen that CMakeTools still uses workspaceRoot variable that is deprecated in VSCode. VSCode now uses workspaceFolder. |
Hey all! After several months and lots of help, I've finally posted the beta5.Even though it's just another follow-up beta release, it's a landmark change:
With this new infrastructure in place, I feel confident that 0.11.0 is just about ready for prime-time. I'm hoping to bring the testing even further before finalizing 0.11.0, and then on to the big one-dot-zero. There's a lengthy feature backlog that I want to get started on, but I need to get 0.11.0 in the hands of users first just to make sure we're in a sane world. |
This is great news! |
Great, thanks for your effort, guys! |
@decimad, would you open a new issue for that problem? |
Been using the new build on MacOs and it is working great. The only thing that is maybe a little cumbersome is if I have LLVM installed (side-by-side XCode) via Homebrew or manually the kits configuration doesn't appear to allow you to set the LDFLAGS or CPPFLAGS to that alternate compiler. So you have to do it with CMAKE configuration args in your user settings (because it doesn't make sense to put it in your workspace/project settings since its my machine and not others). Here is an example of what Homebrew says:
I guess this could be done with a toolchain file? |
HELP WANTED
Click here for much more information, including a "What's changed"
I've been busy for a few months on a lot of things, both online and in "real life."
I've often mentioned that I've been on a large rewrite/refactor for the extension, and I'll have to admit that it's closer to the former, as a bit of functionality changed. Some additions, some removals.
But it has been far too long, so I'm officially releasing a "beta" release of the 0.11.0 release.
A lot has been changed/tweaked, and I need user feedback.
If you're feeling adventurous, please download and install the beta release and/or check out the beta documenation.
Use this ticket to provide general feedback, but please create a new issue for bugs and requests for the beta version.
No need to do anything fancy: Just install the beta and work around with your existing projects like you normally would.
Update: Fifth beta is out. The link above has been modified to point to it.
The text was updated successfully, but these errors were encountered: