You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS, it looks like cmake-tools does not correctly provide the C++ frameworks configuration to vscode cpp tools. An example would be developing a "hello world" using cmake and Qt installed via homebrew.
Set: "cmake.configureEnvironment": { "Qt5_DIR": "/usr/local/opt/qt5/lib/cmake" }. This step is required by homebrew and is expected (because homebrew has an opt-in approach to libraries, rather than installing them by default).
Run cmake configure
Confirm that you want cmake tools to provide configuration to Intellisense
Wait for Intellisense to come up.
Include lines should not have any error.
Apparent Behavior:
I see that the include lines have errors:
CMake Tools Log
CMake Tools Log
[main] Configuring folder: bugtest
[driver] Removing /Users/rasky/Sources/bugtest/build/CMakeCache.txt
[driver] Removing /Users/rasky/Sources/bugtest/build/CMakeFiles
[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/rasky/Sources/bugtest -B/Users/rasky/Sources/bugtest/build -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is AppleClang 11.0.0.11000033
[cmake] -- The CXX compiler identification is AppleClang 11.0.0.11000033
[cmake] -- Check for working C compiler: /usr/bin/clang
[cmake] -- Check for working C compiler: /usr/bin/clang - works
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Check for working CXX compiler: /usr/bin/clang++
[cmake] -- Check for working CXX compiler: /usr/bin/clang++ - works
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[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/rasky/Sources/bugtest/build
CPP Logs
CPP debug Logs
Custom browse configuration received: {
"browsePath": [
"/users/rasky/sources/bugtest/build/helloworld_autogen/include",
"/usr/local/opt/qt5/lib/qtwidgets.framework",
"/usr/local/opt/qt5/lib/qtwidgets.framework/headers",
"/usr/local/opt/qt5/lib/qtgui.framework",
"/usr/local/opt/qt5/lib/qtgui.framework/headers",
"/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.15.sdk/system/library/frameworks/opengl.framework/headers",
"/usr/local/opt/qt5/lib/qtcore.framework",
"/usr/local/opt/qt5/lib/qtcore.framework/headers",
"/usr/local/opt/qt5/mkspecs/macx-clang",
"/users/rasky/sources/bugtest/build/helloworld_autogen",
"/users/rasky/sources/bugtest",
"/users/rasky/sources/bugtest/build/cmakefiles"
],
"standard": "c++17",
"compilerPath": "/usr/bin/clang++",
"compilerArgs": []
}
cpptools/didChangeCppProperties
Attempting to get defaults from C compiler in "compilerPath" property: '/usr/local/bin/gcc-10'
Compiler probe command line: "/usr/local/bin/gcc-10" -std=gnu17 -Wp,-v -E -dD -x c -m64 /dev/null
terminating child process: 94494
Code browsing service initialized
Attempting to get defaults from C++ compiler in "compilerPath" property: '/usr/local/bin/gcc-10'
Compiler probe command line: "/usr/local/bin/gcc-10" -std=gnu++14 -Wp,-v -E -dD -x c++ -m64 /dev/null
terminating child process: 94501
Custom configuration provider 'CMake Tools' registered
Custom browse configuration received: {
"browsePath": [
"/users/rasky/sources/bugtest/build/helloworld_autogen/include",
"/usr/local/opt/qt5/lib/qtwidgets.framework",
"/usr/local/opt/qt5/lib/qtwidgets.framework/headers",
"/usr/local/opt/qt5/lib/qtgui.framework",
"/usr/local/opt/qt5/lib/qtgui.framework/headers",
"/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.15.sdk/system/library/frameworks/opengl.framework/headers",
"/usr/local/opt/qt5/lib/qtcore.framework",
"/usr/local/opt/qt5/lib/qtcore.framework/headers",
"/usr/local/opt/qt5/mkspecs/macx-clang",
"/users/rasky/sources/bugtest/build/helloworld_autogen",
"/users/rasky/sources/bugtest",
"/users/rasky/sources/bugtest/build/cmakefiles"
],
"standard": "c++17",
"compilerPath": "/usr/bin/clang++",
"compilerArgs": []
}
/Users/rasky/Sources/bugtest/** is not a directory
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOBluetoothUI.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GameKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DiscRecording.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Automator.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SafariServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ExceptionHandling.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Metal.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOBluetooth.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/StoreKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GSS.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreML.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/FinderSync.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/TWAIN.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSRayIntersector.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ExternalAccessory.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/PreferencePanes.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NetFS.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaToolbox.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SyncServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ForceFeedback.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OSAKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ServiceManagement.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NaturalLanguage.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ScriptingBridge.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ColorSync.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaFrameEmbedding.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/vmnet.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DiscRecordingUI.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppleScriptKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreBluetooth.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Contacts.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/PhotosUI.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOSurface.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaLibrary.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SpriteKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMedia.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/BusinessChat.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Intents.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DirectoryService.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppleScriptObjC.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MultipeerConnectivity.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NotificationCenter.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GameController.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreTelephony.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioUnit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Social.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/FWAUserLib.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Hypervisor.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ICADevices.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudioKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/LDAP.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DVDPlayback.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ModelIO.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CalendarStore.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Collaboration.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioVideoBridging.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accounts.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IMServicePlugIn.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kerberos.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ContactsUI.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreSpotlight.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AdSupport.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/InstallerPlugins.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Vision.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/NetworkExtension.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/EventKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/QTKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/MapKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AVKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AddressBook.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreLocation.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/LatentSemanticMapping.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CFNetwork.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Photos.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GameplayKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/DiskArbitration.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/InstantMessage.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMIDI.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/InputMethodKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreData.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GLKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CryptoTokenKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/UserNotifications.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/iTunesLibrary.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/SceneKit.framework/Versions/A/Headers/ will be indexed
Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ will be indexed
Folder: /usr/local/Cellar/gcc/10.1.0/include/c++/10.1.0/ will be indexed
Folder: /usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin18/10.1.0/include/ will be indexed
Folder: /usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin18/10.1.0/include-fixed/ will be indexed
Folder: /Users/rasky/Sources/bugtest/ will be indexed
cpptools/didChangeCustomBrowseConfiguration
Attempting to get defaults from C++ compiler in "compilerPath" property: '/usr/bin/clang++'
Probing compiler for default C language standard using command line: "/usr/bin/clang++" -x c -E -dM /dev/null
Platform and Versions
Operating System: macOS 10.14.6
CMake Version: 3.17.3
VSCode Version: 1.50.1
CMake Tools Extension Version: 1.4.2
Compiler/Toolchain: Clang 11.0.0.
Other Notes/Information
On Mac, it is common to use "frameworks" as a way to bring in both include and library dependencies at the same time (this is a primer). Support for adding framework paths has been added to VSCode in microsoft/vscode-cpptools#970, by either simply listing framework paths among include paths, or adding a special option macFrameworkPath.
Unfortunately it seems that cmake tools isn't reading the framework paths from compile_commands.json (or from wherever it pulls the configuration from), and thus Intellisense is not aware of them.
This is the compile_commands.json generated by the example project:
You can see that one of the command line options provided to the compiler is -iframework /usr/local/opt/qt5/lib. Adding /usr/local/opt/qt5/lib to either the provided include paths or to the special macFrameworkPath would fix the bug.
The text was updated successfully, but these errors were encountered:
Brief Issue Summary
On macOS, it looks like cmake-tools does not correctly provide the C++ frameworks configuration to vscode cpp tools. An example would be developing a "hello world" using cmake and Qt installed via homebrew.
(Possibly duplicate of microsoft/vscode-cpptools#3323)
Expected:
brew install qt
)."cmake.configureEnvironment": { "Qt5_DIR": "/usr/local/opt/qt5/lib/cmake" }
. This step is required by homebrew and is expected (because homebrew has an opt-in approach to libraries, rather than installing them by default).Apparent Behavior:
I see that the include lines have errors:
![Schermata 2020-11-01 alle 12 40 37](https://user-images.githubusercontent.com/1014109/97801786-7d8f6900-1c3f-11eb-8b4a-ce7fadc6c2f1.png)
CMake Tools Log
CMake Tools Log
CPP Logs
CPP debug Logs
Platform and Versions
Other Notes/Information
On Mac, it is common to use "frameworks" as a way to bring in both include and library dependencies at the same time (this is a primer). Support for adding framework paths has been added to VSCode in microsoft/vscode-cpptools#970, by either simply listing framework paths among include paths, or adding a special option
macFrameworkPath
.Unfortunately it seems that cmake tools isn't reading the framework paths from
compile_commands.json
(or from wherever it pulls the configuration from), and thus Intellisense is not aware of them.This is the
compile_commands.json
generated by the example project:You can see that one of the command line options provided to the compiler is
-iframework /usr/local/opt/qt5/lib
. Adding/usr/local/opt/qt5/lib
to either the provided include paths or to the specialmacFrameworkPath
would fix the bug.The text was updated successfully, but these errors were encountered: