github / github/codeql

error Unexpected C# extractor error: Unhandled literal type

未關閉
#6,874 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

When running CodeQL against a medium size c# repo, single solution, multiple DLL's on .Net, codeQL returns:
error Unexpected C# extractor error: Unhandled literal type

Below is an extract from the CodeQL log showing the error:
============

Intepreted metric query "Total lines of code in the database" (cs/summary/lines-of-code) at path C:\hostedtoolcache\windows\CodeQL\0.0.0-20210921\x64\codeql\qlpacks\codeql-csharp\Metrics\Summaries\LinesOfCode.ql.
486
Analysis produced the following diagnostic data:
487

488
| Severity | Message |
489
+----------+-------------------------------------------------------------+
490
| error | Unexpected C# extractor error: Unhandled literal type |
491
| none | (750 results for diagnostic "Successfully extracted files") |
492
Analysis produced the following metric data:
493

494
| Metric | Value |
495
+-------------------------------------+-------+
496
| Total lines of code in the database | 56198 |
497
Analysis produced the following diagnostic data:
498

499
| Severity | Message |
500
+----------+-------------------------------------------------------------+
501
| error | Unexpected C# extractor error: Unhandled literal type |
502
| none | (750 results for diagnostic "Successfully extracted files") |
503
Analysis produced the following metric data:
504

505
| Metric | Value |
506
+-------------------------------------+-------+
507
| Total lines of code in the database | 56198 |
508

509
C:\hostedtoolcache\windows\CodeQL\0.0.0-20210921\x64\codeql\codeql.exe database print-baseline D:\a\_temp\codeql_databases\csharp
510
Counted a baseline of 139483 lines of code for csharp.
511
Counted a baseline of 139483 lines of code for csharp.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。