Troubleshooting

SymptomLikely CauseFix
clang-tidy: cannot find ....clang-tidy missingmetis init --enable-clang-tidy
bash: pre-commit: No such file or directoryHook not installedmetis install
Hook exits immediately with no outputFile patterns don't match staged filesRun metis run --all-files to test outside hook
git commit but hook doesn't runStaged files don't match config checksCheck patterns in the [[checks]] sections of .metis.toml
CI workflow not createdgithub_actions is false in configmetis generate-gha (bypasses config)
GitLab CI not createdgitlab_ci is false in configmetis generate-gitlab (bypasses config)

Dependency Troubleshooting

SymptomCauseFix
✖ <dep> [missing version]Dependency declared without a versionAdd a version to the dep
✖ <dep> [invalid semver: x]Version is not valid semverUse e.g. 10.2.1
✖ <dep> [not installed locally]Conan/vcpkg manifest lists it but it is not available to CMakeRun conan install / vcpkg install
CMake configure fails with "FetchContent_Declare not found"CMake < 3.11Upgrade to CMake ≥ 3.20
target_link_libraries failsWrong namespaceEdit CMakeLists.txt to match library's exported target

Debug Mode

$ metis run --verbose --all-files

See the exact shell commands being executed.