Skip to content
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

Github Copilot CLI - Error: could not prompt: unexpected escape sequence from terminal: ['\x1b' ']'] #9742

Closed
1 task done
coolemur opened this issue Mar 23, 2024 · 5 comments
Labels
bug [core label] stale Label used by `stale` action terminal Feedback for terminal integration, shell commands, etc

Comments

@coolemur
Copy link

coolemur commented Mar 23, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Getting error Error: could not prompt: unexpected escape sequence from terminal: ['\x1b' ']'] when executing command gh copilot suggest "create a directory"

Steps to reproduce:

Environment

macOS: 14.4 (23E214)

Terminal: xterm-256color -zsh

Tried same steps in Mac native terminal & in iterm2 terminal - using same xterm-256color -zsh - that worked. It only fails in Zed terminal.

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

@coolemur coolemur added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Mar 23, 2024
@Moshyfawn Moshyfawn added terminal Feedback for terminal integration, shell commands, etc and removed triage Maintainer needs to classify the issue labels Mar 23, 2024
@shbfy

This comment has been minimized.

@R-Rudolf
Copy link

I received the same error message, but only if I use screen (4.9.0-1) in vscode (1.88.1). If I use screen in another termina GUI it does not happen. If I use without screen, or with tmux, it does not happen.
I removed my complete .screenrc file and the behaviour is the same. 🤷‍♀️

It even dumps strange characters as well.
Overall experience:

$ gh copilot explain tmux
^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\
Welcome to GitHub Copilot in the CLI!
version 1.0.1 (2024-03-22)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency

^[[20;1R^[[20;1R^[[20;1RExplanation:                                                                                                                                                    

  tmux is a terminal multiplexer that allows you to create and manage multiple terminal sessions within a single window. It provides features such as splitting the window into panes,
  detaching and reattaching sessions, and running commands in the background.

^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\(.venv) user0@machine (main) ~/Repos >
$ 1R11;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f81R1R1R11;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f8

@christian-gama
Copy link

I'm getting this error too only in Zed's terminal (using fish).
image

When I run the same command outside zed (using kitty + fish), this error does not happen.
image

Copy link

github-actions bot commented Nov 5, 2024

Hi there! 👋
We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days.
Thanks for your help!

@github-actions github-actions bot added the stale Label used by `stale` action label Nov 5, 2024
Copy link

This issue was closed due to inactivity. If you're still experiencing this problem, please open a new issue with a link to this issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] stale Label used by `stale` action terminal Feedback for terminal integration, shell commands, etc
Projects
None yet
Development

No branches or pull requests

6 participants