Skip to content
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

Nullary predicates always show "This query returned no results" #1743

Open
alexet opened this issue Nov 10, 2022 · 0 comments
Open

Nullary predicates always show "This query returned no results" #1743

alexet opened this issue Nov 10, 2022 · 0 comments
Labels
bug Something isn't working VSCode

Comments

@alexet
Copy link
Contributor

alexet commented Nov 10, 2022

Describe the bug
A nullary predicate with a result shows the "This query returned no results" message even if it has a result.
It does show "1 result" in the top left as well leading to a contradictory view of results

Version
CodeQL extension version: 1.7.5
CodeQL CLI version: 2.11.3
Platform: linux x64

To reproduce
Run:

query predicate foo() { any() }

Look at the results

Expected behavior
Something like "1 nullary result" or "1 empty result".

Additional context
I don't think this is that important in general to fix as nullary predicates are not commonly used but it is wrong.

@alexet alexet added the bug Something isn't working label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VSCode
Projects
None yet
Development

No branches or pull requests

1 participant