-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart format hangs when reading from stdin #46600
Comments
This seems to be a big problem if "dart format" takes much longer than the existing "dartfmt" in our published SDKs. The checked-in SDK for all platforms has just been updated to 2.14.0-293.0.dev. I have a Windows machine and can check this, as does Johnni. Will not be able to check myself until later tonight or tomorrow, so someone else may want to do it. |
I can reproduce this myself on Windows. Seems to happen whenever a Dart file is changed and We should be safe to just pass FYI @munificent |
PRESUBMIT.py FIXES=#46600 Change-Id: I69358185b5a8dfc863f17cd4beb0209592d3be09 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206681 Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
Since a workaround has been submitted is this still a P1 ? maybe we should edit the title of the bug to something like 'dart format' does not notify when writing to |
We have seen problems like this before on Windows, with stdin behaving differently, especially with pipes and EOF. Those issues have been closed, so I think we should keep this open, reproduce the failure, and find out the problem with end of stdin on windows. |
This is not a windows specific issue,
Formatting from |
@munificent can you take a look? |
Yes, I'll look into this today. |
Fix out in dart_style: dart-lang/dart_style#1046 I can't repro in dart_style itself, but I have a test for dartdev that repros the issue. I'll add that when I roll dart_style 2.0.3 into the SDK. |
This is fixed on master now. Rolling into the SDK: https://dart-review.googlesource.com/c/sdk/+/207502 When that looks good, I'll publish 2.0.3 and close this. |
This has rolled into the SDK, into Google, and been published as 2.0.3 now. |
After cb6d0e0 landed the presubmit performed by
git cl upload
takes a very long time - or doesn't complete, maybe - on my Windows machine. I've let the presubmit run for at least 15 minutes before giving up and instead bypassing the presubmit checks. The only output at that point beingI have verified that this behavior starts at the mentioned commit.
The text was updated successfully, but these errors were encountered: