Extension does not find CodeQL databases using typical Windows paths
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript, vscode
Research direction
Start by locating the handler for the CodeQL extension's “Choose Database from Folder” action and the path validation used by its text input. Reproduce the issue on Windows with a valid path containing backslashes, then verify that the database can be selected using the copied Windows path and that existing forward-slash paths still work.
Written by the indexing model from the issue text.
Description
Describe the bug
When selecting a CodeQL database to open from a local path, the GitHub.vscode-codeql extension asks the user (via text input pop-up) to provide a path to the local database to be imported, but this only works with forward slashes. Thus, if the user copies a path from their Windows terminal and pastes that path into the text input, the extension will tell the user that the path does not exist. For example C:\ does not exist, but C:/ does.
Version
CodeQL CLI version: 2.20.0
CodeQL Extension version: 1.17.1
Visual Studio Code:
Version: 1.97.2 (user setup)
Commit: e54c774e0add60467559eb0d1e229c6452cf8447
Date: 2025-02-12T23:20:35.343Z
Electron: 32.2.7
ElectronBuildId: 10982180
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045
To reproduce
Start by using Visual Studio Code on Windows. Within the CodeQL extension in Visual Studio Code, select the "Choose Database from Folder" icon from the context menu of the "DATABASES" view. Supply any valid file (or directory) path using backslash (i.e. \) characters and observe the message about the path not existing.
Expected behavior
Expected to be able to find the database path in a Windows terminal, copy that path to clipboard, and paste that path (with back-slashes) when choosing the database folder to open.
Additional context
None
- Dominant language
- TypeScript
- Stars
- 539
- Forks
- 240
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 29
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/vscode-codeql
-
bug VSCode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/vscode-codeql#4471 · 1 comment ·
-
bug enhancement VSCode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/vscode-codeql#592 · 2 comments ·
-
enhancement VSCode
Difficulty 3/5 1-2 days Newbie friendliness 55/100
github/vscode-codeql#4432 · 1 comment ·
-
bug VSCode
Difficulty 3/5 1-2 days Newbie friendliness 52/100
github/vscode-codeql#4356 ·
-
bug VSCode
Difficulty 3/5 1-2 days Newbie friendliness 64/100
github/vscode-codeql#4339 · 1 comment ·
All issues in github/vscode-codeql
Similar issues
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Plugin stuck at "loading" on DSH 0.1.6-alpha.2 — turnTail list slot registration missing options.id Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
chrisparsons83/flexspotff#153 ·