Skip to content

Commit 15c35c2

Browse files
johnniwinthercommit-bot@chromium.org
authored andcommitted
[cfe] Update message for failure to run sound null safety
Closes #44149 Change-Id: Ifcfd951ec616132332aef15058b45d4a49f250cf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/171594 Reviewed-by: Michael Thomsen <[email protected]> Reviewed-by: Jens Johansen <[email protected]> Commit-Queue: Johnni Winther <[email protected]>
1 parent f2f0c1a commit 15c35c2

File tree

12 files changed

+39
-48
lines changed

12 files changed

+39
-48
lines changed

pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8714,13 +8714,12 @@ const Template<
87148714
_names)> templateStrongModeNNBDPackageOptOut = const Template<
87158715
Message Function(List<String> _names)>(
87168716
messageTemplate:
8717-
r"""This project cannot run with sound null safety, because one or more project dependencies do not
8718-
support null safety:
8717+
r"""Cannot run with sound null safety, because the following dependencies
8718+
don't support null safety:
87198719
87208720
#names
87218721
8722-
Run 'pub outdated --mode=null-safety' to determine if versions of your
8723-
dependencies supporting null safety are available.""",
8722+
For solutions, see https://dart.dev/go/unsound-null-safety""",
87248723
withArguments: _withArgumentsStrongModeNNBDPackageOptOut);
87258724

87268725
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
@@ -8737,13 +8736,12 @@ Message _withArgumentsStrongModeNNBDPackageOptOut(List<String> _names) {
87378736
String names = itemizeNames(_names);
87388737
return new Message(codeStrongModeNNBDPackageOptOut,
87398738
message:
8740-
"""This project cannot run with sound null safety, because one or more project dependencies do not
8741-
support null safety:
8739+
"""Cannot run with sound null safety, because the following dependencies
8740+
don't support null safety:
87428741
87438742
${names}
87448743
8745-
Run 'pub outdated --mode=null-safety' to determine if versions of your
8746-
dependencies supporting null safety are available.""",
8744+
For solutions, see https://dart.dev/go/unsound-null-safety""",
87478745
arguments: {'names': _names});
87488746
}
87498747

pkg/front_end/messages.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,13 +1325,12 @@ StrongModeNNBDButOptOut:
13251325

13261326
StrongModeNNBDPackageOptOut:
13271327
template: |
1328-
This project cannot run with sound null safety, because one or more project dependencies do not
1329-
support null safety:
1328+
Cannot run with sound null safety, because the following dependencies
1329+
don't support null safety:
13301330
13311331
#names
13321332
1333-
Run 'pub outdated --mode=null-safety' to determine if versions of your
1334-
dependencies supporting null safety are available.
1333+
For solutions, see https://dart.dev/go/unsound-null-safety
13351334
13361335
WeakWithStrongDillLibrary:
13371336
template: "Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety."

pkg/front_end/test/spell_checking_list_messages.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ compilesdk
1919
constructor(s)
2020
count.#count
2121
d
22+
dart.dev
2223
dart2js_server
2324
dart:ffi
2425
dart_runner
@@ -30,6 +31,7 @@ f
3031
flutter_runner
3132
futureor
3233
h
34+
https
3335
interop
3436
libraries.json
3537
list.filled
@@ -51,6 +53,7 @@ patch(es)
5153
pubspec.yaml
5254
re
5355
sdksummary
56+
solutions
5457
stacktrace
5558
stringokempty
5659
struct<#name

