Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Exception invoking fish shell from Powershell

オープン
#4,711 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, fish, powershell
領域
cli, devtools

調査の方向性

First reproduce the reported fish command from PowerShell 7.5 on Darwin and trace the stack through RecomputeInitialCoords, ReallyRender, and ForceRender. Done means the command completes without PSReadLine raising the reported InvalidOperationException.

索引モデルが issue の本文から書いたものです。

説明

Area-Stability Needs-Triage :mag:
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

主要言語
C#
スター
4.4k
フォーク
341
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/PSReadLine のほかの issue

PowerShell/PSReadLine の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。