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

Build runner fail #67

Open
MotiBartov opened this issue Nov 15, 2020 · 0 comments
Open

Build runner fail #67

MotiBartov opened this issue Nov 15, 2020 · 0 comments

Comments

@MotiBartov
Copy link

Hi

I am having problems to run build runner on Flutter with this library
I've tried many approaches but no success

The error I'm getting:
Any help will be appreciated!!

// **************************************************************************
// JaguarHttpGenerator
// **************************************************************************

/* NoSuchMethodError: The getter 'type' was called on null.
Receiver: null
Tried calling: type

#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 parse (package:jaguar_retrofit_gen/parser/parser.dart:141:45)
#2 JaguarHttpGenerator.generateForAnnotatedElement (package:jaguar_retrofit_gen/generator/generator.dart:26:22)
#3 GeneratorForAnnotation.generate (package:source_gen/src/generator_for_annotation.dart:47:30)
#4 _generate (package:source_gen/src/builder.dart:280:35)

#5 _Builder._generateForLibrary (package:source_gen/src/builder.dart:73:15)
#6 _Builder.build (package:source_gen/src/builder.dart:67:11)

#7 runBuilder.buildForInput (package:build/src/generate/run_builder.dart:55:21)
#8 MappedListIterable.elementAt (dart:_internal/iterable.dart:417:31)
#9 ListIterator.moveNext (dart:_internal/iterable.dart:343:26)
#10 Future.wait (dart:async/future.dart:406:26)
#11 runBuilder. (package:build/src/generate/run_builder.dart:61:36)
#12 _rootRun (dart:async/zone.dart:1190:13)
#13 _CustomZone.run (dart:async/zone.dart:1093:19)
#14 _runZoned (dart:async/zone.dart:1630:10)
#15 runZonedGuarded (dart:async/zone.dart:1618:12)
#16 runZoned (dart:async/zone.dart:1547:12)
#17 scopeLogAsync (package:build/src/builder/logging.dart:22:3)
#18 runBuilder (package:build/src/generate/run_builder.dart:61:9)
#19 _SingleBuild._runForInput... (package:build_runner_core/src/generate/build_impl.dart:486:19)
#20 _NoOpBuilderActionTracker.trackStage (package:build_runner_core/src/generate/performance_tracker.dart:302:15)
#21 _SingleBuild._runForInput.. (package:build_runner_core/src/generate/build_impl.dart:484:23)

#22 _SingleBuild._runForInput.. (package:build_runner_core/src/generate/build_impl.dart)
#23 NoOpTimeTracker.track (package:timing/src/timing.dart:222:44)
#24 _SingleBuild._runForInput. (package:build_runner_core/src/generate/build_impl.dart:441:22)
#25 Pool.withResource (package:pool/pool.dart:127:28)

#26 _SingleBuild._runForInput (package:build_runner_core/src/generate/build_impl.dart:437:17)
#27 _SingleBuild._runBuilder. (package:build_runner_core/src/generate/build_impl.dart:375:38)
#28 MappedIterator.moveNext (dart:_internal/iterable.dart:392:20)
#29 Future.wait (dart:async/future.dart:406:26)
#30 _SingleBuild._runBuilder (package:build_runner_core/src/generate/build_impl.dart:374:36)
#31 _SingleBuild._runPhases.. (package:build_runner_core/src/generate/build_impl.dart:320:20)
#32 _rootRunUnary (dart:async/zone.dart:1198:47)
#33 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#34 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#35 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#36 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#37 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#38 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#39 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#40 _SingleBuild._matchingPrimaryInputs (package:build_runner_core/src/generate/build_impl.dart)
#41 _rootRunUnary (dart:async/zone.dart:1198:47)
#42 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#43 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#44 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#45 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#46 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#47 Future.wait. (dart:async/future.dart:414:23)
#48 _rootRunUnary (dart:async/zone.dart:1198:47)
#49 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#50 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#51 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#52 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#53 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#54 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
#55 _rootRun (dart:async/zone.dart:1190:13)
#56 _CustomZone.run (dart:async/zone.dart:1093:19)
#57 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#58 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#59 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#60 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#61 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#62 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
`

Thanks and regards.

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