Skip to content

Exception invoking fish shell from Powershell #4711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
rosch100 opened this issue Apr 19, 2025 · 0 comments
Open
3 tasks done

Exception invoking fish shell from Powershell #4711

rosch100 opened this issue Apr 19, 2025 · 0 comments
Labels
Area-Stability Label for tracking stability Issues Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@rosch100
Copy link

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 19, 2025
@daxian-dbw daxian-dbw added the Area-Stability Label for tracking stability Issues label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Stability Label for tracking stability Issues Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

2 participants