CMakeTools on my mac machine doesn't find any kits.
When I scan for kits nothing shows up, nor do I get any error messages in the UI.
But I do find some clues in the Developer Tools console where it says the GCC and Clang binaries are "bad". But I don't understand why they are deemed as such.
I have XCode 11 installed with Command Line Tools. I was expecting CMakeTools to find the installed tools as described in the docs: https://vector-of-bool.github.io/docs/vscode-cmake-tools/kits.html
[Extension Host] [CMakeTools] 2019-10-07T19:00:15.589Z [debug] [kit] Scanning for Kits on system
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.590Z [debug] [kit] Scanning directory /Users/thomas/.rvm/gems/ruby-2.5.3/bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.591Z [debug] [kit] Scanning directory /Users/thomas/.rvm/rubies/ruby-2.5.3/bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.592Z [debug] [kit] Scanning directory /Users/thomas/.rvm/gems/ruby-2.5.3@global/bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.592Z [debug] [kit] Scanning directory /usr/local/bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.593Z [debug] [kit] Scanning directory /usr/bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.593Z [debug] [kit] Scanning directory /bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.594Z [debug] [kit] Scanning directory /usr/sbin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.595Z [debug] [kit] Scanning directory /sbin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.595Z [debug] [kit] Scanning directory /Users/thomas/.rvm/bin for compilers
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.597Z [debug] [kit] Found 0 kits in directory /Users/thomas/.rvm/gems/ruby-2.5.3/bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.599Z [debug] [kit] Found 0 kits in directory /Users/thomas/.rvm/rubies/ruby-2.5.3/bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.601Z [debug] [kit] Found 0 kits in directory /Users/thomas/.rvm/gems/ruby-2.5.3@global/bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.615Z [debug] [kit] Found 0 kits in directory /usr/local/bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.617Z [debug] [kit] Found 0 kits in directory /bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.628Z [debug] [kit] Found 0 kits in directory /usr/sbin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.631Z [debug] [kit] Found 0 kits in directory /sbin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.631Z [debug] [kit] Found 0 kits in directory /Users/thomas/.rvm/bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.641Z [debug] [kit] Testing Clang-ish binary: /usr/bin/clang
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.642Z [debug] [kit] Testing Clang-ish binary: /usr/bin/clang
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.656Z [debug] [kit] Testing GCC-ish binary: /usr/bin/gcc
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.675Z [debug] [kit] Testing GCC-ish binary: /usr/bin/llvm-gcc
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.712Z [debug] [kit] Bad GCC binary /usr/bin/llvm-gcc -v output: Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.712Z [debug] [kit] Bad GCC binary /usr/bin/gcc -v output: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
console.ts:137 [Extension Host] [CMakeTools] 2019-10-07T19:00:15.713Z [debug] [kit] Bad Clang binary /usr/bin/clang -v output: Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Available binaries in /usr/bin/:
clangclang++gccg++All binaries report back their versions when I invoke them from the terminal with -v.
/usr/bin is present in PATH.
It seems that Apple changed their version output string and the extension was checking for it. I'll fix it.
Ah. I had incidentally updated to XCode 11 right before I tried to set up my first CMakeTools project on a mac. Explains why I didn't find any other reports of similar issues.
CMake Tools 1.2.0 is available in the VS Code Marketplace or on the Releases Page
Because the publisher id has changed, VS Code does not automatically upgrade you yet. The Marketplace team will enable this in the next few days. If you want to install 1.2.0 now, please make sure you uninstall any earlier versions of CMake Tools manually to avoid any conflicts.
Thank you for the quick turn around! Version 1.2 was able to find clang 11 and I could configure the project.
(Right this moment VSCode was not able to find the ms-vscode.cmake-tools version, only the old one. But installing the .vsix from the Releases worked.`)
There were two warning messages - but that's probably unrelated?
[cms-client] Configuring using the "Unix Makefiles" CMake generator with plattform "undefined" and toolset {}
[cms-client] Configuring using the "Unix Makefiles" CMake generator with plattform "undefined" and toolset {}
There was a hiccup in the process and we had to temporarily unpublish while the Marketplace team does some work to migrate CMake Tools 1.1.3 to our publisher id so that auto-upgrade to 1.2.0 can happen. It may take a day to resolve since we're on opposite sides of the world.
Does that message happen after selecting a Kit?
I think so. I cannot reproduce it when I configure my project. (Even after deleting the previous build dir)
I moved the report about the status messages to a new issue. It seems benign, but we should investigate more.
Most helpful comment
It seems that Apple changed their version output string and the extension was checking for it. I'll fix it.