Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Unable to view source code files in a CodeQL database over SSH remote session

Aperta
#872 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript, vscode
Ambito
devtools

Direzione di ricerca

Riproduci il malfunzionamento usando VSCode Remote SSH con un database CodeQL remoto, quindi analizza i link di Explorer e dei risultati CodeQL che aprono file codeql-zip-archive. Confronta il comportamento remoto e locale relativo all’URI e all’errore segnalati. Il lavoro è completato quando i file sorgente si aprono correttamente sia in Explorer sia nei risultati CodeQL collegati tramite SSH.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug VSCode

Describe the bug
When connecting from VSCode (Linux) to a remote Linux server over SSH, it is not possible to view the source files contained in a CodeQL database. This includes browsing the archive in the Explorer, and also following links in CodeQL results. An error such as the following will be shown:

Unable to open 'format_g726.c (read-only)': Unable to read file 'codeql-zip-archive://0-46/home/electricworry/projects/fuzzing/asterisk-db/src.zip/home/electricworry/projects/fuzzing/asterisk/formats/format_g726.c' (TypeError: Cannot read property 'pipes' of undefined).

Version
CodeQL extension version: 1.4.8
CodeQL CLI version: 2.4.6
Platform: linux x64

Version: 1.56.2
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T16:45:26.313Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Linux x64 5.8.0-53-generic

To reproduce

  • Install latest vscode from debian repositories (currently 1.56.2).
  • Install Remote SSH and CodeQL extensions.
  • Connect to a remote Linux host.
  • Add a codeql database folder (such as one present on the remote host)
  • In the Explorer, expand the database. Files are browsable. But select any file and an error will be thrown.

Expected behavior
The source file should be opened.

Additional context
This works correctly when working locally on both Linux hosts. It's only when working over SSH remotely that I have experienced this.

Lingua principale
TypeScript
Stelle
539
Fork
240
Merge medio
2g 18h
PR unite (30g)
37

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/vscode-codeql

Tutte le issue di github/vscode-codeql

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.