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

Failed to handle completion domain request: completion.getSuggestions #39206

Closed
filiph opened this issue Nov 1, 2019 · 2 comments
Closed

Failed to handle completion domain request: completion.getSuggestions #39206

filiph opened this issue Nov 1, 2019 · 2 comments
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@filiph
Copy link
Contributor

filiph commented Nov 1, 2019

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-191.8026.42.35.5900203
  • 2.5.0-edge.1ef83b86ae637ffe7359173804cbc6d3fa25e6db
  • AI-191.8026.42.35.5900203, JRE 1.8.0_202-release-1483-b49-5587405x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.6, screens 2048x1152, 1680x1050 Retina

Exception

Dart analysis server, SDK version 2.5.0-edge.1ef83b86ae637ffe7359173804cbc6d3fa25e6db, server version 1.27.2, error: Failed to handle completion domain request: {id: 4832, method: completion.getSuggestions, params: {file: /Users/filiph/dev/flutter_egamebook/lib/main.dart, offset: 707}, clientRequestTime: 1572634359240}
NoSuchMethodError: The getter 'isSynthetic' was called on null.
Receiver: null
Tried calling: isSynthetic
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      isTokenDot (package:analysis_server/src/services/completion/dart/completion_ranking_internal.dart:139:17)
#2      testFollowingDot (package:analysis_server/src/services/completion/dart/completion_ranking_internal.dart:144:31)
#3      CompletionRanking.rerank (package:analysis_server/src/services/completion/dart/completion_ranking.dart:131:33)
<asynchronous suspension>
#4      DartCompletionManager.computeSuggestions (package:analysis_server/src/services/completion/dart/completion_manager.dart:185:35)
<asynchronous suspension>
#5      CompletionDomainHandler.computeSuggestions (package:analysis_server/src/domain_completion.dart:122:42)
<asynchronous suspension>
#6      CompletionDomainHandler.processRequest (package:analysis_server/src/domain_completion.dart:392:5)
<asynchronous suspension>
#7      CompletionDomainHandler.handleRequest.<anonymous closure> (package:analysis_server/src/domain_completion.dart:282:9)
#8      _rootRun (dart:async/zone.dart:1124:13)
#9      _CustomZone.run (dart:async/zone.dart:1021:19)
#10     _runZoned (dart:async/zone.dart:1516:10)
#11     runZoned (dart:async/zone.dart:1500:12)
#12     CompletionDomainHandler.handleRequest (package:analysis_server/src/domain_completion.dart:275:12)
#13     AnalysisServer.handleRequest.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:325:45)
#14     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#15     AnalysisServer.handleRequest.<anonymous closure> (package:analysis_server/src/analysis_server.dart:321:50)
#16     _rootRun (dart:async/zone.dart:1124:13)
#17     _CustomZone.run (dart:async/zone.dart:1021:19)
#18     _runZoned (dart:async/zone.dart:1516:10)
#19     runZoned (dart:async/zone.dart:1500:12)
#20     AnalysisServer.handleRequest (package:analysis_server/src/analysis_server.dart:320:5)
#21     ByteStreamServerChannel._readRequest.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:174:16)
#22     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#23     ByteStreamServerChannel._readRequest (package:analysis_server/src/channel/byte_stream_channel.dart:165:47)
#24     ByteStreamServerChannel.listen.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:110:26)
#25     _rootRunUnary (dart:async/zone.dart:1132:38)
#26     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#27     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#28     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#29     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#30     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#31     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#32     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#33     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:150:13)
#34     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:125:5)
#35     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#36     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#37     _rootRunUnary (dart:async/zone.dart:1132:38)
#38     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#39     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#40     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#41     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#42     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#43     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#44     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#45     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:241:7)
#46     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:312:20)
#47     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:305:5)
#48     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#49     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#50     _rootRunUnary (dart:async/zone.dart:1132:38)
#51     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#52     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#53     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#54     _BufferingStreamSubscription._add (dart:async/stream...

For additional log information, please append the contents of
file:///private/var/folders/np/gmysjh1j2159hv7wssjzrw440028jd/T/report2.txt.

Dart analysis server, SDK version 2.5.0-edge.1ef83b86ae637ffe7359173804cbc6d3fa25e6db, server version 1.27.2, error: Failed to handle completion domain request: {id: 4832, method: completion.getSuggestions, params: {file: /Users/filiph/dev/flutter_egamebook/lib/main.dart, offset: 707}, clientRequestTime: 1572634359240}
NoSuchMethodError: The getter 'isSynthetic' was called on null.
Receiver: null
Tried calling: isSynthetic
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 isTokenDot (package:analysis_server/src/services/completion/dart/completion_ranking_internal.dart:139:17)
#2 testFollowingDot (package:analysis_server/src/services/completion/dart/completion_ranking_internal.dart:144:31)
#3 CompletionRanking.rerank (package:analysis_server/src/services/completion/dart/completion_ranking.dart:131:33)

#4 DartCompletionManager.computeSuggestions (package:analysis_server/src/services/completion/dart/completion_manager.dart:185:35)

#5 CompletionDomainHandler.computeSuggestions (package:analysis_server/src/domain_completion.dart:122:42)

#6 CompletionDomainHandler.processRequest (package:analysis_server/src/domain_completion.dart:392:5)

#7 CompletionDomainHandler.handleRequest. (package:analysis_server/src/domain_completion.dart:282:9)
#8 _rootRun (dart:async/zone.dart:1124:13)
#9 _CustomZone.run (dart:async/zone.dart:1021:19)
#10 _runZoned (dart:async/zone.dart:1516:10)
#11 runZoned (dart:async/zone.dart:1500:12)
#12 CompletionDomainHandler.handleRequest (package:analysis_server/src/domain_completion.dart:275:12)
#13 AnalysisServer.handleRequest.. (package:analysis_server/src/analysis_server.dart:325:45)
#14 _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#15 AnalysisServer.handleRequest. (package:analysis_server/src/analysis_server.dart:321:50)
#16 _rootRun (dart:async/zone.dart:1124:13)
#17 _CustomZone.run (dart:async/zone.dart:1021:19)
#18 _runZoned (dart:async/zone.dart:1516:10)
#19 runZoned (dart:async/zone.dart:1500:12)
#20 AnalysisServer.handleRequest (package:analysis_server/src/analysis_server.dart:320:5)
#21 ByteStreamServerChannel._readRequest. (package:analysis_server/src/channel/byte_stream_channel.dart:174:16)
#22 _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#23 ByteStreamServerChannel._readRequest (package:analysis_server/src/channel/byte_stream_channel.dart:165:47)
#24 ByteStreamServerChannel.listen. (package:analysis_server/src/channel/byte_stream_channel.dart:110:26)
#25 _rootRunUnary (dart:async/zone.dart:1132:38)
#26 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#27 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#28 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#29 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#30 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#31 _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#32 _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#33 _LineSplitterSink._addLines (dart:convert/line_splitter.dart:150:13)
#34 _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:125:5)
#35 StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#36 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#37 _rootRunUnary (dart:async/zone.dart:1132:38)
#38 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#39 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#40 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#41 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#42 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#43 _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#44 _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#45 _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:241:7)
#46 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:312:20)
#47 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:305:5)
#48 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#49 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#50 _rootRunUnary (dart:async/zone.dart:1132:38)
#51 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#52 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#53 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#54 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#55 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#56 _StreamController._add (dart:async/stream_controller.dart:640:7)
#57 _StreamController.add (dart:async/stream_controller.dart:586:5)
#58 _Socket._onData (dart:io-patch/socket_patch.dart:1791:41)
#59 _rootRunUnary (dart:async/zone.dart:1136:13)
#60 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#61 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#62 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#63 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#64 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#65 _StreamController._add (dart:async/stream_controller.dart:640:7)
#66 _StreamController.add (dart:async/stream_controller.dart:586:5)
#67 new _RawSocket. (dart:io-patch/socket_patch.dart:1339:33)
#68 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:860:14)
#69 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#70 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#71 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#72 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

