GithubHelp home page GithubHelp logo

Comments (5)

rrousselGit avatar rrousselGit commented on May 30, 2024

Please provide a way to reproduce the issue.

from riverpod.

rrousselGit avatar rrousselGit commented on May 30, 2024

@dario-digregorio Could you try running dart run build_runner build -d -v? This should give you a stacktrace, which I will need

from riverpod.

dario-digregorio avatar dario-digregorio commented on May 30, 2024

Hi, here is the stacktrace:

I deleted the allPurchasedProductIdentifiersProvider and I can see that the builder uses the cached file. It does not matter if I change anything in the file, it still will use the old cached version. At least when I use watch. Sometimes changing the file a few times works. But sometimes it doesn't. The only solution that always works is to use dart run build_runner clean.

 dart run build_runner build -d -v
[INFO] Entrypoint:Generating build script...
[INFO] Entrypoint:Generating build script completed, took 190ms

[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Reading cached asset graph...
[INFO] BuildDefinition:Reading cached asset graph completed, took 176ms

[INFO] BuildDefinition:Checking for updates since last build...
[INFO] BuildDefinition:Checking for updates since last build completed, took 748ms

[INFO] Build:Running build...
[INFO] Build:Running build completed, took 25ms

[INFO] Build:Caching finalized dependency graph...
[INFO] Build:Caching finalized dependency graph completed, took 102ms

[SEVERE] envied_generator:envied on lib/app/state/purchases.viewmodel.dart (cached):

Could not resolve annotation for `AutoDisposeProvider<List<String>> allPurchasedProductIdentifiersProvider`.
package:source_gen/src/type_checker.dart 114:7              TypeChecker._computeConstantValue
package:source_gen/src/type_checker.dart 139:21             TypeChecker._annotationsWhere
dart:core                                                   Iterable.isEmpty
package:source_gen/src/type_checker.dart 73:20              TypeChecker.firstAnnotationOf
package:source_gen/src/library.dart 51:34                   LibraryReader.annotatedWith
dart:async                                                  _SyncStarIterator.moveNext
package:source_gen/src/generator_for_annotation.dart 52:42  GeneratorForAnnotation.generate
package:source_gen/src/builder.dart 355:33                  _generate

[SEVERE] json_serializable on lib/app/state/purchases.viewmodel.dart (cached):

Could not resolve annotation for `AutoDisposeProvider<List<String>> allPurchasedProductIdentifiersProvider`.
package:source_gen/src/type_checker.dart 114:7              TypeChecker._computeConstantValue
package:source_gen/src/type_checker.dart 139:21             TypeChecker._annotationsWhere
dart:core                                                   Iterable.isEmpty
package:source_gen/src/type_checker.dart 73:20              TypeChecker.firstAnnotationOf
package:source_gen/src/library.dart 51:34                   LibraryReader.annotatedWith
dart:async                                                  _SyncStarIterator.moveNext
package:json_serializable/src/json_part_builder.dart 59:22  _UnifiedGenerator.generate
package:source_gen/src/builder.dart 355:33                  _generate

[SEVERE] riverpod_generator on lib/app/state/purchases.viewmodel.dart (cached):

Could not resolve annotation for `AutoDisposeProvider<List<String>> allPurchasedProductIdentifiersProvider`.
package:source_gen/src/type_checker.dart 114:7             TypeChecker._computeConstantValue
package:source_gen/src/type_checker.dart 139:21            TypeChecker._annotationsWhere
dart:core                                                  Iterable.isEmpty
package:source_gen/src/type_checker.dart 95:20             TypeChecker.firstAnnotationOfExact
package:source_gen/src/library.dart 67:34                  LibraryReader.annotatedWithExact
dart:async                                                 _SyncStarIterator.moveNext
package:riverpod_generator/src/parse_generator.dart 23:37  ParserGenerator.generate
package:source_gen/src/builder.dart 355:33                 _generate

[SEVERE] freezed on lib/app/state/purchases.viewmodel.dart (cached):

Could not resolve annotation for `AutoDisposeProvider<List<String>> allPurchasedProductIdentifiersProvider`.
package:source_gen/src/type_checker.dart 114:7   TypeChecker._computeConstantValue
package:source_gen/src/type_checker.dart 139:21  TypeChecker._annotationsWhere
dart:core                                        Iterable.isEmpty
package:source_gen/src/type_checker.dart 73:20   TypeChecker.firstAnnotationOf
package:source_gen/src/type_checker.dart 80:7    TypeChecker.hasAnnotationOf
dart:_internal                                   WhereIterator.moveNext
package:freezed/src/parse_generator.dart 29:37   ParserGenerator.generate
package:source_gen/src/builder.dart 355:23       _generate

[SEVERE] Build:
Failed after 145ms

from riverpod.

rrousselGit avatar rrousselGit commented on May 30, 2024

That appears to be a completely different error, isn't it?
I don't see a stackoverflow

That specific issue was recently fixed in source_gen: dart-lang/source_gen#682
So it should go away soon enough

from riverpod.

dario-digregorio avatar dario-digregorio commented on May 30, 2024

That is right. I did not see this error for quiet some time. When it happens again I will reopen this issue :) Thank you for your time!

from riverpod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.