Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Exception in refactoring #28148

Closed
bwilkerson opened this issue Dec 18, 2016 · 1 comment
Closed

Exception in refactoring #28148

bwilkerson opened this issue Dec 18, 2016 · 1 comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@bwilkerson
Copy link
Member

bwilkerson commented Dec 18, 2016

I attempted to rename a private field (Response._result in analysis_server/lib/plugin/protocol/protocol.dart) to be non-private and the following error occurred:

NoSuchMethodError:: The method 'intersects' was called on null.
Receiver:: null
Tried calling:: intersects(Instance of 'SourceRange'):#0      Object._noSuchMethod (dart::core-patch/object_patch.dart::44)
#1      Object.noSuchMethod (dart::core-patch/object_patch.dart::47)
#2      _ClassMemberValidator._getShadowingLocalElement (package::analysis_server/src/services/refactoring/rename_class_member.dart::258)
#3      _ClassMemberValidator.validate.<validate_async_body> (package::analysis_server/src/services/refactoring/rename_class_member.dart::193)
#4      _asyncThenWrapperHelper.<anonymous closure> (dart::async-patch/async_patch.dart::27)
#5      _rootRunUnary (dart::async/zone.dart::1158)
#6      _CustomZone.runUnary (dart::async/zone.dart::1037)
#7      _FutureListener.handleValue (dart::async/future_impl.dart::131)
#8      _Future._propagateToListeners.handleValueCallback (dart::async/future_impl.dart::637)
#9      _Future._propagateToListeners (dart::async/future_impl.dart::667)
#10     _Future._complete (dart::async/future_impl.dart::467)
#11     _SyncCompleter.complete (dart::async/future_impl.dart::52)
#12     SearchEngineImpl2.searchAllSubtypes.<searchAllSubtypes_async_body> (package::analysis_server/src/services/search/search_engine_internal2.dart::36)
#13     _asyncThenWrapperHelper.<anonymous closure> (dart::async-patch/async_patch.dart::27)
#14     _rootRunUnary (dart::async/zone.dart::1158)
#15     _CustomZone.runUnary (dart::async/zone.dart::1037)
#16     _FutureListener.handleValue (dart::async/future_impl.dart::131)
#17     _Future._propagateToListeners.handleValueCallback (dart::async/future_impl.dart::637)
#18     _Future._propagateToListeners (dart::async/future_impl.dart::667)
#19     _Future._complete (dart::async/future_impl.dart::467)
#20     _SyncCompleter.complete (dart::async/future_impl.dart::52)
#21     SearchEngineImpl2.searchAllSubtypes.<searchAllSubtypes_async_body>.addSubtypes.<addSubtypes_async_body> (package::analysis_server/src/services/search/search_engine_internal2.dart::33)
#22     _asyncThenWrapperHelper.<anonymous closure> (dart::async-patch/async_patch.dart::27)
#23     _rootRunUnary (dart::async/zone.dart::1158)
#24     _CustomZone.runUnary (dart::async/zone.dart::1037)
#25     _FutureListener.handleValue (dart::async/future_impl.dart::131)
#26     _Future._propagateToListeners.handleValueCallback (dart::async/future_impl.dart::637)
#27     _Future._propagateToListeners (dart::async/future_impl.dart::667)
#28     _Future._complete (dart::async/future_impl.dart::467)
#29     _SyncCompleter.complete (dart::async/future_impl.dart::52)
#30     SearchEngineImpl2._searchDirectSubtypes.<_searchDirectSubtypes_async_body> (package::analysis_server/src/services/search/search_engine_internal2.dart::89)
#31     _asyncThenWrapperHelper.<anonymous closure> (dart::async-patch/async_patch.dart::27)
#32     _rootRunUnary (dart::async/zone.dart::1158)
#33     _CustomZone.runUnary (dart::async/zone.dart::1037)
#34     _FutureListener.handleValue (dart::async/future_impl.dart::131)
#35     _Future._propagateToListeners.handleValueCallback (dart::async/future_impl.dart::637)
#36     _Future._propagateToListeners (dart::async/future_impl.dart::667)
#37     _Future._complete (dart::async/future_impl.dart::467)
#38     _SyncCompleter.complete (dart::async/future_impl.dart::52)
#39     Search.subTypes.<subTypes_async_body> (package::analyzer/src/dart/analysis/search.dart::115)
#40     _asyncThenWrapperHelper.<anonymous closure> (dart::async-patch/async_patch.dart::27)
#41     _rootRunUnary (dart::async/zone.dart::1158)
#42     _CustomZone.runUnary (dart::async/zone.dart::1037)
#43     _FutureListener.handleValue (dart::async/future_impl.dart::131)
#44     _Future._propagateToListeners.handleValueCallback (dart::async/future_impl.dart::637)
#45     _Future._propagateToListeners (dart::async/future_impl.dart::667)
#46     _Future._complete (dart::async/future_impl.dart::467)
#47     _SyncCompleter.complete (dart::async/future_impl.dart::52)
#48     Search._addResults.<_addResults_async_body> (package::analyzer/src/dart/analysis/search.dart::176)
#49     _asyncThenWrapperHelper.<anonymous closure> (dart::async-patch/async_patch.dart::27)
#50     _rootRunUnary (dart::async/zone.dart::1158)
#51     _CustomZone.runUnary (dart::async/zone.dart::1037)
#52     _FutureListener.handleValue (dart::async/future_impl.dart::131)
#53     _Future._propagateToListeners.handleValueCallback (dart::async/future_impl.dart::637)
#54     _Future._propagateToListeners (dart::async/future_impl.dart::667)
#55     _Future._completeWithValue (dart::async/future_impl.dart::477)
#56     _Future._asyncComplete.<anonymous closure> (dart::async/future_impl.dart::528)
#57     _rootRun (dart::async/zone.dart::1150)
#58     _CustomZone.run (dart::async/zone.dart::1026)
#59     _CustomZone.runGuarded (dart::async/zone.dart::924)
#60     _CustomZone.bindCallback.<anonymous closure> (dart::async/zone.dart::951)
#61     _microtaskLoop (dart::async/schedule_microtask.dart::41)
#62     _startMicrotaskLoop (dart::async/schedule_microtask.dart::50)
#63     _Timer._runTimers (dart::isolate-patch/timer_impl.dart::394)
#64     _Timer._handleMessage (dart::isolate-patch/timer_impl.dart::414)
#65     _RawReceivePortImpl._handleMessage (dart::isolate-patch/isolate_patch.dart::148)
@bwilkerson bwilkerson added analyzer-new-driver area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Dec 18, 2016
@devoncarew
Copy link
Member

Given how long ago this was - in the life of the new driver - is this safe to close?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants