psql terminal fails to launch
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Start by reproducing on Windows with psql on PATH: run the context-menu action "pgsql.psqlTerminalDatabase" and the command "PGSQL: Connect with PSQL" with a connection open, and compare the two errors ("reading '1'" and "reading 'connectionInfo'"). The payload names no source files, so locate the psql terminal command in the extension and find where it reads the connection and the active database. Read the four existing comments for any diagnosis first. Done means the terminal opens connected to the selected database on Windows, with the reproduction steps confirmed.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
When launching a psql terminal from the context menu in the Postgresql database explorer panel, the terminal fails to launch with the following error message.
Error running command pgsql.psqlTerminalDatabase: Cannot read properties of null (reading '1'). This is likely caused by the extension that contributes pgsql.psqlTerminalDatabase.
When launching the terminal from the command pallette "PGSQL: Connect with PSQL" with an open database active the error message is slightly different:
Command 'PGSQL: Connect with PSQL' resulted in an error: Cannot read properties of undefined (reading 'connectionInfo')
psql exetubale is included in my windows path and is found with where psql.
$ where psql
C:\Users\<user>\AppData\Local\Programs\pgAdmin 4\runtime\psql.exe
C:\Program Files\QGIS 3.40.14\bin\psql.exe
It happens on all my postgresql connections, so also on for example:
{
"id": "6C6AC2B3-AA2E-4EE3-9E34-AA44EB883807",
"groupId": "E9E9C702-BC45-4E78-A04C-9CF782103D09",
"authenticationType": "SqlLogin",
"connectTimeout": 15,
"applicationName": "vscode-pgsql",
"clientEncoding": "utf8",
"sslmode": "prefer",
"sshSavePassword": true,
"savePassword": true,
"sslRootCertMode": "none",
"server": "localhost",
"user": "postgres",
"password": "",
"database": "bce_models",
"profileName": "bce-postgres-local",
"expiresOn": 0,
"sshPassword": "",
"profileSource": 0,
"displayName": "bce-postgres-local"
}
To Reproduce
See the description of the bug.
Expected behavior
psql terminal is launched connected to the selected Postgresql database.
VS Code version
Version: 1.141.0 (user setup)
Commit: 2a59476c9bfcb90b3ddc372c36762471b7dfad1c
Date: 2026-10-06T10:15:52+02:00
Electron: 43.7.7
ElectronBuildId: 15553055
Chromium: 150.0.7871.250
Node.js: 24.21.0
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.92-4.unstable.r37397886721.gad270aa
@github/copilot-sdk: 1.0.17.37397886721.gad270aa
OS: Windows_NT x64 10.0.26200
Extension Version and Logs
Extension version ms-ossdata.vscode-pgsql 1.32.0
Relevant Extension output
...
<img width="411" height="175" alt="Image" src="https://github.com/user-attachments/assets/8d44219f-49b0-44f7-a891-a51b818558f6" />
[11:58:01 AM] Connected to server "localhost" on document "6C6AC2B3-AA2E-4EE3-9E34-AA44EB883807". Server information: {"isCloud":false,"server":"PostgreSQL","serverVersion":"15.13"}
[11:59:05 AM] [PgToolsService Initialization] [Information]: Target is pg version 15.13
Add any other context about the problem here.
Windows 11 platform
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 399
- Forks
- 33
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/vscode-pgsql
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/vscode-pgsql#190 · 3 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
microsoft/vscode-pgsql#311 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
microsoft/vscode-pgsql#307 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
microsoft/vscode-pgsql#306 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
microsoft/vscode-pgsql#305 · 2 Kommentare ·
Alle Issues in microsoft/vscode-pgsql
Ähnliche Issues
-
channels:edit check:passed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 6 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
StackExchange/StackExchange.Redis#3274 ·
Maintainer antworten meist innerhalb von 1 Tag
-
author-page correction
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 60/100
acl-org/acl-anthology#10313 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
AOSSIE-Org/Gitcord-GithubDiscordBot#147 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
anime duplicate exception request-theme
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
LizardByte/ThemerrDB#8926 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag