Unable to download lgtm.com database in an remote SSH session
Describe the bug When connecting from VSCode (Linux) to a remote Linux server over SSH, attempts to download a CodeQL database from lgtm.com fails. The interface accepts the project slug, and then asks for the language, but then is stuck forever with the notification "Adding database from LGTM. Choose a language from the dropdown, if requested.: Downloading database [0.0 MB of 523.5 MB]"
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.
- Install CodeQL extension on remote (if not present)
- Attempt to download a database from lgtm.com (e.g. g/asterisk/asterisk).
- Select the desired language from the pulldown
- Witness download is stuck.
Expected behavior The database should be downloaded and appear in the Explorer and CodeQL panes.
Additional context This works correctly when working locally on both Linux hosts. It's only when working over SSH remotely that I have reproduced this.
Thanks for reporting this issue. We will take a look.