Skip to content

Escape code in terminal #271480

Closed as duplicate
Closed as duplicate

Description

All of a sudden, after an upgrade, when I launch Python in the integrated terminal, I get this:

Python 3.10.0 (default, Oct 18 2021, 02:11:22) [Clang 13.0.0 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
Cannot read termcap database;
using dumb terminal settings.
Ctrl click to launch VS Code Native REPL
]633;C]633;E;import torch]633;D;0]633;A>>> 

Is there any way to go back to the old good prompt ?

Details

Version: 1.105.0 (Universal)
Commit: 03c265b1adee71ac88f833e065f7bb956b60550a
Date: 2025-10-08T14:09:35.891Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Darwin x64 24.5.0

Activity

  1. ahans commented on Oct 16, 2025

    @ahans

    I'm having the same issue. It could be that some new VS Code Python integration requires some feature that in Python 3.10 is not supported yet. When using a uv venv with 3.10.18, things break. With the host-installed 3.12 (I'm on Ubuntu 24.04), things work fine.

  2. ahans commented on Oct 16, 2025

    @ahans

    Looks like the shell integration is causing this. When turning it off, things work for me again.

    Turn it off via this entry in settings.json:

    {
        // ...
        "python.terminal.shellIntegration.enabled": false,
    }
    

    Then all is good also with Python 3.10:

    ❯ python3
    Python 3.10.18 (main, Sep  2 2025, 14:19:37) [Clang 20.1.4 ] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    
  3. anthonykim1 commented on Oct 17, 2025

    @anthonykim1
    Contributor

    Thanks for filing the issue.
    Are you all on remote when this happens?

    I see OS: Darwin x64 24.5.0 for system OS defined, but it says linux on the terminal. Franco Alberto Cardillo (@thistlillo)

    Alexander Hans (@ahans) Are you on wsl? or which specific remote scenario?

    Would love to know what the local machine, what the specific remote are

  4. ahans commented on Oct 17, 2025

    @ahans

    For me this was everything native on Ubuntu 24.04, nothing remote involved. When reading this I just happened to have a Windows machine with WSL installed available and tried to repro there, but was unable to. However, I now also tried on Ubuntu 25.10 and there the issue is also present.

    Version: 1.105.0
    Commit: 03c265b1adee71ac88f833e065f7bb956b60550a
    Date: 2025-10-08T14:09:35.891Z
    Electron: 37.6.0
    ElectronBuildId: 12502201
    Chromium: 138.0.7204.251
    Node.js: 22.19.0
    V8: 13.8.258.32-electron.0
    OS: Linux x64 6.17.0-5-generic
    

    What I did was this:

    • Get Python 3.10.18 with uv: uv python install cpython-3.10.18-linux-x86_64-gnu
    • Run python3.10:
    ❯ python3.10
    Python 3.10.18 (main, Jul 11 2025, 22:43:29) [Clang 20.1.4 ] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    Ctrl click to launch VS Code Native REPL
    ]633;C]633;E;exit]633;D;0]633;A>>> ]633;B
    

    Trying the same with the system-installed version:

    ❯ python3
    Python 3.13.7 (main, Aug 20 2025, 22:17:40) [GCC 15.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    Ctrl click to launch VS Code Native REPL
    >>> 
    

    ms-python.python is on version 2025.16.0.

  5. DetachHead commented on Oct 18, 2025

    @DetachHead
    Contributor
  6. anthonykim1 commented on Nov 7, 2025

    @anthonykim1
    Contributor

    Yeah, seems like dup of microsoft/vscode-python#25467

  7. locked and limited conversation to collaborators on Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions