Correct clang-tidy and clang-format binaries not used from env #12718
Labels
Feature: Code Analysis
Related to integration with clang-tidy, cppcheck, cl.exe /analyze, etc.
Feature: Code Formatting
Language Service
more info needed
The issue report is not actionable in its current state
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
The LSP is not using the correct clang-tidy and clang-format binaries from environment. This is severe as it is using the built-in binaries. The large problem with this is e.g. what faults you get in VS Code vs running clang-tidy and clang-format in CI will differ if they are of different versions.
See this from the logs below:
The
clang-format
binary exists in the PATH:> which clang-format /usr/bin/clang-format
The same problem occurs for
clang-tidy
.According to the settings it should by default use it from the path:
Steps to reproduce:
1.Make sure to have
clang-tidy
in the path.2. Check the LSP output.
Expected behavior:
It should use the binaries from the env.
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: