github / github/copilot-cli

PowerShell commands failing

Đang mở
#1,147 5 bình luận 1 reaction 0 người được giao Xem trên GitHub
area:platform-windows
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

#196 talked about this issue, but it was closed with the claim that v0.0.335 fixed the issue, but it's still happening for me.

### Affected version

_No response_

### Steps to reproduce the behavior

1. In the interactive prompt type "Run Get-ChildItem"

### Expected behavior

The command is executed. Instead of this:

```text
❯ Run Get-ChildItem

✓ List files in the current directory
$ Get-ChildItem
└ 1 line...

● Let me check the output:

Read shell output:
Waiting up to 10 seconds for command output
Invalid session ID: 0. Please supply a valid session ID to read output from.
```

### Additional context

If I do "!Get-ChildItem" it works, but my profile is loaded and produces an error.

```text
Line | │
│ 9 | Set-PSReadLineOption @PSReadLineOptions │
│ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ │
│ | The predictive suggestion feature cannot be enabled because the console output doesn't support virtual │
│ terminal │
│ | processing or it's redirected.
```

Yet the command does run. Still, I suspect you need to use `-NoProfile` when spawning pwsh.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.