pkg/front_end/testcases/incremental_initialize_from_dill/can_get_rid_of_nnbd_issue_error.yaml.world.1.expect

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ main = main::main;
22
//
33
// Problems in component:
44
//
5-
// Error: This project cannot run with sound null safety, because one or more project dependencies do not
6-
// support null safety:
5+
// Error: Cannot run with sound null safety, because the following dependencies
6+
// don't support null safety:
77
//
88
// - package:foo
99
// - package:bar
1010
//
11-
// Run 'pub outdated --mode=null-safety' to determine if versions of your
12-
// dependencies supporting null safety are available.
11+
// For solutions, see https://dart.dev/go/unsound-null-safety
1312
//
1413
library from "package:bar/bar.dart" as bar {
1514

pkg/front_end/testcases/incremental_initialize_from_dill/can_get_rid_of_nnbd_issue_error.yaml.world.2.expect

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ main = main::main;
22
//
33
// Problems in component:
44
//
5-
// Error: This project cannot run with sound null safety, because one or more project dependencies do not
6-
// support null safety:
5+
// Error: Cannot run with sound null safety, because the following dependencies
6+
// don't support null safety:
77
//
88
// - package:foo
99
// - package:bar
1010
//
11-
// Run 'pub outdated --mode=null-safety' to determine if versions of your
12-
// dependencies supporting null safety are available.
11+
// For solutions, see https://dart.dev/go/unsound-null-safety
1312
//
1413
library from "package:bar/bar.dart" as bar {
1514

pkg/front_end/testcases/incremental_initialize_from_dill/can_get_rid_of_nnbd_issue_error.yaml.world.3.expect

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ main = main::main;
22
//
33
// Problems in component:
44
//
5-
// Error: This project cannot run with sound null safety, because one or more project dependencies do not
6-
// support null safety:
5+
// Error: Cannot run with sound null safety, because the following dependencies
6+
// don't support null safety:
77
//
88
// - package:bar
99
//
10-
// Run 'pub outdated --mode=null-safety' to determine if versions of your
11-
// dependencies supporting null safety are available.
10+
// For solutions, see https://dart.dev/go/unsound-null-safety
1211
//
1312
library from "package:bar/bar.dart" as bar {
1413

pkg/front_end/testcases/nnbd/strong_package_not_ok_from_dill/strong.dart.outline.expect

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
//
22
// Problems in component:
33
//
4-
// Error: This project cannot run with sound null safety, because one or more project dependencies do not
5-
// support null safety:
4+
// Error: Cannot run with sound null safety, because the following dependencies
5+
// don't support null safety:
66
//
77
// - package:opt_in_package/opt_out_lib.dart
88
// - package:opt_out_package
99
//
10-
// Run 'pub outdated --mode=null-safety' to determine if versions of your
11-
// dependencies supporting null safety are available.
10+
// For solutions, see https://dart.dev/go/unsound-null-safety
1211
//
1312
// pkg/front_end/testcases/nnbd/strong_package_not_ok_from_dill/opt_in_package/lib/opt_in_lib.dart: Error: Loaded library is compiled with unsound null safety and cannot be used in compilation for sound null safety.
1413
//

pkg/front_end/testcases/nnbd/strong_package_not_ok_from_dill/strong.dart.strong.expect

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
//
22
// Problems in component:
33
//
4-
// Error: This project cannot run with sound null safety, because one or more project dependencies do not
5-
// support null safety:
4+
// Error: Cannot run with sound null safety, because the following dependencies
5+
// don't support null safety:
66
//
77
// - package:opt_in_package/opt_out_lib.dart
88
// - package:opt_out_package
99
//
10-
// Run 'pub outdated --mode=null-safety' to determine if versions of your
11-
// dependencies supporting null safety are available.
10+
// For solutions, see https://dart.dev/go/unsound-null-safety
1211
//
1312
// pkg/front_end/testcases/nnbd/strong_package_not_ok_from_dill/opt_in_package/lib/opt_in_lib.dart: Error: Loaded library is compiled with unsound null safety and cannot be used in compilation for sound null safety.
1413
//

pkg/front_end/testcases/nnbd/strong_package_not_ok_from_dill/strong.dart.strong.transformed.expect

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
//
22
// Problems in component:
33
//
4-
// Error: This project cannot run with sound null safety, because one or more project dependencies do not
5-
// support null safety:
4+
// Error: Cannot run with sound null safety, because the following dependencies
5+
// don't support null safety:
66
//
77
// - package:opt_in_package/opt_out_lib.dart
88
// - package:opt_out_package
99
//
10-
// Run 'pub outdated --mode=null-safety' to determine if versions of your
11-
// dependencies supporting null safety are available.
10+
// For solutions, see https://dart.dev/go/unsound-null-safety
1211
//
1312
// pkg/front_end/testcases/nnbd/strong_package_not_ok_from_dill/opt_in_package/lib/opt_in_lib.dart: Error: Loaded library is compiled with unsound null safety and cannot be used in compilation for sound null safety.
1413
//

pkg/front_end/testcases/nnbd/strong_package_not_ok_from_source/strong.dart.outline.expect

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
//
99
// Problems in component:
1010
//
11-
// Error: This project cannot run with sound null safety, because one or more project dependencies do not
12-
// support null safety:
11+
// Error: Cannot run with sound null safety, because the following dependencies
12+
// don't support null safety:
1313
//
1414
// - package:opt_out_package
1515
//
16-
// Run 'pub outdated --mode=null-safety' to determine if versions of your
17-
// dependencies supporting null safety are available.
16+
// For solutions, see https://dart.dev/go/unsound-null-safety
1817
//
1918
library /*isNonNullableByDefault*/;
2019
import self as self;

0 commit comments

Comments
 (0)