Anyone else seeing dartfmt hanging VSCode lately?

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

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • 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