Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior of terminal accessibility buffer when running postgresql client #174170

Closed
jvesouza opened this issue Feb 12, 2023 · 4 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal-accessibility Issues related to the terminal help widget, accessibility buffer, or navigation mode
Milestone

Comments

@jvesouza
Copy link

Type: Bug
CC @meganrogge @isidorn

I tried to run the postgresql client in a vscode terminal but strangely the result of the commands executed by the client was not presented in the accessibility buffer.
The curious thing is that after I finished executing the client, the results of the commands were displayed in the terminal's accessibility buffer.
Reproducing the steps described here requires that docker be installed but I believe it is also possible to reproduce if postgresql is installed locally without using docker.

Steps to reproduce:
Create a postgres instance using docker. To do so, use the following command:
docker run --name test --rm -e POSTGRES_PASSWORD=195 -d postgres:15-alpine

After creating the postgres instance, create a terminal in VSCode and run the following command:
docker exec -it test psql -Upostgres

Assuming the connection was successfully established, we can run some commands in postgres.
select 11*11;
select 100+200;

Note that although the output of commands is displayed in the terminal, they do not appear in the accessibility buffer.

Type \q to close the postgres connection and notice that the output of previously executed commands now appears in the accessibility buffer.

I believe that if this behavior is correct, it will be difficult to follow the execution of commands that have a long duration.

VS Code version: Code - Insiders 1.76.0-insider (c7930ca, 2023-02-10T16:16:54.590Z)
OS version: Linux x64 6.1.10-200.fc37.x86_64
Modes:
Sandboxed: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 2900)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 0
Memory (System) 15.27GB (8.52GB free)
Process Argv -n --crash-reporter-id bc02adbd-6c3a-44b8-af92-55103a608af7
Screen Reader yes
VM 0%
DESKTOP_SESSION gnome-xorg
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome-xorg
XDG_SESSION_TYPE x11
Extensions (38)
Extension Author (truncated) Version
vscode-postgres cko 1.4.0
doxdocgen csc 1.4.0
vscode-markdownlint Dav 0.49.0
vscode-chatgpt gen 3.5.11
rest-client hum 0.25.1
better-cpp-syntax jef 1.17.2
azure-pipelines ms- 1.208.0
vscode-docker ms- 1.23.3
csharp ms- 1.25.4
vscode-kubernetes-tools ms- 1.3.11
remote-containers ms- 0.279.0
remote-ssh ms- 0.97.2023020215
remote-ssh-edit ms- 0.84.0
azure-account ms- 0.11.3
cmake-tools ms- 1.13.45
cpptools ms- 1.14.2
cpptools-extension-pack ms- 1.3.0
makefile-tools ms- 0.6.0
powershell-preview ms- 2023.2.0
remote-explorer ms- 0.3.2023020609
vsliveshare ms- 1.0.5828
fabric8-analytics red 0.3.6
java red 1.15.2023021103
vscode-xml red 0.25.2023020103
vscode-yaml red 1.11.0
sonarlint-vscode Son 3.14.0
cmake twx 0.0.17
intellicode-api-usage-examples Vis 0.2.7
vscodeintellicode Vis 1.2.30
vscode-boot-dev-pack vmw 0.2.1
vscode-spring-boot vmw 1.44.0
vscode-java-debug vsc 0.48.0
vscode-java-dependency vsc 0.21.2023013100
vscode-java-pack vsc 0.25.2023020900
vscode-java-test vsc 0.37.2023013002
vscode-maven vsc 0.40.2023020103
vscode-spring-boot-dashboard vsc 0.10.1
vscode-spring-initializr vsc 0.11.2

(1 theme extensions excluded)

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256198
vstes627cf:30244335
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyindex848:30611229
nodejswelcome1:30587009
pyind779:30611226
pythonsymbol12:30651887
6233i204:30659907
pythonb192:30661256

@jvesouza
Copy link
Author

A much simpler way to reproduce this problem is to run the following sequence of commands in the VSCode terminal:

date && sleep 30 && date

The result of the commands only appears in the accessibility buffer after 30 seconds.

@meganrogge
Copy link
Contributor

Yes this is an issue that we are aware of. We don't know the output of the command until it has finished.

@meganrogge
Copy link
Contributor

Related #172582

@meganrogge meganrogge self-assigned this Feb 13, 2023
@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug terminal-accessibility Issues related to the terminal help widget, accessibility buffer, or navigation mode labels Feb 13, 2023
@meganrogge meganrogge added this to the February 2023 milestone Feb 13, 2023
@meganrogge
Copy link
Contributor

/duplicate #172582 and a workaround for now is to disable shell integration

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 22, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal-accessibility Issues related to the terminal help widget, accessibility buffer, or navigation mode
Projects
None yet
Development

No branches or pull requests

4 participants