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
I seem to be having an issue running codeQLdatabase analyze it's failing to run with an Internal error. I am able to build the database successfully but running the analyze produces several errors. Not sure if this is expected behavior, a configuration error on my end, or an issue in the tool(perhaps related to this issue) Would really appreciate any help, please let me know if there are any other logs or debug steps that would be helpful.
Environment Swift 6 compiler running in v5 language mode for the main app target and all packages Xcode 16.1
Shutting down query evaluator.
Interpreting results.
CodeQL scanned 1980 out of 2765 Swift files in this invocation. Typically CodeQL is configured to analyze a single CodeQL language per invocation, so check other invocations to determine overall coverage information.
Analysis produced the following diagnostic information:
- Internal error (49 results):
* CodeQL encountered an unexpected internal error with the following message:
> Assertion failed: `keyPathType`. KeyPathExpr must have BoundGenericClassType
Some or all of the Swift analysis may have failed.
If the error persists, contact support, quoting the error message and describing what happened, or [open an issue in our open source repository][1].
[1]: https://github.com/github/codeql/issues/new?labels=bug&template=ql---general.md
* CodeQL encountered an unexpected internal error with the following message:
> Assertion failed: `keyPathType`. KeyPathExpr must have BoundGenericClassType
Some or all of the Swift analysis may have failed.
If the error persists, contact support, quoting the error message and describing what happened, or [open an issue in our open source repository][1].
[1]: https://github.com/github/codeql/issues/new?labels=bug&template=ql---general.md
* CodeQL encountered an unexpected internal error with the following message:
> Assertion failed: `keyPathType`. KeyPathExpr must have BoundGenericClassType
Some or all of the Swift analysis may have failed.
If the error persists, contact support, quoting the error message and describing what happened, or [open an issue in our open source repository][1].
[1]: https://github.com/github/codeql/issues/new?labels=bug&template=ql---general.md
* CodeQL encountered an unexpected internal error with the following message:
> Assertion failed: `keyPathType`. KeyPathExpr must have BoundGenericClassType
Some or all of the Swift analysis may have failed.
If the error persists, contact support, quoting the error message and describing what happened, or [open an issue in our open source repository][1].
[1]: https://github.com/github/codeql/issues/new?labels=bug&template=ql---general.md
This query also produced a further 44 messages that are omitted here.
Analysis produced the following metric data:
| Metric | Value |
+--------------------------------+-------+
| Number of unresolved AST nodes | 78 |
The text was updated successfully, but these errors were encountered:
👋 @JamesW-iOS Thanks for reporting this! That internal error is indeed a bug, that should be fixed in the next release.
That said, did the analyse command really fail with an exit code, or did it just print out those errors but returned with a successful exit code and produce the ./results/myApp.csv output? As far as I can tell, those errors shouldn't be fatal, although it may imply missing some results.
Description of the issue
I seem to be having an issue running
codeQL
database analyze
it's failing to run with anInternal error
. I am able to build the database successfully but running theanalyze
produces several errors. Not sure if this is expected behavior, a configuration error on my end, or an issue in the tool(perhaps related to this issue) Would really appreciate any help, please let me know if there are any other logs or debug steps that would be helpful.Environment
Swift 6 compiler running in v5 language mode for the main app target and all packages
Xcode 16.1
Building database
Command
codeql database create ./dbs/myApp --language=swift --source-root ./myApp --overwrite --command="./make.sh"
Final output
Successfully created database at /Users/jameswarren/dbs/myApp
make.sh
This seems to work as expected up to this point
analyze
codeql database analyze ./dbs/myApp --format csv --output ./results/myApp.csv
This then fails with the following error
The text was updated successfully, but these errors were encountered: