Closed
Description
Describe the bug
Quick-evaluating an expression in a .qll
file fails with 'The selected resource is not a CodeQL query file; It should have the extension ".ql".' It works in a .ql
file.
To Reproduce
Steps to reproduce the behavior:
- Select a JavaScript database
- Open the JavaScript library
Expr.qll
from latestmaster
onSemmle/ql
(any other.qll
file should work as well) - Try to quick-evaluate the predicate
ExprOrType::getEnclosingStmt
- Get an error saying 'The selected resource is not a CodeQL query file; It should have the extension ".ql".'
The above reproduction steps use JavaScript as an example, but the same happens in other languages.
Expected behavior
The expression should be evaluated.
Environment (please complete the following information):
- OS: Linux (Ubuntu 18.04.4)
- Version: CodeQL 1.1.0
Additional context
This problem seems to be new in CodeQL 1.1.0.