PowerShell / PSReadLine

A bash inspired readline implementation for PowerShell
BSD 2-Clause "Simplified" License
3.75k stars 296 forks source link

Backend TkAgg is interactive backend. Turning interactive mode on. #4274

Closed J-P-Borg closed 2 hours ago

J-P-Borg commented 2 hours ago

Prerequisites

Exception report

Oups, un problème s'est produit. Signalez ce bogue avec les détails ci-dessous.
Signaler sur GitHub : https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Dernières 200 touches :
 d e Ctrl+Alt+\ e x t e n s i o n s Ctrl+Alt+\ m s - p y t h o n . d e b u g p y - 2 0 2
. 1 2 . 0 - w i n 3 2 - x 6 4 Ctrl+Alt+\ b u n d l e d Ctrl+Alt+\ l i b s Ctrl+Alt+\ d e
u g p y Ctrl+Alt+\ a d a p t e r / . . / . . Ctrl+Alt+\ d e b u g p y Ctrl+Alt+\ l a u n
h e r ' Space ' 5 6 9 0 3 ' Space ' - - ' Space ' C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ j  n - p i e r r e . b o r g Ctrl+Alt+\ I R C M Ctrl+Alt+\ T h e s e Ctrl+Alt+\ R e c h e  h e Ctrl+Alt+\ P a c k a g e s Ctrl+Alt+\ T r a i t I m g Ctrl+Alt+\ P V R Ctrl+Alt+\ M
s u r e . p y ' Space Enter

Exception :
System.ArgumentOutOfRangeException: La valeur doit être supérieure ou égale à zéro et inieure à la taille de la mémoire tampon de la console dans cette dimension.
Nom du paramètre : top
La valeur réelle était -2.
   à System.Console.SetCursorPosition(Int32 left, Int32 top)
   à Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String dultColor)
   à Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   à Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   à Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   à Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary
dispatchTable, Boolean ignoreIfNoAction, Object arg)
   à Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   à Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsicsgineIntrinsics)

Screenshot

N/A

Environment data

PS Version: 5.1.19041.5129
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.4522 (WinBuild.160101.0800)
BufferWidth: 80
BufferHeight: 27

Steps to reproduce

This is a specific program to measure elements of a medical imageVisual

Expected behavior

Visual Studio in debug mode. I expected to stop in the module 'on_click'

Actual behavior

but it didn't.

github-actions[bot] commented 2 hours ago

This issue was already fixed (see #1306). Please upgrade to the 2.3.5 version of PSReadLine from PowerShell Gallery. See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.