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
CLI version 2.0.0 together with master branch of ql says A fatal error occurred: This QL dataset is not compatible with the QL library /workspace/codeql/codeql-javascript-repo/ql/src/NodeJS/InvalidExport.ql uses. Perhaps the dataset needs to be upgraded?
Long description
Following the guidelines from getting started i have installed the CLI to /workspace/codeql/codeql-cli directory.
Now i have cloned some JS repo and build a database on it like this: ./codeql-cli/codeql database create ./dbs/test1 --language javascript --source-root ./sources/1/
This works fine.
However, the analysis fails: codeql database analyze dbs/test2 ./codeql-javascript-repo/ql/src/codeql-suites/javascript-lgtm.qls --format=csv --output=/dev/stdout which gives me the incompatibility error.
This is what the cryptic Perhaps the dataset needs to be upgraded? tries to say, but this message does admittedly sound more smug than helpful. (It's been updated to be more actually helpful in our master branch, but this has not made it into a release build yet).
Background explanation: Since the 2.0.0 release was built, the database schema we use for JavaScript analysis has changed slightly. The analysis library you check out from the Semmle/ql repo assumes the new schema, but the database-creation code in the 2.0.0 CLI produces the old one. The library comes with a script for upgrading the database to the new schema, which the CLI is capable of applying, but it doesn't dare do so spontaneously because this is a destructive operation that makes the database unusable with the old libraries, and the software cannot tell if you also have a copy of the old libraries around that you were planning to use, say, for comparative testing. So it waits to be asked explicitly to run the upgrades.
Short description
CLI version 2.0.0 together with
master
branch of ql saysA fatal error occurred: This QL dataset is not compatible with the QL library /workspace/codeql/codeql-javascript-repo/ql/src/NodeJS/InvalidExport.ql uses. Perhaps the dataset needs to be upgraded?
Long description
Following the guidelines from getting started i have installed the CLI to
/workspace/codeql/codeql-cli
directory.Now i have cloned some JS repo and build a database on it like this:
./codeql-cli/codeql database create ./dbs/test1 --language javascript --source-root ./sources/1/
This works fine.
However, the analysis fails:
codeql database analyze dbs/test2 ./codeql-javascript-repo/ql/src/codeql-suites/javascript-lgtm.qls --format=csv --output=/dev/stdout
which gives me the incompatibility error.Other info
Here is some more information on my setup
Question
Should i somehow get the test suites of another version?
The text was updated successfully, but these errors were encountered: