-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -16.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
PS C:\Users\Admin\Desktop\Project> echo "import React from 'react'
>>
>> export default function PhishingLessonModal({ isOpen, onClose, redFlags }) {
>> if (!isOpen) return null
>>
>> return (
>> <div className='modal-overlay'>
>> <div className='modal-content'>
>> <h2>Phishing Detection Results</h2>
>> <div className='red-flags-list'>
>> {redFlags.map((flag, i) => (
>> <div key={i} className='red-flag-item'>
>> <span className='red-flag-icon'>??</span>
>> <div>
>> <h4>{flag.title}</h4>
>> <p>{flag.description}</p>
>> </div>
>> </div>
>> ))}
>> </div>
>> <div className='modal-footer'>
>> <button onClick={onClose}>Got it</button>
>> </div>
>> </div>
>> </div>
>> )
>> }" > src/components/PhishingLessonModal
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Last 200 Keys:
Space Space Space ) ) } Enter
Space Space Space Space Space Space Space Space < / d i v > Enter
Space Space Space Space Space Space Space Space < d i v Space c l a s s N a m e = ' m o d a l - f o o t e r ' > Enter
Space Space Space Space Space Space Space Space Space Space < b u t t o n Space o n C l i c k = { o n C l o s e } > G o t Space i t < / b u t t o n > Enter
Space Space Space Space Space Space Space Space < / d i v > Enter
Space Space Space Space Space Space < / d i v > Enter
Space Space Space Space < / d i v > Enter
Space Space ) Enter
} " Space > Space s r c / c o m p o n e n t s / P h i s h i n g L e s s o n M o d a l . j s x EnterScreenshot
Command Execution
Terminal State
Note: The error occurs when trying to create a React component file with approximately 30+ lines of JSX content using the echo command.
Environment data
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 80
BufferHeight: 11Steps to reproduce
- Open Windows PowerShell
- Navigate to any directory
- Try to execute a long
echocommand to create a file, particularly with multi-line JSX content - The error occurs when the content contains multiple lines and indentation
Expected behavior
The terminal should properly handle multi-line content creation commands regardless of length.
Actual behavior
The terminal throws an ArgumentOutOfRangeException when trying to position the cursor for rendering long command output.
Metadata
Metadata
Assignees
Labels
No labels

