Skip to content

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

@PhoebeTf

Description

@PhoebeTf

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions