-
Notifications
You must be signed in to change notification settings - Fork 144
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
v1.5.15 display problem in webstorm terminal #522
Comments
@oroz-vip Thanks for reporting this. When reporting an issue, please include the following which saves time by answering in advance the usual questions:
In the meantime, I'll try to see if I can reverse engineer what combination of settings experiences the problem. |
@oroz-vip In addition to uploading output from I'm not able to find what combination of settings leads to the problem. The debug.log_terminal setting will capture the exact output so that I can both replay it and inspect it. |
Hello @chrisant996 I upload all the files you requested. The only difference is : I am using IntelliJ (which is basically the IDE similar to Webstrom , both developed by JetBrains). One small thing I noticed was : for me only git commands are producing the error. If you need any more logs please feel free to ping me. |
@oroz-vip @alibutt30 @bariod Thanks for the debugging help! Can you try two things?
I think the terminal that you're using doesn't support 24 bit color escape sequences. It's fine to not support them. I made a mistake by making Clink try to use modern escape sequences. But the terminal you're using also has a bug in its escape code interpreter, and the terminal itself is malfunctioning when it encounters an escape sequence it doesn't recognize -- that's why the input display becomes garbled. That's definitely a bug in the terminal, because the ECMA 48 spec on escape sequences is very clear about how to correctly handle even unrecognized escape sequences. But even if the terminal correctly ignored unrecognized escape sequences, the colors would be wrong because the terminal doesn't support modern color escape sequences -- and it's perfectly reasonable for a terminal to omit support for those. I have to revert the feature where Clink auto-detects whether the console is using a Light or Dark color theme, and automatically chooses an appropriate muted color for the auto-suggestions. |
@bariod Thanks, then the garbling is definitely due to a bug in the WebStorm terminal. But it's still Clink's fault, because on any terminal that correctly ignored codes the terminal doesn't support then the color just wouldn't get set at all. A fix is coming soon. |
@bariod @oroz-vip @alibutt30 Some additional questions:
I am unable to reproduce the problem in VSCode or Cmder or ConEmu, even with the provided clink settings, on Windows 10. The log file shows that the output is all correct, so the terminal itself is garbling the display. @alibutt30 UPDATE: Sigh. There was already a |
The setting you told really solved my problem too. Some insights to my problem were that whenever I wrote |
@alibutt30 Thanks, yes, I want to figure out how it's happening for you. UPDATE: Sigh. There was already a To revert the setting, you can run |
VS Code: |
@bariod @alibutt30 @oroz-vip Thanks for continuing to help investigate this. I'm using:
I cannot reproduce any of the problems. Note: earlier I had accidentally used a clink.set.txt file already in my Downloads folder, instead of the clink_set.txt that you uploaded. But, even after using the correct clink_set.txt file, I still cannot reproduce the problems. The colors and etc match your screenshot. Would you be willing to capture a Time Travel Debugging trace of the problem, upload it somewhere (e.g. in a password protected .zip file), and send a link to the file to sparrowhawk996 at gmail.com? A Time Travel Debugging trace will capture everything that's happening, and make it easy to find out how Clink is showing (garbled) auto-suggestions even when the auto-suggestions feature is disabled. (Or maybe it's really enabled, and the clink_set.txt file was from a different profile or something.)
|
Not to keep you hanging. I would provide you with the logs from Travel Debugging. Please give me some time. maybe in 1-2 days. I hope that is fine. Thank, |
#524 has interesting new info -- the problem may be related to either the pixel width of the terminal, or may be related to the character width of the terminal. If the terminal's output buffers aren't big enough, then they may accidentally split escape codes. Since the hyperlink escape code is naturally long, it is statistically more likely for a buffer boundary to split that escape code. |
Sorry, I haven't been using the computer during this time. When I came online and saw the messages, you had already resolved the issue. That's really great! Thumbs up! |
os: windows 10
clink version: v1.5.15
description:
I use cmder as my local terminal client. It provide a method to intergate to webstorm/vscode,see official link.
Before clink update to v1.5.15,it is normal.Clink version is v1.5.13.Everytime i update clink, i make a git commit and tag,so i'm sure v1.5.13 is ok.
After updating from version 1.5.13 to 1.5.15, I encountered an issue where there is a discrepancy between the displayed content and the input.
look at the gif
The text was updated successfully, but these errors were encountered: