Skip to content

CodeQL CLI enter path to executable creates odd query failures #2199

@knewbury01

Description

@knewbury01

Describe the bug
CodeQL extension shows red error squiggles but is able to execute query.
This happens to me specifically when:

  1. I have some CLI version already in the User space (2.10.5) - not sure if this part is relevant.
  2. I download a bundle version of CodeQL CLI (2.12.2)
  3. I update the workspace CodeQL path from empty to the 2.12.2 path
  4. open any query that I am working on , and the query shows the red errors, with the following message, but still executes.

Screenshot 2023-03-21 at 8 02 15 PM

Additionally , reload window does make the error squiggles go away , but then the query actually becomes un-runnable, seemingly no matter what else is done.

Screenshot 2023-03-21 at 8 05 53 PM

Version
The CodeQL and VS Code version in which the bug occurs.

CodeQL version: 2.12.2
CodeQL extension version: 1.8.0

To reproduce
listed above.
sample query:

 import java

from Expr e 
select e

sample qlpack.yml:

name: testworkshop
version: 0.0.0
dependencies:
    codeql/java-all: "*"

Expected behavior
No red squiggles present. and for reload window to not mysteriously break the environment.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

VSCodebugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions