diff --git a/src/source_clang.cc b/src/source_clang.cc index c05516a..1d3b150 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -190,6 +190,8 @@ void Source::ClangViewParse::soft_reparse() { std::vector Source::ClangViewParse::get_compilation_commands() { auto build=Project::Build::create(file_path); + if(build->project_path.empty()) + Info::get().print("Could not find a supported build system"); auto default_build_path=build->get_default_path(); build->update_default(); clang::CompilationDatabase db(default_build_path.string());