Skip to content

Quick evaluation in .qll files fails #293

Closed
@max-schaefer

Description

@max-schaefer

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:

  1. Select a JavaScript database
  2. Open the JavaScript library Expr.qll from latest master on Semmle/ql (any other .qll file should work as well)
  3. Try to quick-evaluate the predicate ExprOrType::getEnclosingStmt
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions