From 7c202ef73c15894d5e17fba9a5b557b75e413217 Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Wed, 16 Mar 2022 10:35:54 -0700 Subject: [PATCH] fix up the formatting a bit for directory watcher errors --- build_runner/CHANGELOG.md | 5 +++++ build_runner/lib/src/watcher/graph_watcher.dart | 2 +- build_runner/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build_runner/CHANGELOG.md b/build_runner/CHANGELOG.md index 5c8398e67..91956e859 100644 --- a/build_runner/CHANGELOG.md +++ b/build_runner/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.1.9-dev + +- Fix up the formatting a bit for the error message that is logged when we get + errors from the directory watcher. + ## 2.1.8 - Support null stack traces coming from the build runner script isolate. diff --git a/build_runner/lib/src/watcher/graph_watcher.dart b/build_runner/lib/src/watcher/graph_watcher.dart index 953c06842..d7678fe95 100644 --- a/build_runner/lib/src/watcher/graph_watcher.dart +++ b/build_runner/lib/src/watcher/graph_watcher.dart @@ -59,7 +59,7 @@ class PackageGraphWatcher { 'Error from directory watcher for package:${w.node.name}\n\n' 'If you see this consistently then it is recommended that ' 'you enable the polling file watcher with ' - '--use-polling-watcher.', + '--use-polling-watcher.\n\n', e, s); })) diff --git a/build_runner/pubspec.yaml b/build_runner/pubspec.yaml index 62b469933..069c24dbc 100644 --- a/build_runner/pubspec.yaml +++ b/build_runner/pubspec.yaml @@ -1,5 +1,5 @@ name: build_runner -version: 2.1.8 +version: 2.1.9-dev description: A build system for Dart code generation and modular compilation. repository: https://github.com/dart-lang/build/tree/master/build_runner