-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variant Analysis Results don't show results without source location in some cases #2629
Comments
Thank you for submitting this. I agree with your deduction that it's the result being in the source archive that's the defining factor here. Taking your query that reproduces it and modifying it slightly to: import java
from EnumType t, string fromSource
where (t.fromSource() and fromSource = "yes") or (not t.fromSource() and fromSource = "no")
select t, fromSource you can clearly see the difference in results if you run this locally vs as a variant analysis. All of the results that are "not from source" will be omitted. I've opened an internal issue to look into this more and we'll report back when there's any progress. |
Describe the bug
If you use a query with
@kind problem
in the metadata (or even without@kind
, whoseselect
clause has an element as first tuple value, e.g.select element, "my message"
) and all or some of the elements in the results don't have a source location (for example because they come from an external library), then they are not shown in the Variant Analysis Results view and there is no indication that they were omitted.This differs from a run for a local database, whose result view includes these results, respectively offers to view the "raw results".
It also differs from a Variant Analysis run without
@kind ...
in the metadata and where for example a string is the first value in the result tuples (e.g.select "my message", element
), which does show the raw results.Version
Extension version
VS Code version
To reproduce
❌ Bug: No results are shown, and there is no indication and no way to show the actual results which don't have a source location
Expected behavior
Either:
Additional context
This might affect other
@kind
types as well.The text was updated successfully, but these errors were encountered: