Skip to content
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

Code generation issues #67

Open
alanbosco003 opened this issue Apr 12, 2023 · 7 comments
Open

Code generation issues #67

alanbosco003 opened this issue Apr 12, 2023 · 7 comments

Comments

@alanbosco003
Copy link

getting this when using freezed :-

../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' has fewer named arguments than those of overridden method 'File.create'. Future<File> create({bool recursive = false}); ^ ../../../../../DevSDK/flutter/bin/cache/dart-sdk/lib/io/file.dart:232:16: Context: This is the overridden method ('create'). Future<File> create({bool recursive = false, bool exclusive = false}); ^ ../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' doesn't have the named parameter 'exclusive' of overridden method 'File.create'. Future<File> create({bool recursive = false}); ^ ../../../../../DevSDK/flutter/bin/cache/dart-sdk/lib/io/file.dart:232:16: Context: This is the overridden method ('create'). Future<File> create({bool recursive = false, bool exclusive = false}); ^ ../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart:22:8: Error: The method 'ForwardingFile.createSync' has fewer named arguments than those of overridden method 'File.createSync'. void createSync({bool recursive = false}) => ^ ../../../../../DevSDK/flutter/bin/cache/dart-sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync'). void createSync({bool recursive = false, bool exclusive = false}); ^ ../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart:22:8: Error: The method 'ForwardingFile.createSync' doesn't have the named parameter 'exclusive' of overridden method 'File.createSync'. void createSync({bool recursive = false}) => ^ ../../../../../DevSDK/flutter/bin/cache/dart-sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync'). void createSync({bool recursive = false, bool exclusive = false}); ^ ../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/backends/memory/memory_file.dart:57:8: Error: The method 'MemoryFile.createSync' has fewer named arguments than those of overridden method 'File.createSync'. void createSync({bool recursive = false}) { ^ ../../../../../DevSDK/flutter/bin/cache/dart-sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync'). void createSync({bool recursive = false, bool exclusive = false}); ^ ../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/backends/memory/memory_file.dart:57:8: Error: The method 'MemoryFile.createSync' doesn't have the named parameter 'exclusive' of overridden method 'File.createSync'. void createSync({bool recursive = false}) { ^ ../../../../../DevSDK/flutter/bin/cache/dart-sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync'). void createSync({bool recursive = false, bool exclusive = false}); ^ ../../../../../.pub-cache/hosted/pub.dev/pub_semver-2.1.0/lib/src/version_constraint.dart:96:13: Error: Method not found: 'FallThroughError'. throw FallThroughError(); ^^^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/build_runner-2.1.7/lib/src/build_script_generate/bootstrap.dart:76:40: Error: Method not found: 'NullThrownError'. final error = e[0] as Object? ?? NullThrownError();

@dromerolovo
Copy link
Member

Hi, @alanbosco003 . In which branch are you working on?

@alanbosco003
Copy link
Author

Master @dromerolovo

@alanbosco003
Copy link
Author

getting this in develop :- Failed to build build_runner:build_runner: ../../../../../.pub-cache/hosted/pub.dev/pub_semver-2.1.1/lib/src/version_constraint.dart:96:13: Error: Method not found: 'FallThroughError'. throw FallThroughError();

@dromerolovo
Copy link
Member

The master branch is way outdated, we are using development branch, can you checkout development and try using that branch?

@alanbosco003
Copy link
Author

alanbosco003 commented Apr 12, 2023

In develop I'm getting this error :- 'Failed to build build_runner:build_runner: ../../../../../.pub-cache/hosted/pub.dev/pub_semver-2.1.1/lib/src/version_constraint.dart:96:13: Error: Method not found: 'FallThroughError'. throw FallThroughError(); ^^^^^^^^^^^^^^^^'

@dromerolovo
Copy link
Member

dromerolovo commented Apr 13, 2023

I 'm not familiar with that error. Could you run flutter doctor -v and copy here the output, also can you copy here your pubspec.yaml file.

@Mr-Deee
Copy link

Mr-Deee commented Apr 25, 2023

upgrade flutter dependencies to major versions and flutter clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants