vscode-codeql icon indicating copy to clipboard operation
vscode-codeql copied to clipboard

Quick query uses incompatible codeql standard library.

Open rvermeulen opened this issue 9 months ago • 1 comments

Describe the bug The extension supports a range of CLI versions. When creating a quick-query, the created pack will favor the latest available pack for the language through the version specification *. However, this pack might not be compatible with the current CodeQL CLI version.

Version CodeQL extension version: 1.13.0 CodeQL CLI version: 2.14.6 Platform: darwin x64

To reproduce

  1. codeql pack download "codeql/cpp-all" this downloads 0.13.0, the latest pack as of writing.
  2. Create a quick-query using the extension.
  3. Since the CLI has version 2.14.6 this immediately triggers errors and the query cannot compile.

Expected behavior The quick-query should select a pack that is compatible with the current used CLI.

Additional context Add any other context about the problem here.

rvermeulen avatar May 07 '24 19:05 rvermeulen

This only comes up when using an older CLI version.

aeisenberg avatar May 28 '24 16:05 aeisenberg