Skip to content

[Regression] No error prompted after entering invalid path("${workspaceFolder}/xxx") in Include path under C/C++ Configurations UI #12660

@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("${workspaceFolder}/xxx") in Include 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 "${workspaceFolder}/xxx" in Include path.
  4. Observe the result.

Actual behavior: C/C++ Configurations UI doesn’t prompt an error but c_cpp_properties.json file prompt error
image

Expected behavior: Both C/C++ Configurations UI & c_cpp_properties.json file prompt an error
This is a regression issue; it cannot repro in C++ Extension v1.20.5
image

Configuration and Logs

LSP: (received) cpptools/didChangeCppProperties (id: 14)
LSP: (invoked) cpptools/didChangeCppProperties (id: 14)
Attempting to get defaults from C++ compiler in "compilerPath" property: 'cl.exe'
Attempting to get defaults from C compiler in "compilerPath" property: 'cl.exe'
  Unable to retrieve file system information for "c:/Users/v-ericawu/Desktop/Test/xxx". error = -1
  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: 14)
Discovering files...
  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\SHARED\
  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\WINRT\
LSP: (received) cpptools/didChangeCppProperties (id: 15)
  Processing folder (non-recursive): C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PREVIEW\VC\TOOLS\MSVC\14.42.34226\ATLMFC\INCLUDE
LSP: (invoked) cpptools/didChangeCppProperties (id: 15)
LSP: Sending response (id: 15)
  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.

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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