简体   繁体   English

我无法在 CodeQL 中运行数据库分析

[英]I can't run database analyse in CodeQL

I can't successfully launch a database analyse command.我无法成功启动数据库分析命令。

I tried to launch it like this:我试着像这样启动它:

codeql database analyze test $HOME/codeql-home/codeql-repo/cpp/ql/examples/snippets/function_call.ql --format=csv --output=c_test.csv

I got this error:我收到此错误:

is not compatible with the QL library ../codeql-home/codeql-repo/cpp/ql/examples/snippets/function_call.ql uses.与 QL 库 ../codeql-home/codeql-repo/cpp/ql/examples/snippets/function_call.ql 使用不兼容。 The database may be too new for the QL libraries the query is using;数据库对于查询使用的 QL 库来说可能太新了; try upgrading them.尝试升级它们。

With any code repository, I got this error and with any .ql file.对于任何代码存储库,我都会收到此错误以及任何 .ql 文件。

I checked CodeQL resolve languages and CodeQL resolve qlpacks and it works.我检查了 CodeQL 解析语言和 CodeQL 解析 qlpacks 并且它有效。

Have you followed the steps in the documentation ?您是否按照文档中的步骤操作? In particular, are you using the (latest) lgtm.com branch of github/codeql ?特别是,您是否使用github/codeql的(最新) lgtm.com分支? This branch should always be compatible with the (latest) CLI release.此分支应始终与(最新)CLI 版本兼容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM