-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage ServicefixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.quick fixregressionA bug that didn't exist in a previous releaseA bug that didn't exist in a previous release
Milestone
Description
intellisense can not find 'wchar.h' on osx big sur
Brief Issue Summary
Hi!
I am using this extension to configure my CXX project. Recently I upgrade to OSX 11.2. And, it seemed the Intellisense was broken. For exmaple, it failed to find some system headers like 'wchar.h'. (However, the project can be built using the extension)
I use the following helloworld example
//main.cpp
#include <iostream>
int main()
{
std::cout << "hello" << std::endl;
return 0;
}
#CMakeLists.txt
cmake_minimum_required(VERSION 3.3)
project(hello)
add_executable(hello main.cpp)
//.vscode/setting.json
{
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"files.associations": {
"iostream": "cpp"
}
}
Expected:
system headers can be found as expected.
CMake Tools Log
CMake configure
[main] Configuring folder: hello
[proc] Executing command: /usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -H/Users/zdyang/lab/hello -B/Users/zdyang/lab/hello/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is AppleClang 12.0.0.12000032
[cmake] -- The CXX compiler identification is AppleClang 12.0.0.12000032
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Check for working C compiler: /usr/bin/clang - skipped
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: /usr/bin/clang++ - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: /Users/zdyang/lab/hello/buil
Log Diagnostics
-------- Diagnostics - 2/18/2021, 7:13:51 PM
Version: 1.2.1
Current Configuration:
{
"name": "Mac",
"includePath": [
"/usr/local/include"
],
"defines": [],
"macFrameworkPath": [],
"compilerPath": "/usr/local/bin/gcc-10",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "macos-gcc-x64",
"compilerArgs": [],
"intelliSenseModeIsExplicit": true,
"cStandardIsExplicit": true,
"cppStandardIsExplicit": true,
"compilerPathIsExplicit": true,
"configurationProvider": "ms-vscode.cmake-tools",
"browse": {
"path": [
"/usr/local/include",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
}
}
Custom configurations:
[ /Users/zdyang/lab/hello/main.cpp ]
{
"defines": [],
"standard": "c++17",
"includePath": [],
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/clang++",
"compilerArgs": [
"-g",
"-isysroot",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk"
]
}
Translation Unit Mappings:
[ /Users/zdyang/lab/hello/main.cpp ]:
/Users/zdyang/lab/hello/main.cpp
Translation Unit Configurations:
[ /Users/zdyang/lab/hello/main.cpp ]:
Process ID: 4382
Memory Usage: 93 MB
Compiler Path: /usr/bin/clang++
Includes:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
Standard Version: c++17
IntelliSense Mode: macos-clang-x64
Other Flags:
--clang
--clang_version=100000
Total Memory Usage: 93 MB
------- Workspace parsing diagnostics -------
Number of folders and files enumerated: 32748
Number of files discovered (not excluded): 30453
Platform and Versions
- Operating System: OSX 11.2
- CMake Version: cmake version 3.18.4
- VSCode Version: VS Code 1.53.2
- CMake Tools Extension Version: 1.6.0
- Compiler/Toolchain: clang++ 12
Other Notes/Information
Metadata
Metadata
Assignees
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage ServicefixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.quick fixregressionA bug that didn't exist in a previous releaseA bug that didn't exist in a previous release