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
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Sonar - Write Clean JavaScript Code. Always.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • 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.

  • 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

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • Dart-Code

    Dart and Flutter support for VS Code

  • 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