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

custom name clang-format configuration file not found #149

Open
egendron93 opened this issue Apr 20, 2023 · 1 comment
Open

custom name clang-format configuration file not found #149

egendron93 opened this issue Apr 20, 2023 · 1 comment

Comments

@egendron93
Copy link

egendron93 commented Apr 20, 2023

When specifying the style for a clang format configuration file with a custom name in a project's root directory, the user needs to specify the absolute path otherwise the config file is not found:

"clang-format.style": "file:.custom-name-clang-format"

Error reading .custom-name-clang-format: No such file or directory

An absolute path works:

"clang-format.style": "file:/workspaces/test_project/.custom-name-clang-format"

I wasn't able to determine what folder the clang-format command is being ran from or why the file name alone does not work. clang-format should be looking in parent directories to find the config file.

The Clang-format: Executable and Clang-format: Assume Filename settings support placeholders but the Clang-format: Style setting does not. Supporting placeholders in the Clang-format: Style setting could fix this issue but there may be a more simple solution.

@PocketPi
Copy link

one op. I would also like this to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants