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

update the package #93

Open
ritunjaykumar opened this issue Jul 8, 2024 · 0 comments
Open

update the package #93

ritunjaykumar opened this issue Jul 8, 2024 · 0 comments

Comments

@ritunjaykumar
Copy link

Hi teams,

Please update the package. I am getting error below error.


D:\startup\app\demo_application
dart run build_runner build
Building package executable... (1.0s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 277ms
[WARNING] Throwing away cached asset graph because the language version of some package(s) changed. This would most commonly happen when updating dependencies or changing your min sdk constraint.
[INFO] Cleaning up outputs from previous builds. completed, took 28ms
[INFO] Generating build script completed, took 78ms
[WARNING] Invalidated precompiled build script due to missing asset graph.
[INFO] Precompiling build script... completed, took 1.1s
[INFO] Building new asset graph completed, took 1.4s
[INFO] Checking for unexpected pre-existing outputs. completed, took 0ms
[WARNING] retrofit_generator on test/widget_test.dart:
Your current `analyzer` version may not fully support your current SDK version.

Analyzer language version: 3.1.0
SDK language version: 3.4.0

Please update to the latest `analyzer` version (6.7.0) by running
`flutter packages upgrade`.

If you are not getting the latest version by running the above command, you
can try adding a constraint like the following to your pubspec to start
diagnosing why you can't get the latest version:

dev_dependencies:
  analyzer: ^6.7.0

[WARNING] smartstruct_generator:mapper on lib/model/mapper/smart_struct.dart:
Bad state: No element
[WARNING] smartstruct_generator:mapper on lib/model/mapper/smart_struct.dart:
#0      Iterable.first (dart:core/iterable.dart:643:7)
#1      _chooseConstructor (package:smartstruct_generator/code_builders/method_builder.dart:121:71)
#2      _generateBody (package:smartstruct_generator/code_builders/method_builder.dart:62:29)
#3      buildMapperImplementation.<anonymous closure> (package:smartstruct_generator/code_builders/method_builder.dart:26:14)
#4      _$MethodBuilder.update (package:code_builder/src/specs/method.g.dart:323:33)
#5      new _$Method (package:code_builder/src/specs/method.g.dart:38:29)
#6      buildMapperImplementation (package:smartstruct_generator/code_builders/method_builder.dart:22:10)
#7      _generateMapperImplementationClass.<anonymous closure>.<anonymous closure> (package:smartstruct_generator/code_builders/class_builder.dart:83:15)
#8      MappedIterator.moveNext (dart:_internal/iterable.dart:403:20)
#9      List.addAll (dart:core-patch/growable_array.dart:319:13)
#10     ListBuilder.addAll (package:built_collection/src/list/list_builder.dart:98:14)
#11     _generateMapperImplementationClass.<anonymous closure> (package:smartstruct_generator/code_builders/class_builder.dart:80:17)
#12     _$ClassBuilder.update (package:code_builder/src/specs/class.g.dart:345:33)
#13     new _$Class (package:code_builder/src/specs/class.g.dart:40:28)
#14     _generateMapperImplementationClass (package:smartstruct_generator/code_builders/class_builder.dart:73:10)
#15     buildMapperClass.<anonymous closure> (package:smartstruct_generator/code_builders/class_builder.dart:16:11)
#16     _$LibraryBuilder.update (package:code_builder/src/specs/library.g.dart:226:33)
#17     new _$Library (package:code_builder/src/specs/library.g.dart:28:30)
#18     buildMapperClass (package:smartstruct_generator/code_builders/class_builder.dart:14:10)
#19     MapperGenerator.generateForAnnotatedElement (package:smartstruct_generator/generators/mapper_generator.dart:27:26)
#20     GeneratorForAnnotation.generate (package:source_gen/src/generator_for_annotation.dart:61:30)
#21     _generate (package:source_gen/src/builder.dart:342:33)
<asynchronous suspension>
#22     Stream.toList.<anonymous closure> (dart:async/stream.dart:1351:9)
<asynchronous suspension>
#23     _Builder._generateForLibrary (package:source_gen/src/builder.dart:107:9)
<asynchronous suspension>
#24     _Builder.build (package:source_gen/src/builder.dart:99:5)
<asynchronous suspension>
#25     runBuilder.buildForInput (package:build/src/generate/run_builder.dart:83:7)
<asynchronous suspension>
#26     Future.wait.<anonymous closure> (dart:async/future.dart:524:21)
<asynchronous suspension>
#27     scopeLogAsync.<anonymous closure> (package:build/src/builder/logging.dart:32:40)
<asynchronous suspension>

[SEVERE] smartstruct_generator:mapper on lib/model/mapper/smart_struct.dart:

Bad state: No element
dart:core                                                               Iterable.first
package:smartstruct_generator/code_builders/method_builder.dart 121:71  _chooseConstructor
package:smartstruct_generator/code_builders/method_builder.dart 62:29   _generateBody
package:smartstruct_generator/code_builders/method_builder.dart 26:14   buildMapperImplementation.<fn>
package:code_builder/src/specs/method.g.dart 323:33                     _$MethodBuilder.update
package:code_builder/src/specs/method.g.dart 38:29                      new _$Method
package:smartstruct_generator/code_builders/method_builder.dart 22:10   buildMapperImplementation
package:smartstruct_generator/code_builders/class_builder.dart 83:15    _generateMapperImplementationClass.<fn>.<fn>
dart:core                                                               List.addAll
package:built_collection/src/list/list_builder.dart 98:14               ListBuilder.addAll
package:smartstruct_generator/code_builders/class_builder.dart 80:17    _generateMapperImplementationClass.<fn>
package:code_builder/src/specs/class.g.dart 345:33                      _$ClassBuilder.update
package:code_builder/src/specs/class.g.dart 40:28                       new _$Class
package:smartstruct_generator/code_builders/class_builder.dart 73:10    _generateMapperImplementationClass
package:smartstruct_generator/code_builders/class_builder.dart 16:11    buildMapperClass.<fn>
package:code_builder/src/specs/library.g.dart 226:33                    _$LibraryBuilder.update
package:code_builder/src/specs/library.g.dart 28:30                     new _$Library
package:smartstruct_generator/code_builders/class_builder.dart 14:10    buildMapperClass
package:smartstruct_generator/generators/mapper_generator.dart 27:26    MapperGenerator.generateForAnnotatedElement
package:source_gen/src/generator_for_annotation.dart 61:30              GeneratorForAnnotation.generate
package:source_gen/src/builder.dart 342:33                              _generate
dart:async                                                              Stream.toList.<fn>
package:source_gen/src/builder.dart 107:9                               _Builder._generateForLibrary
package:source_gen/src/builder.dart 99:5                                _Builder.build

[INFO] Running build completed, took 14.9s
[INFO] Caching finalized dependency graph completed, took 73ms
[SEVERE] Failed after 15.0s
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

1 participant