Closed rayk closed 4 years ago
Update
Channel stable, v1.17.3
does not resolve the problem, but a different issue appears.[INFO] Generating build script...
Unhandled exception:
NoSuchMethodError: The getter 'name' was called on null.
Receiver: null
Tried calling: name
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 _findBuilderApplications.<anonymous closure> (package:build_runner/src/build_script_generate/build_script_generate.dart:63:24)
#2 _CustomHashMap.[]= (dart:collection-patch/collection_patch.dart:278:31)
#3 stronglyConnectedComponents.strongConnect (package:graphs/src/strongly_connected_components.dart:49:12)
#4 stronglyConnectedComponents.strongConnect (package:graphs/src/strongly_connected_components.dart:57:22)
#5 stronglyConnectedComponents.strongConnect (package:graphs/src/strongly_connected_components.dart:57:22)
#6 stronglyConnectedComponents.strongConnect (package:graphs/src/strongly_connected_components.dart:57:22)
#7 stronglyConnectedComponents (package:graphs/src/strongly_connected_components.dart:76:50)
#8 _findBuilderApplications (package:build_runner/src/build_script_generate/build_script_generate.dart:59:27)
<asynchronous suspension>
#9 _generateBuildScript (package:build_runner/src/build_script_generate/build_script_generate.dart:28:26)
#10 logTimedAsync (package:build_runner_core/src/logging/logging.dart:25:30)
#11 generateBuildScript (package:build_runner/src/build_script_generate/build_script_generate.dart:25:5)
#12 generateAndRun (package:build_runner/src/build_script_generate/bootstrap.dart:49:31)
<asynchronous suspension>
#13 main (file:///Users/rayk/development/flutter/.pub-cache/hosted/pub.dartlang.org/build_runner-1.10.0/bin/build_runner.dart:87:30)
<asynchronous suspension>
#14 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
I've a similar error message. Just downgrade to build_runner 1.9.0. You can still use newest flutter version.
Update
May have located the package causing the problem, through a process of reverts and elimination so can not be sure.
By removing hive_generator: ^0.7.0+2
& reverting back to Channel beta, 1.18.0-11.1.pre
the problem is resolved, as to what is causing the issue within hive_generator I have not yet work this out. I am going to close this issue in favour of an issue over at hive.
Duplicate of #2721
The Error:
Trigger By:
flutter pub run build_runner build --delete-conflicting-outputs -v
The same outcome is seen with:flutter pub run build_runner build -v
The Environment
flutter downgrade
flutter clean
and ``flutter pub cache repair```Any help appreciated, a bit stuck looking for workaround.