Skip to content

System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。 #1041

Closed

Description

@flashlxy

Environment data

Steps to reproduce or exception report

哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
x e ' Space ' c : \ U s e r s \ f l a s h \ . v s c o d e \ e x t e n s i o n s \ m s - p y t h o n . p y t h o n - 2 0 1 9 . 9 . 3 4 9 1 1 \ p y t h o n F i l e s \ p t v s d _ l a u n c h e r . p y ' Space ' - - d e f a u l t ' Space ' - - c l i e n t ' Space ' - - h o s t ' Space ' l o c a l h o s t ' Space ' - - p o r t ' Space ' 2 4 5 7 1 ' Space ' d : \ C O D E S \ G r i d D r a w \ M i c a p s D a t a D r a w . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。
参数名: top
实际值是 -15。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Activity

  1. hippieZhou commented on Sep 13, 2019

    @hippieZhou

    Yeah,I alse have this issue. Who can tell me how to fix it.

    哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
    在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new
    -----------------------------------------------------------------------
    上 200 个密钥:
     \ m s - p y t h o n . p y t h o n - 2 0 1 9 . 9 . 3 4 9 1 1 \ p y t h o n F i l e s \ p t v s d _ l a u n c h e r . p y ' Space ' - - d e f a u l t ' Space ' - - c l i e n t ' Space ' - - h o s t ' Space ' l o c a l h o s t ' Space ' - - p o r t ' Space ' 6 1 4 3 7 ' Space ' C : \ U s e r s \ h i p p i e \ D e s k t o p \ d j a n g o g i r l \ s r c \ m a n a g e . p y ' Space ' r u n s e r v e r ' Space ' - - n o r e l o a d ' Space Enter
    
    
    异常:
    System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区在该维度的大小。
    参数名: top
    实际值是 -6。
       在 System.Console.SetCursorPosition(Int32 left, Int32 top)
       在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
       在 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`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
       在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
       在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
    -----------------------------------------------------------------------
  2. daxian-dbw commented on Sep 13, 2019

    @daxian-dbw
    Member

    This should have been fixed by #979
    The 2.0.0-beta5 version of PSReadLine was released this morning, which contains the fix. Please get it from PowerShellGallary.

  3. flashlxy commented on Sep 14, 2019

    @flashlxy
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OutOfRangeIssues relating to System.ArgumentOutOfRangeException

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions