Skip to content

Python shell Up Arrow not working w gitbash integrated #24521

@chrisdel101

Description

@chrisdel101

There is no python history while using the shell and everything must be manually retyped. l filed vscode issue but see this is actually an extension issue. Disabling makes the issue stop.

The problem seems to occur only w gitbash (not a powershell or command prompt user).

Environment data

  • Pylance version: 11.3
  • OS and version: win 11
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.12.6

Up arrow should work here

$ python 
Python 3.12.6 (tags/v3.12.6:a4a2d2b, Sep  6 2024, 20:11:23) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 2-1
1
>>> 

Repro Steps

  • With extensions enabled open a python session in gitbash.

Expected behavior

  • up arrow should work as expected.

If there's another linux shell that is supported, or some change I can make to fix this I'd love to hear it.

Metadata

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions