CollActionteam / collaction_cms

This is the UI interface for the CMS API
6 stars 3 forks source link

Code generation issues #67

Open alanbosco003 opened 1 year ago

alanbosco003 commented 1 year ago

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 commented 1 year ago

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

alanbosco003 commented 1 year ago

Master @dromerolovo

alanbosco003 commented 1 year ago

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 commented 1 year ago

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

alanbosco003 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

upgrade flutter dependencies to major versions and flutter clean