Skip to content

VSCode may cause bad char after format code! #45707

Closed

Description

@ashamp

image

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

Activity

  1. ashamp commented on Nov 27, 2019

    @ashamp
    Author

    this is a very serious bug

  2. ashamp commented on Nov 27, 2019

    @ashamp
    Author

    image

  3. iapicca commented on Nov 28, 2019

    @iapicca

    Hi @ashamp
    could you please provide your flutter doctor -v?
    If you print the bad char do you get the correct output?
    Thank you

  4. added
    a: typographyText rendering, possibly libtxt
    toolAffects the "flutter" command-line tool. See also t: labels.
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    and removed on Nov 28, 2019
  5. ashamp commented on Nov 28, 2019

    @ashamp
    Author

    Hi @ashamp
    could you please provide your flutter doctor -v?
    If you print the bad char do you get the correct output?
    Thank you

    flutter doctor -v
    [✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.4 18E226, locale zh-Hans-CN)
    • Flutter version 1.9.1+hotfix.6 at /Users/macbook/flutter
    • Framework revision 68587a0 (3 months ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200
    • Dart version 2.5.0

    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/macbook/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

    [✓] Xcode - develop for iOS and macOS (Xcode 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    • CocoaPods version 1.8.4

    [✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

    [✓] VS Code (version 1.40.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.6.0

    [✓] Connected device (1 available)
    • iPhone 11 • 37700F44-81F6-408B-AA15-9D8E114DA4E4 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-1 (simulator)

    • No issues found!

  6. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 28, 2019
  7. ashamp commented on Nov 28, 2019

    @ashamp
    Author

    I take a screen shot show a toast .the message means "please enter 6 digit mobile verify code".
    image

  8. added
    c: renderingUI glitches reported at the engine/skia or impeller rendering level
    p: material_uimaterial_ui package in flutter/packages
    on Nov 28, 2019
  9. zanderso commented on Dec 2, 2019

    @zanderso
    Member
  10. DanTup commented on Dec 2, 2019

    @DanTup
    Contributor

    @ashamp am I understanding correctly that when you're running "Format Code" in VS Code, it is messing up the characters directly in the editor? (eg. it's not a Flutter bug, but VS Code or the VS Code extension?).

    I tried here but have been unable to reproduce it. Does it occur in a small isolated .dart file (without Flutter)?

    If so, could you paste some specific characters that trigger the issue for you and confirm which file encoding is shown in the VS Code status bar?

    Screenshot 2019-12-02 at 7 30 31 pm

    Can you also try running the Dart: Capture Logs command from the VS Code command palette (you can leave everything ticked) and then format the document (causing the bug), and then click Cancel on the logging notification to get a log file (note: this log may contain some of the contents of your source files - please check there is nothing sensitive before sharing).

    Thanks!

  11. ashamp commented on Dec 3, 2019

    @ashamp
    Author

    @ashamp am I understanding correctly that when you're running "Format Code" in VS Code, it is messing up the characters directly in the editor? (eg. it's not a Flutter bug, but VS Code or the VS Code extension?).

    I use shift+option+F code format before commit code to git server,than it is messing up the characters directly in the editor

    I tried here but have been unable to reproduce it. Does it occur in a small isolated .dart file (without Flutter)?

    not always occur,I have not find the regularity too.

    If so, could you paste some specific characters that trigger the issue for you and confirm which file encoding is shown in the VS Code status bar?

    Screenshot 2019-12-02 at 7 30 31 pm

    when I have this bug occur next time ,I will try to save the file so it can be recur this bug.the encoding is UTF-8,the file is created by vscode.

    Can you also try running the Dart: Capture Logs command from the VS Code command palette (you can leave everything ticked) and then format the document (causing the bug), and then click Cancel on the logging notification to get a log file (note: this log may contain some of the contents of your source files - please check there is nothing sensitive before sharing).

    ok,next time I will try this.
    Thanks!

  12. DanTup commented on Dec 3, 2019

    @DanTup
    Contributor

    Ok great. Let's move this to the Dart-Code repository since I don't think it's a Flutter bug.

    /move Dart-Code/Dart-Code

  13. ghost closed this as completedon Dec 3, 2019
  14. github-actions commented on Aug 25, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Aug 25, 2021
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

    a: typographyText rendering, possibly libtxtc: renderingUI glitches reported at the engine/skia or impeller rendering levelp: material_uimaterial_ui package in flutter/packagestoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions