-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Linkifier doesn't handle some unicode strings #1669
Comments
This probably doesn't fix the underlying problem, but it will make it obvious by using the white background color and more easily help identify the problem case. Fixes xtermjs#1669
Oh thats weird, a char should not be empty, at least I am not aware of any code that initializes a line with no cells defined. |
@jerch nope, but it definitely happened as it was in the console 😄. I think it's related to the issue of unicode characters taking up multiple indexes in a string but only 1-2 cells. This fix will fix the issue and if we spot a link with a white underline we will have a test case for it. |
@Tyriar Edit: |
@jerch I was thinking more: |
Yepp thats it - if you insert spaces before the poo in a way that "http..." wraps to the next line the error above appears. This triggers the error in the demo:
Might be related to the right border nightmare, no clue yet. Edit: |
I merged the PR but let's reopen this to keep tracking it. |
@jerch yep it's in my queue 😃 Also just saw this (not running your change): Test text: |
Summary: xterm.js issue xtermjs/xterm.js#1669 made it into 3.7.0, which will throw frequent red boxes if it occurs. Patch into the linkifier (again) with a try-catch until the issue is fixed upstream. Reviewed By: kcaze Differential Revision: D9804256 fbshipit-source-id: d707f3f257682bc17209e3956da0ea0c790ddb2c
Summary: xterm.js issue xtermjs/xterm.js#1669 made it into 3.7.0, which will throw frequent red boxes if it occurs. Patch into the linkifier (again) with a try-catch until the issue is fixed upstream. Reviewed By: kcaze Differential Revision: D9804256 fbshipit-source-id: d707f3f257682bc17209e3956da0ea0c790ddb2c
I was this in VS Code today:
Failing on 140:
xterm.js/src/Linkifier.ts
Line 223 in bdb6647
I have had reports of some links not working, perhaps this is causing it (by failing on a row before?).
The text was updated successfully, but these errors were encountered: