You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I launched IPython in vi mode, using the --TerminalInteractiveShell.editing_mode=vi flag, and copied large chunks of code (whole file) for testing a bug, that occured when I pasted the code. When the pasting occurs, a character is cut out from the pasted string and then placed at the end of the pasted string. The choice of the character is seemingly random, but it ruins the code more often than not@. This happens for whole file copy. If copy a segment of the file then only the character appears. It is very confusing.
I was using:
Windows 10
IPython 8.20.0
Python 3.11.7
WezTerm 20240203-110809-5046fc22
I copied from Neovim 0.9.5 into IPython console on a pane.
The text was updated successfully, but these errors were encountered:
@kalocsaibotond can you please provide a standalone reproducible example of this behavior, so we can verify if this affects other platform. It'd be great if you could also try out a different terminal emulator, so we could rule that out.
In these cases the described bug manifests in randomly grabbing somewhere a t from the pasted code and inserting at the end. Since the code end with a comment, and the t is grabbed from a non-critical string or from a comment, in this case the code runs.
However in my private codes I encountered cases where the pasting process grabbed a character from the running code and inserted at the and, thus the code failed to run.
I launched IPython in vi mode, using the
--TerminalInteractiveShell.editing_mode=vi
flag, and copied large chunks of code (whole file) for testing a bug, that occured when I pasted the code. When the pasting occurs, a character is cut out from the pasted string and then placed at the end of the pasted string. The choice of the character is seemingly random, but it ruins the code more often than not@. This happens for whole file copy. If copy a segment of the file then only the character appears. It is very confusing.I was using:
8.20.0
3.11.7
20240203-110809-5046fc22
0.9.5
into IPython console on a pane.The text was updated successfully, but these errors were encountered: