question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dart formatter freezing

See original GitHub issue

image

Everytime I try to save a .dart file, this window appears and won’t go away (the file is not saved, and it keeps waiting forever)

Log
!! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !!

Dart Code extension: 3.9.1
Flutter extension: 3.9.1 (not activated)
VS Code: 1.43.2
Platform: win
Workspace type: Flutter
Multi-root?: false
Dart SDK:
    Loc: C:\Flutter\bin\cache\dart-sdk
    Ver: 2.7.2
Flutter SDK:
    Loc: C:\Flutter
    Ver: 1.12.13+hotfix.9
HTTP_PROXY: undefined
NO_PROXY: undefined

Wed Apr 08 2020 [12:02:57 GMT-0300 (Horário Padrão de Brasília)] Log file started
[12:03:01] [Analyzer] [Info] ==> {"id":"24","method":"analysis.updateContent","params":{"files":{"C:\\Projects\\MedConf\\Frontend\\lib\\data\\database.dart":{"edits":[{"id":"","length":0,"offset":847,"replacement":"\r\n"}],"type":"change"}}},"clientRequestTime":1586358181456}
[12:03:02] [Analyzer] [Info] ==> {"id":"25","method":"analysis.updateContent","params":{"files":{"C:\\Projects\\MedConf\\Frontend\\lib\\data\\database.dart":{"edits":[{"id":"","length":2,"offset":849,"replacement":""}],"type":"change"}}},"clientRequestTime":1586358182296}
[12:03:02] [Analyzer] [Info] ==> {"id":"26","method":"edit.format","params":{"file":"C:\\Projects\\MedConf\\Frontend\\lib\\data\\database.dart","lineLength":150,"selectionLength":0,"selectionOffset":0},"clientRequestTime":1586358182614}
Wed Apr 08 2020 [12:03:11 GMT-0300 (Horário Padrão de Brasília)] Log file ended

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:38 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
hiteshgarg002commented, May 25, 2021

Since Flutter v2.2, this issue is frequently occurring which is very annoying, I am having to restart the VS Code many a times.

2reactions
jonataslawcommented, May 25, 2021

Since I upgraded to Flutter 2.2 the problem has worsened. I’m getting this for all of my big projects

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strange formatting in VS Code using Dart / Flutter
The cause of that format is that there's too much nested Widgets and there's a small screen space. A workaround for this is...
Read more >
Concurrency in Dart
The app might appear to freeze, and any animation it performs might be jerky. A figure showing a tap handler with a too-long...
Read more >
Anyone else seeing dartfmt hanging VSCode lately? - Reddit
Seems to have started happening a couple of weeks ago for me. I see a dialog/alert saying "Saving 'file.dart': Runing 'Dart' formatter ......
Read more >
PlutoColumn class - pluto_grid library - Dart API - Pub.dev
Freeze the column to the left and right. If the total width of the non-frozen column is 200 or less, it is processed...
Read more >
Flutter VS code Error: Saving dirty editors is taking longer than ...
Dart Formatter freezing. VS CODE 에서 플러터를 사용할 때 save 를 하게 되면 가끔 아래의 에러가 뜨곤 한다. Saving dirty editors is taking ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found