Duplicate message appeared in output window when delete “exe” for Compiler path on Windows
Environment
VSCode 1.90.2+ C/C++ Extension 1.21.0 pre-release)
Bug Summary and Steps to Reproduce
More info: Repro platform: Windows Repro languages: ENU and loc languages
Steps to reproduce:
- Create a new folder named 'Test' and open it in VScode
- Open the command palette-> Type "C/C++: Edit Configurations(UI)" and hit enter
- Delete "exe" for "Compiler path"
- Check the output info for "C/C++ Configuration Warnings"
Expected result: Only one message appeared
Actual result:
Duplicate message appeared:
[7/5/2024, 10:27:44 AM] Unable to resolve configuration with compilerPath "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.". Using "cl.exe" instead.
[7/5/2024, 10:27:44 AM] Unable to resolve configuration with compilerPath "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.". Using "cl.exe" instead.
Whole process:
Configuration and Logs
not related
Other Extensions
No response
Additional context
No response
@PhoebeTf Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.22.0
@sean-mcmanus Tested on C/C++ 1.22.0 (pre-release), this issue still repro, please see below test result:
@PhoebeTf Interesting, I saw it show 2 errors one time too, but then when I retried I got only 1 error. Seems like there's some random bug that causes it to still repro sometimes.
Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.22.3