You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating a skeleton query pack using the extension it creates an example query (example.ql) and opens it automatically.
However, it directly reports compilation errors there about unresolved modules. These errors seem to be spurious though, compiling the query works fine.
This is quite problematic because creating the example query is probably the first thing new users do, and it can be quite confusing if they directly run into (spurious) errors then.
Whether this error occurs seems to depend on the state of %userprofile%/.codeql (on Windows; possibly similar on Linux).
Delete %userprofile%/.codeql (on Windows)
(to be safe verify first that it does not contain anything valuable)
Open an empty folder with VS Code
In the CodeQL tab under "Queries" click "Create one to get started", or alternatively run the command "> CodeQL: Create Query"
Select "Java" as language
Wait until the extension automatically opens the example.ql file
❌ Bug: The extension shows multiple compilation errors
Try to run the query
✔️ Compilation succeeds, as expected
Expected behavior
The extension should not show spurious compilation errors
Additional context
Besides that I really like this functionality of creating a skeleton pack; this seems to make it really easy to get started (though I had been using the extension before, so maybe a real new user might experience this differently).
The text was updated successfully, but these errors were encountered:
Thanks! It seems a similar error also occurs for the "CodeQL: Install Pack Dependencies" command; after performing the command the extension still shows spurious "Could not resolve module" compilation errors. Maybe that is the same underlying issue?
Describe the bug
When creating a skeleton query pack using the extension it creates an example query (
example.ql
) and opens it automatically.However, it directly reports compilation errors there about unresolved modules. These errors seem to be spurious though, compiling the query works fine.
This is quite problematic because creating the example query is probably the first thing new users do, and it can be quite confusing if they directly run into (spurious) errors then.
Whether this error occurs seems to depend on the state of
%userprofile%/.codeql
(on Windows; possibly similar on Linux).Version
VS Code:
To reproduce
%userprofile%/.codeql
(on Windows)(to be safe verify first that it does not contain anything valuable)
example.ql
file❌ Bug: The extension shows multiple compilation errors
✔️ Compilation succeeds, as expected
Expected behavior
The extension should not show spurious compilation errors
Additional context
Besides that I really like this functionality of creating a skeleton pack; this seems to make it really easy to get started (though I had been using the extension before, so maybe a real new user might experience this differently).
The text was updated successfully, but these errors were encountered: