Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'databaseFilename' display error in C/C++ Configuration UI #13239

Open
v-ericawu opened this issue Feb 6, 2025 · 1 comment
Open

'databaseFilename' display error in C/C++ Configuration UI #13239

v-ericawu opened this issue Feb 6, 2025 · 1 comment
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service
Milestone

Comments

@v-ericawu
Copy link

Environment

  • OS and Version: Windows/Linux/Mac
  • VS Code Version: 1.96.4
  • C/C++ Extension Version: 1.23.4(pre-release)
  • If using SSH remote, specify OS of remote machine: NA

Bug Summary and Steps to Reproduce

Bug Summary: 'databaseFilename' display error in C/C++ Configuration UI

Steps to reproduce:

  1. Open 'C/C++ Configuration UI', navigate to 'Browse: database filename'.
  2. Type 'C:/test.cpp' in input box.
  3. Observe the result.

Expected behavior: the C/C++ Configuration UI should not show the error

Actual behavior: “databaseFilename” in the C/C++ Configuration UI displays an error message not shown in the ‘c_cpp.properties.json’ file
Image

Configuration and Logs

/

Other Extensions

No response

Additional context

No response

@bobbrow
Copy link
Member

bobbrow commented Feb 21, 2025

Perhaps a better error should appear here. The problem seems to be caused by the fact that the extension cannot create a file for the database in the root of the drive because that requires admin permissions. The extension does not notify the user that the database creation has failed.

@bobbrow bobbrow added bug Language Service Feature: Configuration An issue related to configuring the extension or IntelliSense labels Feb 21, 2025
@bobbrow bobbrow added this to the On Deck milestone Feb 21, 2025
@bobbrow bobbrow moved this to Todo in cpptools Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service
Projects
Status: Todo
Development

No branches or pull requests

2 participants