Anyone else seeing dartfmt hanging VSCode lately?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/FlutterDev

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • OPS - Build and Run Open Source Unikernels
  • SonarQube - Static code analysis for 29 languages.
  • GitHub repo sdk

    The Dart SDK, including the VM, dart2js, core libraries, and more.

    For those seeing this on macOS and usually after running a Flutter app or modifying pubspec, I suspect it's https://github.com/dart-lang/sdk/issues/45996. This was a bug in the file watcher code that could deadlock when a watcher was removed. It's been fixed very recently but that fix is currently only on the Flutter master channel.

  • GitHub repo Visual Studio Code

    Visual Studio Code

    Yes. If you are Big Sur, this should fix it https://github.com/microsoft/vscode/issues/107103#issuecomment-731664821

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo Dart-Code

    Dart and Flutter support for VS Code

  • GitHub repo dart_style

    An opinionated formatter/linter for Dart code

    There are some other possibilities - such as complex code being slow to format (for example I hit https://github.com/dart-lang/dart_style/issues/1022 and originally thought it was a repro for this issue), or that the server is busy doing its initial synchronous scan of the workspace, though those should be temporary and the format should eventually complete so it's probably not what most people are reporting here.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts