You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in the comment history there, detection of the clang-format version sometimes seems to fail and as a result an old version of clang-format gets passed --Wno-error=unknown, which it does not support.
I could find the following conditions for this to happen:
The specified C_Cpp.clang_format_path points to a symlink. Replacing this path with the real path to the clang-format binary fixes the problem.
VS Code is connected remotely via SSH. The same settings work when using VS Code directly on the same machine.
Configuration and Logs
C_Cpp.clang_format_path is set to clang-format-8. It resolves to /usr/bin/clang-format-8, which is a symlink to ../lib/llvm-8/bin/clang-format.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
This is a follow-up to #10102 (comment)
As described in the comment history there, detection of the clang-format version sometimes seems to fail and as a result an old version of clang-format gets passed
--Wno-error=unknown
, which it does not support.I could find the following conditions for this to happen:
C_Cpp.clang_format_path
points to a symlink. Replacing this path with the real path to the clang-format binary fixes the problem.Configuration and Logs
C_Cpp.clang_format_path
is set toclang-format-8
. It resolves to/usr/bin/clang-format-8
, which is a symlink to../lib/llvm-8/bin/clang-format
.C/C++ Log on Debug Level:
I could not find any logging for where the version detection happens.
clang-format-8 --version
printsOther Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: