vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

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

Open PhoebeTf opened this issue 1 year ago • 3 comments

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

PhoebeTf avatar Jul 05 '24 06:07 PhoebeTf

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

sean-mcmanus avatar Aug 27 '24 19:08 sean-mcmanus

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

Ashley-Li avatar Aug 28 '24 08:08 Ashley-Li

@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 avatar Aug 28 '24 21:08 sean-mcmanus

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

sean-mcmanus avatar Sep 13 '24 17:09 sean-mcmanus