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

Exception in search engine #27542

Closed
bwilkerson opened this issue Oct 7, 2016 · 2 comments
Closed

Exception in search engine #27542

bwilkerson opened this issue Oct 7, 2016 · 2 comments
Assignees
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@bwilkerson
Copy link
Member

I don't know why this is being reported back as a failure for analysis.setPriorityFiles. My best guess is that we're trying to send some subscribed to notification in response, but it seems like there must be a better way to report this error.

Dart analysis server, SDK version 1.20.0-dev.7.0, server version 1.17.0, FATAL error: Failed to handle request: {clientRequestTime: 1474551288311, params: {files: [x.dart, y.dart]}, method: analysis.setPriorityFiles, id: 801}
The null object does not have a method 'accept'.

NoSuchMethodError: method not found: 'accept'
Receiver: null
Arguments: [Instance of '_ContainingElementFinder']
#0 Object._noSuchMethod (dart:core-patch/object_patch.dart:44)
#1 Object.noSuchMethod (dart:core-patch/object_patch.dart:47)
#2 SearchMatch.element (package:analysis_server/src/services/search/search_engine.dart:166)
#3 getSubClasses.<getSubClasses_async_body>. (package:analysis_server/src/services/search/hierarchy.dart:127)
#4 MappedListIterable.elementAt (dart:_internal/iterable.dart:416)
#5 ListIterable.toSet (dart:_internal/iterable.dart:230)
#6 getSubClasses.<getSubClasses_async_body> (package:analysis_server/src/services/search/hierarchy.dart:127)
#7 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:27)
#8 _rootRunUnary (dart:async/zone.dart:1158)
#9 _CustomZone.runUnary (dart:async/zone.dart:1037)
#10 _FutureListener.handleValue (dart:async/future_impl.dart:131)
#11 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:637)
#12 _Future._propagateToListeners (dart:async/future_impl.dart:667)
#13 _Future._complete (dart:async/future_impl.dart:467)
#14 _SyncCompleter.complete (dart:async/future_impl.dart:52)
#15 SearchEngineImpl.searchAllSubtypes.<searchAllSubtypes_async_body> (package:analysis_server/src/services/search/search_engine_internal.dart:34)
#16 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:27)
#17 _rootRunUnary (dart:async/zone.dart:1158)
#18 _CustomZone.runUnary (dart:async/zone.dart:1037)
#19 _FutureListener.handleValue (dart:async/future_impl.dart:131)
#20 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:637)
#21 _Future._propagateToListeners (dart:async/future_impl.dart:667)
#22 _Future._complete (dart:async/future_impl.dart:467)
#23 _SyncCompleter.complete (dart:async/future_impl.dart:52)
#24 SearchEngineImpl._addMatches.<_addMatches_async_body> (package:analysis_server/src/services/search/search_engine_internal.dart:111)
#25 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:27)
#26 _rootRunUnary (dart:async/zone.dart:1158)
#27 _CustomZone.runUnary (dart:async/zone.dart:1037)
#28 _FutureListener.handleValue (dart:async/future_impl.dart:131)
#29 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:637)
#30 _Future._propagateToListeners (dart:async/future_impl.dart:667)
#31 _Future._complete (dart:async/future_impl.dart:467)
#32 _SyncCompleter.complete (dart:async/future_impl.dart:52)
#33 Index._mergeLocations.<_mergeLocations_async_body> (package:analysis_server/src/services/index/index.dart:141)
#34 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:27)
#35 _rootRunUnary (dart:async/zone.dart:1158)
#36 _CustomZone.runUnary (dart:async/zone.dart:1037)
#37 _FutureListener.handleValue (dart:async/future_impl.dart:131)
#38 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:637)
#39 _Future._propagateToListeners (dart:async/future_impl.dart:667)
#40 _Future._complete (dart:async/future_impl.dart:467)
#41 _SyncCompleter.complete (dart:async/future_impl.dart:52)
#42 _ContextIndex._mergeLocations.<_mergeLocations_async_body> (package:analysis_server/src/services/index/index.dart:319)
#43 Future.Future.microtask. (dart:async/future.dart:144)
#44 _rootRun (dart:async/zone.dart:1146)
#45 _CustomZone.run (dart:async/zone.dart:1026)
#46 _CustomZone.runGuarded (dart:async/zone.dart:924)
#47 _CustomZone.bindCallback. (dart:async/zone.dart:951)
#48 _rootRun (dart:async/zone.dart:1150)
#49 _CustomZone.run (dart:async/zone.dart:1026)
#50 _CustomZone.runGuarded (dart:async/zone.dart:924)
#51 _CustomZone.bindCallback. (dart:async/zone.dart:951)
#52 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#53 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
#54 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:394)
#55 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)
#56 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

@bwilkerson bwilkerson added P1 A high priority bug; for example, a single project is unusable or has many test failures area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-server type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Oct 7, 2016
@scheglov scheglov self-assigned this Oct 11, 2016
@scheglov
Copy link
Contributor

@scheglov
Copy link
Contributor

56bde6d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants