-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Invalid characters in terminal after special characters were displayed during prebuild #8055
Comments
Thanks @shaal ! We'll take a look 🙏 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've got the same problem in this PR https://github.com/sourcegraph/sourcegraph/pull/43684 # Sourcegraph quickStart: https://docs.sourcegraph.com/dev/setup/quickstart
# Gitpod config reference: https://www.gitpod.io/docs/config-gitpod-file
tasks:
- name: sg
init: |
(
set -e
./dev/sg/bootstrap.sh -f -p=false
)
command: |
(
set -e
echo "Run 'sg setup' to setup development environment"
echo "https://docs.sourcegraph.com/dev/setup/quickstart"
) Can we reopen this issue? |
@axonasif I am not sure it is a I can't remember cases in other CI/CD systems where output from previous commands affected input of the next one without explicit pipe. |
@abitrolly I thought it could be a good-first-issue, it could be fixed by issuing the task commands differently. |
As a workaround maybe, but not the solution that would keep users happy (speaking of myself, of course). So do you know anybody who could explain why this happens? |
My bad, maybe I wasn't clear. I mean from Gitpod side. Here's the task terminal creation logic: |
Not sure I can understand what's going on just by looking at that file. This
|
|
Update:
Test to repro (sourcegraph binary can be downloaded from here)
|
Align attributes with node-pty Related #8055
Align attributes with node-pty Related #8055
Align attributes with node-pty Related #8055
Bug description
Invalid characters in terminal after special characters were displayed during prebuild.
In the screenshot above -
After
mc
(Minio client) was running during prebuild (these are the green characters),A new workspace opens with invalid characters in terminal (ie.
11;rgb:1e1e/1e1e/1e1e;1R
)I'm sure it's not related specifically to
mc
, but has to do with special characters that are displayed during prebuild.But
mc
was the easiest example I could find to reproduce the problem I'm seeing.Steps to reproduce
Workspace affected
No response
Expected behavior
Regardless of what special characters are displayed during prebuild, it should not affect the terminal in a new workspace.
Especially when these invalid characters are "typed" in the command line.
Example repository
https://github.com/shaal/gitpod-test--invalid-characters-in-terminal
Anything else?
No response
The text was updated successfully, but these errors were encountered: