-
Notifications
You must be signed in to change notification settings - Fork 208
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
Error: The setter 'useSummary' isn't defined for the class 'FolderBasedDartSdk'. #2745
Comments
cc @scheglov Is there a replacement for this? build/build_resolvers/lib/src/resolver.dart Lines 328 to 330 in 0ae4a85
What is the migration path? Should we remove the assignment? Is there a min version we should use where it is safe to not assign this field? |
The same thing, killed the assembly CI/CD |
For now, it helps dependency_overrides:
analyzer: 0.39.11 |
|
hot fix dependencies:
...
meta: '>=0.9.0 <1.2.0'
dev_dependencies:
...
test: '<=1.15.2'
build_runner: '>=1.0.0 <2.0.0'
analyzer: '<=0.39.11' # https://github.com/dart-lang/build/issues/2745 |
Do you have a plan to move this into the public API so we don't get broken again the next time it's changed? |
Fixes #2745 This remains behind a `src/` import, but it is the new approach to building the summary.
Its result is probably not very useful unless you use some other non-API things like |
Fixes #2745 This leaves behind a `src/` import, but it is the new approach to building the summary.
This should be resolved with a |
R=brianwilkerson@google.com Bug: dart-lang/build#2745 (comment) Change-Id: I144dd99be5e5a210e27f3b5b5b54951659479511 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153384 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
It's all good now. Thanks @natebosch for the fast fix |
I get this error too.
I do not have a direct dependency on Edit: my build_resolvers:
dependency: transitive
description:
name: build_resolvers
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.10" @natebosch do you have any idea what makes is use |
@Max-Might You can add Edit: Actually it looks like your pubspec.lock is updated to the latest, so I am not totally sure what is happening. Is this a flutter project? |
Yep, it is a Flutter 1.17.5 project. Here is the pubspec file: name: <redacted>
description: <redacted>
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.3.0+54
environment:
sdk: ">=2.8.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_cupertino_localizations: ^1.0.1
intl: ^0.16.1
rxdart: ^0.24.1
moor_flutter: ^3.0.0
get_it: ^4.0.2
dio: ^3.0.9
encrypt: ^4.0.2
flutter_secure_storage: ^3.3.3
toast: ^0.1.5
battery: ^1.0.1
rx_shared_preferences: ^1.3.1
tuple: ^1.0.3
flutter_date_pickers: ^0.1.0
badges: ^1.1.1
sprintf: ^4.0.2
auto_size_text: ^2.1.0
device_info: ^0.4.2+4
location:
git:
url: git://github.com/PrimeSwiftArt/flutterlocation.git
ref: background-mode
app_settings: ^3.0.1
timezone: ^0.5.7
get_version: ^0.2.2
url_launcher: ^5.4.10
image_picker: ^0.6.7+1
file_picker: ^1.11.0+2
path_provider: ^1.6.10
open_file: ^3.0.1
path: ^1.6.4
crypto: ^2.1.3
flutter_typeahead: ^1.8.3
flutter_dialogs: 1.0.4
flutter_slidable: ^0.5.4
move_to_background: ^1.0.1
uuid: 2.1.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
moor_generator: ^3.1.0
r_flutter: ^0.6.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- lib/assets/images/
- lib/assets/i18n/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
builders:
moor_generator: ^3.1.0
r_flutter: ^0.6.0
r_flutter:
intl: lib/assets/i18n/en.arb |
I removed the |
Oh, if you were using the |
Failure on travis: https://travis-ci.org/github/tekartik/sembast.dart/jobs/705520892
dart --version
)2.8.4
build_runner 0.7.12
)build_runner (no constraint)
pub run build_runner test -- -p chrome
Linux
Chrome
test: 1.15.2 just updated
The text was updated successfully, but these errors were encountered: