Comments (5)
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.
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.
Please add --verbose
flag to see the line failing.
from gql.
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.
Fixing...
from gql.
Related Issues (20)
- [graphql_transport_ws] The new subprotocol doesn't auto-reconnect HOT 2
- OperationException(linkException: ResponseFormatException(originalException: type 'Null' is not a subtype of type 'String' in type cast HOT 1
- [Begging for support] Can the url be transformed? HOT 2
- [Support request] How can the client complete a subscription HOT 1
- [gql_websocket_link] Crash events on host lookup HOT 3
- LinkException as a sealed class HOT 2
- [WebSocketLink] inactivityTimeout causes a reconnect HOT 5
- More maintainers wanted
- gql_code_builder: allow adding custom builder factories for nested collections
- [gql_websocket_link] uuid package version conflict HOT 1
- [Question] Dio interceptor with retry not triggered when timeout() is invoked HOT 5
- dependencies issue HOT 1
- FR: Dynamic header HOT 1
- Issue with - distinguishing between null and absent values HOT 3
- How to make reconnect TransportWebSocketLink(TransportWsClientOptions())
- [BUG] Printer fails with string blocks HOT 5
- Type exception in gql_websocket_link with decoding incoming messages. HOT 1
- extract serializers from gql_code_builder to another package
- how to set headers in first http1.1 request before connection upgrade for TransportWebSocketLink?
- Random ServerException HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gql.