You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some unicode characters are replaced with bad characters when formatting document #2140
changed the title [-]VSCode may cause bad char after format code![/-][+]Some unicode characters are replaced with bad characters when formatting document[/+]on Dec 3, 2019
I was able to make a reliable test for this (6dd51d7) for this, and it passes with the fix, so I'm confident this was the issue. I'll land the change then the PR goes green.
You can use the test build linked above in the meantime. Thanks for the help tracking it down!
@mstepanov214 do you mean you can't reproduce with the new build, or the live stable build? It shouldn't reproduce in the test build, but in the live stable build you should be able to trigger it. I did it with a file with 130 lines of emoji:
Activity
DanTup commentedon Dec 3, 2019
@ashamp please comment here next time you see this with the info above and a log. Thanks!
[-]VSCode may cause bad char after format code![/-][+]Some unicode characters are replaced with bad characters when formatting document[/+]9 remaining items
DanTup commentedon Feb 24, 2020
This appears to have broken some things, so hold off with the test build for now - I'm investigating and will upload a new build when resolved!
DanTup commentedon Feb 24, 2020
Ok, new test build at https://github.com/Dart-Code/Dart-Code/releases/tag/v3.9.0-alpha.2 - see instructions above for installing.
Add a (skipped) test for #2140
Keep stdout buffers to concat instead of converting to strings
Uskip test for #2140
DanTup commentedon Feb 24, 2020
I was able to make a reliable test for this (6dd51d7) for this, and it passes with the fix, so I'm confident this was the issue. I'll land the change then the PR goes green.
You can use the test build linked above in the meantime. Thanks for the help tracking it down!
Keep stdout buffers to concat instead of converting to strings
Uskip test for #2140
mstepanov214 commentedon Feb 26, 2020
@DanTup Really, now I can't reproduce the problem in the old way. Thank you for your help!
DanTup commentedon Feb 26, 2020
@mstepanov214 do you mean you can't reproduce with the new build, or the live stable build? It shouldn't reproduce in the test build, but in the live stable build you should be able to trigger it. I did it with a file with 130 lines of emoji:
Then just insert some newlines somewhere and run Format Document and usually you'll get some corruption.
mstepanov214 commentedon Feb 26, 2020
@DanTup I meant the new build of course
DanTup commentedon Feb 29, 2020
Got it - thanks for confirming! :-)