psql terminal fails to launch
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 399
- Forks
- 33
- Merge moyen
- 1 j 9 h
- PR mergées (30 j)
- 2
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
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 microsoft/vscode-pgsql
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
microsoft/vscode-pgsql#190 · 3 commentaires ·
-
"Durable worker is not ready"Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
microsoft/vscode-pgsql#311 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
microsoft/vscode-pgsql#307 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
microsoft/vscode-pgsql#306 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
microsoft/vscode-pgsql#305 · 2 commentaires ·
Toutes les issues de microsoft/vscode-pgsql
Issues similaires
-
DefaultRedisList.get(int) does not reject an index equal to the list sizePeut-être pris @ryujungkyun l’a pris aujourd’hui. Ouvertestatus: waiting-for-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
spring-projects/spring-data-redis#3471 ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
mozilla/experimenter#17757 ·
Les mainteneurs répondent en général sous 1 jour
-
Database backend cleanup can delete task results before result_expires with non-UTC timezonesPeut-être pris @Namraa310806 l’a pris aujourd’hui. OuverteComponent: SQLAlchemy Database Results Backend Issue Type: Bug Report
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
celery/celery#10865 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
component/server severity/minor type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Database layer logs every query with parameters in all environmentsPeut-être pris @Senthil455 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Janani-bn/CivicFix#167 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour