python / cpython

The Python programming language
https://www.python.org
Other
63.84k stars 30.56k forks source link

REPL cursor is rendered offset in VSCode on WSL #119329

Open optim-ally opened 6 months ago

optim-ally commented 6 months ago

Bug report

Bug description:

When I open the new REPL in VSCode on WSL, the cursor block is way over to the right. Typing enters characters correctly at the start of the line, but the cursor maintains the same incorrect offset:

repl-cursor

The cursor jumps to the correct position on the 2nd line of multi-line blocks and beyond, but jumps back to the right when the composition is finished:

repl-cursor-multiline

CPython versions tested on:

3.13

Operating systems tested on:

Linux

savannahostrowski commented 6 months ago

Hmm, I just tested this both at the commit SHA where you saw this issue (72d07dd30bc10751fe0298915c918eb08e555a7a) and at the latest commit SHA (506b1a3ff66a41c72d205c8e4cba574e439d8e76) in both Windows terminal and in VS Code's embedded terminal and I cannot get this to reproduce. Are you using Command Prompt?

Update: I can't get it to repro in Command Prompt either.

pablogsal commented 6 months ago

I cannot reproduce this either

pablogsal commented 5 months ago

@lysnikolaou can you try to see if this reproduces for you?

lysnikolaou commented 5 months ago

I'll try to set up a Windows system, sure.