Exception invoking fish shell from Powershell
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C#
- Star
- 4.4k
- Fork
- 341
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/PSReadLine
-
Needs-Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PowerShell/PSReadLine#5205 ·
-
Needs-Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PowerShell/PSReadLine#5195 ·
-
Needs-Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PowerShell/PSReadLine#5121 ·
-
Needs-Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
PowerShell/PSReadLine#5045 ·
-
Area-CommandHelp Issue-Enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
PowerShell/PSReadLine#3470 · 3 reaction ·
Tất cả issue của PowerShell/PSReadLine
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nightscout/nocturne#1425 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cake-build/cake#5024 ·
-
Gå gjennom ESLint-suppressions Đang mởFrontend status/draft TechnicalDebt
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 75/100
Altinn/altinn-auth#4143 ·