-
Notifications
You must be signed in to change notification settings - Fork 463
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
Using cmake-tools as the configurationProvider breaks IntelliSense (M1?) #1735
Comments
This persists after I update the # ...
set(cutter_headers
../include/pub/keys.h
../include/btea.h
../include/device_c.hpp
../include/device_sim.hpp
../include/device.hpp
../include/serial_port.hpp
../include/types.h
)
# from:
# add_library (cutter SHARED ${cutter_files})
# to:
add_library (cutter SHARED ${cutter_headers} ${cutter_files}) |
Thank you for opening this report. We are seeing a couple of hints in the logs that you provided and we are investigating. We will let you know as soon as we need any extra information from you, when we find a workaround that could help unblock you and of course when we have a fix for this. |
The user provided configuration named "Mac, working" uses gcc compiler and IntellisenseMode Whereas the configuration named "Mac CMAKE" uses compiler clang++ and IntellisenseMode It looks like the desired compiler and intellisenseMode is as follows:
But cmake-tools is sending these instead:
From the user provided compilers info, querying If changing the symblink of "gcc" doesn't work. Another workaround is to set IntelliSense configuartion from the C++ extension. That is remove the setting Example of intelliSense configuration without using
|
It looks like there is also an issue with the |
If it's helpful, I had some issues with the default install path for Homebrew; it changed for M1 Macs from I am using the recommended new location ( |
@citelao Could you try 1.3.0-insiders4 of vscode-cpptools and see if the issue gets resolved or partly resolved? VSIX package for macOS ARM64 is cpptools-osx-arm64.vsix |
CMake Tools 1.7.0 was released today and it contains a fix for this issue. Upgrade the extension in VSCode and let us know if you encounter any other problems. |
Thank you for following up on this! I'll validate this soon :) |
1.7.0 fixes it! Thank you! |
Hello! I'm trying to setup IntelliSense in VS Code for an old project I'm trying to contribute to.
However, IntelliSense is broken when I try to use cmake-tools as the IntelliSense provider:
VS Code fails to find all standard header files (like
#include <string>
), with errors like:and
Is this an occurrence of I see: ‘CMake Tools’ is unable to provide IntelliSense configuration …? All the hpp files should be referenced in a target.
c_cpp_properties.json
If I use
Mac, working
, IntelliSense works. If I useMac CMAKE
, I get the errors.Machine info
Extensions:
Compilers:
C++ Diagnostics
(via C/C++: Log Diagnostics)
C++ Diagnostics
Loading a CPP file
Loading a CPP file
CMake Tools Log
(empty)
Let me know if there's any other information I can give!
The text was updated successfully, but these errors were encountered: