Open
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
PS /Users/roschmac/mount/VM/E/pcut.evolution> /opt/homebrew/bin/fish -c 'ls -la "/Users/roschmac/mount/VM/C/
Program Files (x86)/Embarcadero/Studio/23.0/source/rtl/common/"'
Oops, something went wrong.
Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections
.
Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.yaml
Thank you!
### Environment
PSReadLine: 2.3.6+d2e770f93b7a53d8660a6402eb29d1ae1c35e767
PowerShell: 7.5.0
OS: Darwin 24.5.0 Darwin Kernel Version 24.5.0: Thu Apr 10 20:23:06 PDT 2025; root:xnu-11417.120.96.501.2~2/
RELEASE_ARM64_T6041
BufferWidth: 108
BufferHeight: 1
Last 200 Keys:
F i l e s Spacebar ( x 8 6 ) / E m b a r c a d e r o / S t u d i o / 2 3 . 0 / s o u r c e / r t l / c o m
m o n / " ' Enter
/ o p t / h o m e b r e w / b i n / f i s h Spacebar - c Spacebar ' s e t Spacebar - U x Spacebar B D S Spa
cebar " / U s e r s / r o s c h m a c / m o u n t / V M / C / P r o g r a m Spacebar F i l e s Spacebar ( x
PS /Users/roschmac/mount/VM/E/pcut.evolution>
t z t Spacebar a u f : Spacebar $ B D S " ' Enter
### Exception
System.InvalidOperationException: Cannot locate the offset in the rendered text that was pointed by the orig
inal cursor. Initial Coord: (46, 17) Buffer: (108, 19) Cursor: (47, 0)
at Microsoft.PowerShell.PSConsoleReadLine.RecomputeInitialCoords(Boolean isTextBufferUnchanged)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolea
n ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics,
CancellationToken cancellationToken, Nullable`1 lastRunStatus)
Screenshot
The command cursor was trying to invoke:
/opt/homebrew/bin/fish -c 'set -Ux BDS "/Users/roschmac/mount/VM/C/Program Files (x86)/Embarcadero/Studio/23.0"; echo "BDS gesetzt auf: $BDS"'
Environment data
PS Version: 7.5.0
PS HostName: ConsoleHost
PSReadLine Version: 2.3.6
PSReadLine EditMode: Emacs
OS: Darwin MacBook-Pro-RS.local 24.5.0 Darwin Kernel Version 24.5.0: Thu Apr 10 20:23:06 PDT 2025; root:xnu-11417.120.96.501.2~2/RELEASE_ARM64_T6041 arm64
BufferWidth: 177
BufferHeight: 50
Steps to reproduce
Standard shell is fish. Cursor (AI development) is using powershell and tries to invoke a command with fish.
Expected behavior
No exception
Actual behavior
Exception