Skip to content

[Regression] No error prompted after entering invalid path(C:/invalid-path) in Compiler path under C/C++ Configurations UI #12661

Closed
@v-ericawu

Description

@v-ericawu

Environment

  • OS and Version: Win/Linux/macOS
  • VS Code Version: 1.92.2
  • C/C++ Extension Version: 1.22.1(pre-release)
  • If using SSH remote, specify OS of remote machine: NA

Bug Summary and Steps to Reproduce

Bug Summary: No error prompted after entering invalid path(C:/invalid-path) in Compiler path under C/C++ Configurations UI

Steps to reproduce:

  1. Create a Test folder and open with VS Code.
  2. Press F1 to open command palette and type 'C/C++: Edit Configurations (UI)'.
  3. Type C:/invalid-path in Compiler path.
  4. Observe the result.

Actual behavior:
image

Expected behavior:
This is a regression issue; it cannot repro in C++ Extension v1.21.6
image

Configuration and Logs

LSP: (received) cpptools/queryCompilerDefaults (id: 20)
LSP: (invoked) cpptools/queryCompilerDefaults (id: 20)
Querying compiler for default C++ language standard using command line: C:/invalid-path -x c++ -E -dM nul
Querying compiler for default C++ language standard using command line: C:/invalid-path -x c++ -E -dM /dev/null
Querying compiler for default C language standard using command line: C:/invalid-path -x c -E -dM nul
LSP: (received) cpptools/didChangeCppProperties (id: 21)
Querying compiler for default C language standard using command line: C:/invalid-path -x c -E -dM /dev/null
LSP: Sending response (id: 20)
LSP: (invoked) cpptools/didChangeCppProperties (id: 21)
Specified compiler was not found: C:/invalid-path
Specified compiler was not found: C:/invalid-path
  Folder: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\CPPWINRT\ will be indexed
  Folder: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\SHARED\ will be indexed
  Folder: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\UCRT\ will be indexed
  Folder: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\UM\ will be indexed
  Folder: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\WINRT\ will be indexed
  Folder: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PREVIEW\VC\TOOLS\MSVC\14.42.34226\ATLMFC\INCLUDE\* will be indexed
  Folder: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PREVIEW\VC\TOOLS\MSVC\14.42.34226\INCLUDE\* will be indexed
  Folder: C:\USERS\V-ERICAWU\DESKTOP\TEST\ will be indexed
LSP: Sending response (id: 21)
Discovering files...
  Processing folder (recursive): C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\CPPWINRT\
  Processing folder (recursive): C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\SHARED\
  Processing folder (recursive): C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\UCRT\
  Processing folder (recursive): C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\UM\
  Processing folder (recursive): C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.22621.0\WINRT\
LSP: (received) cpptools/didChangeVisibleTextEditors
LSP: (received) cpptools/didChangeVisibleTextEditors
LSP: (received) cpptools/didChangeCppProperties (id: 22)
LSP: (invoked) cpptools/didChangeVisibleTextEditors
LSP: (invoked) cpptools/didChangeCppProperties (id: 22)
LSP: Sending response (id: 22)
  Processing folder (non-recursive): C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PREVIEW\VC\TOOLS\MSVC\14.42.34226\ATLMFC\INCLUDE
  Processing folder (non-recursive): C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PREVIEW\VC\TOOLS\MSVC\14.42.34226\INCLUDE
  Processing folder (recursive): C:\USERS\V-ERICAWU\DESKTOP\TEST\
  Discovering files: 5035 file(s) processed
  0 file(s) removed from database
Done discovering files.
Populating include completion cache.
Parsing remaining files...
  Parsing: 0 files(s) processed
Done parsing remaining files.
LSP: (received) cpptools/didChangeVisibleTextEditors
LSP: (invoked) cpptools/didChangeVisibleTextEditors
LSP: (received) cpptools/didChangeVisibleTextEditors
LSP: (invoked) cpptools/didChangeVisibleTextEditors

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.regressionA bug that didn't exist in a previous release

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions