Enabling extension in Dev Container does not download CodeQL CLI
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 42/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- typescript, vscode
- Domaine
- devtools
Piste de recherche
Commencez par reproduire le flux d’installation dans un Linux Dev Container en utilisant les versions de VS Code et de l’extension indiquées, puis inspectez les paramètres de l’extension dans CodeQL > CLI: Executable Path ainsi que les messages de journal signalés. Comparez ce comportement avec issue #904. Le travail est considéré comme terminé lorsque l’extension télécharge CodeQL CLI comme prévu ou explique clairement l’action requise de la part de l’utilisateur lorsqu’elle ne le peut pas.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
The underlying issue might be #904; feel free to close this issue if you think the other one covers this.
Describe the bug
When the VSCode extension is already installed (on Windows), and is then installed in a Linux Dev Container it does not download CodeQL CLI.
The CodeQL extension log shows:
Starting GitHub.vscode-codeql extension
INFO: Could not find CodeQL on path.
INFO: Could not find CodeQL on path.
INFO: Could not find CodeQL on path.
Didn't perform CodeQL CLI update check since a check was already performed within the previous 86400 seconds.
INFO: Could not find CodeQL on path.
The CodeQL CLI could not be found.
And an error dialog with the following message appears:
The CodeQL CLI could not be found.
Restarting VSCode has no effect. The same log messages appear.
Edit: Maybe this is not actually exclusive to Dev Containers and happens for a normal installation as well.
Version
CodeQL extension version: v1.5.1
VSCode:
Version: 1.57.1 (user setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19041
To reproduce
On Windows (though maybe OS does not matter)
- Install the CodeQL extension
- Run
>Remote-Container: Clone Repository in Named Container Volume... - Clone any GitHub repository, for example https://github.com/github/vscode-codeql
- Create a new volume
- Choose "Ubuntu" "focal" as container configuration
- In the "Extensions" tab search for the CodeQL extension and install it for the Dev Container
❌ Once the installation finished it shows the error "The CodeQL CLI could not be found."
Note: Maybe step 1 can be skipped.
Apparently once you edit the extension configurations it starts downloading the CodeQL CLI:
- Open the extension settings
- Change "CodeQL > CLI: Executable Path" to an invalid (?) directory
❌ The extension shows that the executable was not found and downloads the CodeQL CLI
Maybe this is actually a separate bug? Personally I think the extension should not download the CodeQL CLI when it does not exist at the specified path; the user might have just mistyped the path. The CodeQL CLI should only be installed when the executable path is empty (which is not the case here).
Expected behavior
Ideally the extension should be able to download the CodeQL CLI on its own.
If that is, for whatever reason, not possible in a Dev Container it would be good to at least tell the user what to do.
- Langage dominant
- TypeScript
- Étoiles
- 539
- Forks
- 240
- Merge moyen
- 2 j 18 h
- PR mergées (30 j)
- 37
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/vscode-codeql
-
bug VSCode
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
github/vscode-codeql#4471 · 1 commentaire ·
-
bug enhancement VSCode
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
github/vscode-codeql#592 · 2 commentaires ·
-
enhancement VSCode
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
github/vscode-codeql#4432 · 1 commentaire ·
-
bug VSCode
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
github/vscode-codeql#4356 ·
-
bug VSCode
Difficulté 3/5 1-2 jours Accessibilité débutants 64/100
github/vscode-codeql#4339 · 1 commentaire ·
Toutes les issues de github/vscode-codeql
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
bug v2
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
modelcontextprotocol/inspector#2458 · 1 commentaire ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
carbon-design-system/ibm-products#9907 ·