1572634358617 <= {"event":"flutter.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","outline":{"kind":"DART_ELEMENT","offset":0,"length":2396,"codeOffset":0,"codeLength":2
1572634358621 <= {"event":"completion.availableSuggestions","params":{"changedLibraries":[{"id":1447,"uri":"package:flutter_egamebook/main.dart","items":[{"label":"EdgeheadApp","declaringLibraryUri":"
1572634358622 <= {"event":"analysis.implemented","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","classes":[],"members":[]}}
1572634358923 => {"id":"4830","method":"edit.getAssists","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","offset":706,"length":0},"clientRequestTime":1572634358923}
1572634358925 <= {"id":"4830","result":{"assists":[{"message":"Convert to block documentation comment","edits":[{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","fileStamp":0,"edits":[{"off
1572634359240 => {"id":"4831","method":"analysis.updateContent","params":{"files":{"/Users/filiph/dev/flutter_egamebook/lib/main.dart":{"type":"add","content":"import 'package:flutter/material.dart';\
1572634359240 => {"id":"4832","method":"completion.getSuggestions","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","offset":707},"clientRequestTime":1572634359240}
1572634359240 <= {"id":"4831","result":{}}
1572634359257 <= {"id":"4832","result":{"id":"840"}}
1572634359257 <= {"event":"analysis.errors","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","errors":[{"severity":"INFO","type":"LINT","location":{"file":"/Users/filiph/dev/flutte
1572634359259 <= {"event":"analysis.highlights","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","regions":[{"type":"DIRECTIVE","offset":0,"length":39},{"type":"BUILT_IN","offset":
1572634359260 <= {"event":"analysis.navigation","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","regions":[{"offset":7,"length":31,"targets":[0]},{"offset":47,"length":31,"targets
1572634359261 <= {"event":"analysis.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","name":"<unit>","loca
1572634359261 <= {"event":"analysis.overrides","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","overrides":[{"offset":833,"length":5,"superclassMember":{"element":{"kind":"METHOD"
1572634359262 <= {"event":"flutter.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","outline":{"kind":"DART_ELEMENT","offset":0,"length":2397,"codeOffset":0,"codeLength":2
1572634359264 <= {"event":"completion.availableSuggestions","params":{"changedLibraries":[{"id":1447,"uri":"package:flutter_egamebook/main.dart","items":[{"label":"EdgeheadApp","declaringLibraryUri":"
1572634359264 <= {"event":"analysis.implemented","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","classes":[],"members":[]}}
1572634359613 => {"id":"4833","method":"analysis.updateContent","params":{"files":{"/Users/filiph/dev/flutter_egamebook/lib/main.dart":{"type":"add","content":"import 'package:flutter/material.dart';\
1572634359613 => {"id":"4834","method":"completion.getSuggestions","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","offset":708},"clientRequestTime":1572634359613}
1572634359613 <= {"id":"4833","result":{}}
1572634359625 <= {"id":"4834","result":{"id":"841"}}
1572634359625 <= {"event":"analysis.errors","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","errors":[{"severity":"INFO","type":"LINT","location":{"file":"/Users/filiph/dev/flutte
1572634359626 <= {"event":"analysis.highlights","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","regions":[{"type":"DIRECTIVE","offset":0,"length":39},{"type":"BUILT_IN","offset":
1572634359627 <= {"event":"analysis.navigation","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","regions":[{"offset":7,"length":31,"targets":[0]},{"offset":47,"length":31,"targets
1572634359627 <= {"event":"analysis.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","name":"<unit>","loca
1572634359627 <= {"event":"analysis.overrides","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","overrides":[{"offset":834,"length":5,"superclassMember":{"element":{"kind":"METHOD"
1572634359628 <= {"event":"flutter.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","outline":{"kind":"DART_ELEMENT","offset":0,"length":2398,"codeOffset":0,"codeLength":2
1572634359629 <= {"event":"completion.availableSuggestions","params":{"changedLibraries":[{"id":1447,"uri":"package:flutter_egamebook/main.dart","items":[{"label":"EdgeheadApp","declaringLibraryUri":"
1572634359629 <= {"event":"analysis.implemented","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/main.dart","classes":[],"members":[]}}
1572634359704 <= {"event":"server.error","params":{"isFatal":false,"message":"Failed to handle completion domain request: {id: 4832, method: completion.getSuggestions, params: {file: /Users/filiph/dev
@mraleph mraleph added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Nov 2, 2019
@srawlins srawlins added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) analyzer-crash-report Issues which have been reported due to an analysis server crash labels Nov 5, 2019
@srawlins
Copy link
Member

srawlins commented Nov 8, 2019

Thanks for opening this issue! You previously reported this at #38850; please follow along there.

@srawlins
Copy link
Member

srawlins commented Nov 8, 2019

Duplicate of #38850

@srawlins srawlins marked this as a duplicate of #38850 Nov 8, 2019
@srawlins srawlins closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants