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

Input in Terminal not working while in Dev container #9784

Closed
alexandr-osprey opened this issue Apr 12, 2024 · 10 comments
Closed

Input in Terminal not working while in Dev container #9784

alexandr-osprey opened this issue Apr 12, 2024 · 10 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@alexandr-osprey
Copy link

alexandr-osprey commented Apr 12, 2024

Type: Bug

I use podman instead of Docker.
Steps to reproduce:

  1. Create python dev container
  2. Try to select the image in terminal

Expected result: image in terminal selected, input in terminal works
Actual result: terminal looks active, but doesn't respond to input from keyboard. Selection and scrolling works fine.

Recording2024-04-12at14 10 19-ezgif com-cut

Adding or removing the setting "terminal.integrated.shell.linux" doesn't change the outcome. Outside of dev container terminal works fine.

settings.json

{
    "window.titleBarStyle": "custom",
    "security.workspace.trust.untrustedFiles": "open",
    "dev.containers.dockerPath": "podman",
    "docker.dockerPath": "podman",
    "git.autofetch": true,
    "git.confirmSync": false,
    "terminal.integrated.shell.linux": "/bin/bash"
}

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:34:12.840Z)
OS version: Linux x64 6.8.4-200.fc39.x86_64
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-12500H (16 x 3000)
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_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 5, 1, 0
Memory (System) 15.35GB (10.52GB free)
Process Argv --unity-launch --crash-reporter-id c726daa5-8812-48d4-88bd-38184708297f
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
Extensions (16)
Extension Author (truncated) Version
python-environment-manager don 1.2.4
gitlens eam 14.9.0
csdevkit ms- 1.4.29
csharp ms- 2.23.15
vscode-dotnet-runtime ms- 2.0.3
vscodeintellicode-csharp ms- 2.0.25
python ms- 2024.4.1
vscode-pylance ms- 2024.4.1
remote-containers ms- 0.354.0
remote-ssh ms- 0.110.1
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.88.0
vscode-remote-extensionpack ms- 0.25.0
remote-explorer ms- 0.4.3
remote-server ms- 1.5.1
chatgpt tim 1.1.2
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r6:30993542
dsvsc020:30976470
pythonait:31006305
gee8j676:31009558
dsvsc021:30996838
gd77d436:30999572
9c06g630:31013171

@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@alexandr-osprey
Copy link
Author

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

updated to1.88.1 - no difference.

@meganrogge
Copy link

does other stuff in the workbench work normally? it looks like in your gif the container is still starting when you try to do that. does waiting for it to finish cause that to work?

@meganrogge meganrogge added the info-needed Issue requires more information from poster label Apr 12, 2024
@meganrogge
Copy link

If you hold down shift while selecting, does it work?

@alexandr-osprey
Copy link
Author

The start of container is stalled, because I can't pick up the image. It never goes beyond that. I'll try to remove other image sources, so it won't ask and check if the terminal works once the container fully started.
Pressing shift doesn't affect the outcome.

@alexandr-osprey
Copy link
Author

Now I made it further. I only left docker.io registry, so it won't ask this question. Now it's just stuck after writing "container started"
image

@alexandr-osprey
Copy link
Author

Fedora is pretty popular and comes with Podman. It would be nice to see VSCode working with Podman out of the box, not being tied to Docker.

@alexandr-osprey
Copy link
Author

I just stumbled upon the logs

[2024-04-12T11:42:13.075Z] Dev Containers 0.354.0 in VS Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c).
[2024-04-12T11:42:13.075Z] Initializing configuration support...
[2024-04-12T11:42:13.075Z] Internal initialization of dev container support package...
[2024-04-12T11:42:13.081Z] Start: Resolving Remote
[2024-04-12T11:42:13.095Z] Setting up container for folder or workspace: /home/aleksandr/repos/python_ds
[2024-04-12T11:42:13.096Z] Start: Check Docker is running
[2024-04-12T11:42:13.096Z] Start: Run: docker version
[2024-04-12T11:42:13.099Z] Stop (3 ms): Run: docker version
[2024-04-12T11:42:13.100Z] Stop (4 ms): Check Docker is running
[2024-04-12T11:42:13.104Z] Docker returned an error code ENOENT, message: spawn docker ENOENT
[2024-04-12T11:42:13.106Z] Stop (10 ms): Run: docker version

I assume I should contact the authors of "remote containers" extension, because Podman is set in the settings and works fine.

@alexandr-osprey
Copy link
Author

I just installed Docker. You may close the issue if you want. If you want to make it work with Podman, I can cooperate and try stuff.

@alexr00 alexr00 assigned chrmarti and unassigned alexr00 Apr 15, 2024
@chrmarti chrmarti transferred this issue from microsoft/vscode Apr 16, 2024
@chrmarti
Copy link
Contributor

Continuing in #9748.

(We don't connect the keyboard events to the build command.)

@microsoft microsoft locked and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants