microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.45k stars 1.53k forks source link

Duplicate message appeared in output window when delete “exe” for Compiler path on Windows #12445

Closed PhoebeTf closed 12 hours ago

PhoebeTf commented 2 months ago

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:

  1. Create a new folder named 'Test' and open it in VScode
  2. Open the command palette-> Type "C/C++: Edit Configurations(UI)" and hit enter
  3. Delete "exe" for "Compiler path"
  4. 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. Cpp_Dup

Whole process: Cpp_dupOutput

Configuration and Logs

not related

Other Extensions

No response

Additional context

No response

sean-mcmanus commented 2 weeks ago

@PhoebeTf Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.22.0

Ashley-Li commented 2 weeks ago

@sean-mcmanus Tested on C/C++ 1.22.0 (pre-release), this issue still repro, please see below test result: Verify_12445

sean-mcmanus commented 2 weeks ago

@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.

sean-mcmanus commented 12 hours ago

Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.22.3