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
Describe the bug
When a query contains a placeholder in the query message ($@), and the results of a Variant Analysis run have a value for that placeholder which is not part of the source of a project, then the Variant Analysis Results view fails to show results.
Additionally the following is logged in the extension log:
Error when processing SARIF result: TypeError: Cannot read properties of undefined (reading 'startLine')
/** * @kind problem */import java
// Pick arbitrary element which is part of source; chose EnumType here because projects// likely don't have that many enum types// TypeString comes from the JDK and is not part of the source of the projectfromEnumTypet,TypeStringnotPartOfSourcewheret.fromSource()selectt,"message $@",notPartOfSource,notPartOfSource.getName()
Run Variant Analysis, for example on the top 10 repositories
On the Variant Analysis Results view click the triangle to expand the results
❌ Bug: No results are shown and an error is logged
Expected behavior
Results should be shown, but if the placeholder value is not part of the source, there should simply not be a link.
(Also: Maybe in general if an error while processing the SARIF result happens, the complete stack trace should be printed to the log to make debugging easier?)
The text was updated successfully, but these errors were encountered:
Thank you for reporting this. I've also been able to reproduce the missing results when one of the placeholder values is not from the source archive. I get the error Error when processing SARIF result: TypeError: Cannot read properties of undefined (reading 'startLine') when trying to expand the results.
This issue is very closely related to #2629, though perhaps not entirely the same because the results are present but just fail to display. In that issue the results that are not from the source are completely omitted.
We've got an internal issue to track this, but we'll report here when there's any progress on this.
Describe the bug
When a query contains a placeholder in the query message (
$@
), and the results of a Variant Analysis run have a value for that placeholder which is not part of the source of a project, then the Variant Analysis Results view fails to show results.Additionally the following is logged in the extension log:
Version
Extension version
VS Code version
To reproduce
❌ Bug: No results are shown and an error is logged
Expected behavior
Results should be shown, but if the placeholder value is not part of the source, there should simply not be a link.
(Also: Maybe in general if an error while processing the SARIF result happens, the complete stack trace should be printed to the log to make debugging easier?)
The text was updated successfully, but these errors were encountered: