Giter Site home page Giter Site logo

Comments (5)

smkhalsa avatar smkhalsa commented on July 21, 2024

Here's the error that's thrown:

NoSuchMethodError: The method '+' was called on null.
Receiver: null
Tried calling: +("#data")
[SEVERE] gql_build:data_builder on lib/services/graphql/audio_history_query.graphql (cached):

from gql.

smkhalsa avatar smkhalsa commented on July 21, 2024

We should probably add some unit tests to avoid these types of regressions in the future. When I first started researching dart builders, I looked a bit at build_test, but I haven't dug deep into it yet.

If you have any sample tests for the builders, it'd be helpful to review them.

from gql.

klavs avatar klavs commented on July 21, 2024

Please add --verbose flag to see the line failing.

from gql.

smkhalsa avatar smkhalsa commented on July 21, 2024

Here's the verbose output:

[SEVERE] gql_build:data_builder on lib/services/graphql/audio_history_query.graphql (cached):

NoSuchMethodError: The method '+' was called on null.
Receiver: null
Tried calling: +("#data")
dart:core                                                               Object.noSuchMethod
package:gql_code_builder/src/operation/data.dart 143:51                 _buildSelectionSetDataClasses.<fn>.<fn>
dart:core                                                               new List.from
package:built_collection/src/list/list_builder.dart 52:19               ListBuilder.replace
package:built_collection/src/list/list_builder.dart 28:45               new ListBuilder
package:gql_code_builder/src/operation/data.dart 139:24                 _buildSelectionSetDataClasses.<fn>
package:code_builder/src/specs/class.g.dart 304:33                      _$ClassBuilder.update
package:code_builder/src/specs/class.g.dart 44:28                       new _$Class
package:gql_code_builder/src/operation/data.dart 136:5                  _buildSelectionSetDataClasses
package:gql_code_builder/src/operation/data.dart 186:31                 _buildSelectionSetDataClasses.<fn>
dart:_internal                                                          ExpandIterator.moveNext
package:gql_code_builder/src/operation/data.dart 185:51                 _buildSelectionSetDataClasses
package:gql_code_builder/src/operation/data.dart 165:22                 _buildSelectionSetDataClasses.<fn>
dart:_internal                                                          ExpandIterator.moveNext
package:gql_code_builder/src/operation/data.dart 164:10                 _buildSelectionSetDataClasses
package:gql_code_builder/src/operation/data.dart 165:22                 _buildSelectionSetDataClasses.<fn>
dart:_internal                                                          ExpandIterator.moveNext
package:gql_code_builder/src/operation/data.dart 164:10                 _buildSelectionSetDataClasses
package:gql_code_builder/src/operation/data.dart 51:10                  _buildOperationDataClasses
package:gql_code_builder/src/operation/data.dart 26:21                  buildDataClasses.<fn>
dart:core                                                               Iterable.toList
package:gql_code_builder/src/operation/data.dart 32:12                  buildDataClasses
package:gql_code_builder/data.dart 12:11                                buildDataLibrary.<fn>
package:code_builder/src/specs/library.g.dart 108:33                    _$LibraryBuilder.update
package:code_builder/src/specs/library.g.dart 26:30                     new _$Library
package:gql_code_builder/data.dart 9:5                                  buildDataLibrary
package:gql_build/src/data_builder.dart 27:21                           DataBuilder.build
package:build                                                           runBuilder
package:build_runner_core/src/generate/build_impl.dart 486:19           _SingleBuild._runForInput.<fn>.<fn>.<fn>
package:build_runner_core/src/generate/performance_tracker.dart 302:15  _NoOpBuilderActionTracker.trackStage
package:build_runner_core/src/generate/build_impl.dart 484:23           _SingleBuild._runForInput.<fn>.<fn>
package:timing/src/timing.dart 222:44                                   NoOpTimeTracker.track
package:build_runner_core/src/generate/build_impl.dart 441:22           _SingleBuild._runForInput.<fn>
package:pool/pool.dart 127:28                                           Pool.withResource
package:build_runner_core/src/generate/build_impl.dart 437:17           _SingleBuild._runForInput
package:build_runner_core/src/generate/build_impl.dart 375:38           _SingleBuild._runBuilder.<fn>
dart:async                                                              Future.wait
package:build_runner_core/src/generate/build_impl.dart 374:36           _SingleBuild._runBuilder
dart:async                                                              _AsyncAwaitCompleter.start
package:build_runner_core/src/generate/build_impl.dart 372:40           _SingleBuild._runBuilder
package:build_runner_core/src/generate/build_impl.dart 320:20           _SingleBuild._runPhases.<fn>.<fn>
dart:async                                                              _completeOnAsyncReturn
package:build_runner_core/src/generate/build_impl.dart                  _SingleBuild._matchingPrimaryInputs

from gql.

klavs avatar klavs commented on July 21, 2024

Fixing...

from gql.

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.