USER HELP WANTED: Beta and documentation testing
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.
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. I did edit the kits file after the first start - since it asked. But I can't find it now to correct any issues.
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 %AppData%/CMakeTools on Windows and ~/.local/share/CMakeTools on *nix.
@LeonineKing1199, what do you need to delete the build directory for? Does Clean configure or Clean rebuild not do the trick?
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:
Error: command 'cmake.setVariant' not found
Similar error occur when trying to run any other cmake-tools command.
@LeonineKing1199, what do you need to delete the build directory for? Does Clean configure or Clean rebuild not do the trick?
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 compileCommands setting inside c_cpp_properties.json, then there will be no need to populate it, since it will pick up the correct includes from CMake. However, note that IntelliSense will kick in (hover over non-STL types will work), but code navigation is not yet hooked up to use compileCommands. I think it's best to wait until they hook up the code navigation database to also use it.
@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
Error: command 'cmake.setVariant' not found
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 "cmake.loggingLevel": "debug", but I can't see where the logs are going.
I use in the most cases this way: Menu -> help -> toggle developer Tools - > goto tab console -> rights click into messages -> Save as...
To anyone having trouble on macOS, I've found the bug and have a fix in the works for it. See #278.
@MathiasMagnus, setting loggingLevel to debug should make the debug logs appear in the regular output channel. Debug lines won't be annotated differently, but they'll be there. The devtools console has the debug logs by default with the level annotated.
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 Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException (triggered by Version attribute of Identity). Guess this might have to do with locales (since my Windows is German), but haven't seen that before with other packages. (Edit: I'm on 1.20.0-insider)