-
Notifications
You must be signed in to change notification settings - Fork 449
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
CMT not providing chosen compilerPath to cpptools #702
Comments
@DavidA2014 Your logs are not showing the CMake Tools configurations...do you see any logs that show info about a configuration provider -- after you open a .cpp file? |
@sean-mcmanus When I open the workspace containing my 'hello_world' project I choose to configure the project and then (or perhaps before) the following appears in the 'C/C++: hello_world' output window:
In the folder settings.json I have:
I have also now provided a c_cpp_properties.json file in the project folder to specify the compiler:
(I realise I shouldn't have to do that but it is the only way I can get Intellisense to use the correct compiler currently). I occasionally see a message about configuration provider but I can't trigger it reliably. Certainly doesn't happen when I open a .cpp file. |
@DavidA2014 , we are going to investigate your scenario (I'm not closing the issue) but in the mean time, please upgrade to latest CMake Tools and let us know if you still see this happening. |
Thanks. Is 1.3.1 still the latest release? |
Yes. I saw you reported the issue for 1.1.3 and didn't know you upgraded since then. |
I'm facing the same issue on an Oracle Linux 7.9 container with devtoolset-4-gcc-c++ installed. Running
|
@ss185427, can you send us the "CMake/Build" output channel text after a "Scan for kits" command? Set "cmake.loggingLevel" to "Debug" before that. Also upgrade the extension since we released 1.7.2 today. |
Thank you for the quick response. |
Unfortunately, the logging for the kits scanning feature is not very useful. We will improve it and once the change is merged in the code base we will create a vsix for you to reproduce this issue again and send us better logs. |
Manually editing the kit configuration as you mentioned is working. |
This issue is now marked as 'stale-old' due to there being no activity on it for the past 720 days. Unless the 'stale-old' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the 'stale-exempt' label. |
This issue is now closed due to there being no activity on it for the past 14 days since being marked as 'stale-old'. |
I am building an executable on Centos 7.6 using RH Developer Toolset 7. The native g++ compiler is gcc 4.8.2 but the toolset gives gcc 7.3.1. I select the toolset by setting environment variables:
CMT prompts for which kit to use:
I choose 'unspecified' and CMT correctly uses "/opt/rh/devtoolset-7/root/usr/bin/g++":
However cpp-tools uses gcc 4.8.2:
So I think that CMT is not supplying the correct compilerPath to cpptools after the kit is selected.
I know I can specify compilerPath directly to cpptools in settings.json but it would be nice if CMT did so.
The text was updated successfully, but these errors were encountered: