Skip to content

Some unicode characters are replaced with bad characters when formatting document #2140

Closed

Description

@ashamp commented on Nov 27, 2019, 5:02 PM UTC:

image

can anybody tell how to find witch plugin cause this bug?

This issue was moved by DanTup from flutter/flutter#45707.

Activity

  1. added this to the On Deck milestone on Dec 3, 2019
  2. added
    awaiting infoRequires more information from the customer to progress
    on Dec 3, 2019
  3. DanTup commented on Dec 3, 2019

    @DanTup
    Member

    @ashamp please comment here next time you see this with the info above and a log. Thanks!

  4. 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
  5. 9 remaining items

  6. DanTup commented on Feb 24, 2020

    @DanTup
    Member

    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!

  7. DanTup commented on Feb 24, 2020

    @DanTup
    Member

    Ok, new test build at https://github.com/Dart-Code/Dart-Code/releases/tag/v3.9.0-alpha.2 - see instructions above for installing.

  8. DanTup commented on Feb 24, 2020

    @DanTup
    Member

    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!

  9. added 2 commits that reference this issue on Feb 25, 2020
    6463d46
    4b88fd2
  10. modified the milestones: On Deck, v3.9.0 on Feb 25, 2020
  11. mstepanov214 commented on Feb 26, 2020

    @mstepanov214

    @DanTup Really, now I can't reproduce the problem in the old way. Thank you for your help!

  12. DanTup commented on Feb 26, 2020

    @DanTup
    Member

    @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:

    // 🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈
    // 🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈
    // 🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈
    // 🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈
    // 🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈🙈
    // x 130!
    

    Then just insert some newlines somewhere and run Format Document and usually you'll get some corruption.

  13. mstepanov214 commented on Feb 26, 2020

    @mstepanov214

    @DanTup I meant the new build of course

  14. DanTup commented on Feb 29, 2020

    @DanTup
    Member

    Got it - thanks for confirming! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions