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

Analysis Server NoSuchMethodError: The getter 'isSynthetic' was called on null. #38850

Closed
filiph opened this issue Oct 11, 2019 · 1 comment
Closed
Labels
analyzer-completion Issues with the analysis server's code completion feature 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. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.

Comments

@filiph
Copy link
Contributor

filiph commented Oct 11, 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 1680x1050, 2048x1152 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: 8426, method: completion.getSuggestions, params: {file: /Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart, offset: 6282}, clientRequestTime: 1570837626696}
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...

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


Dart analysis server, SDK version 2.5.0-edge.1ef83b86ae637ffe7359173804cbc6d3fa25e6db, server version 1.27.2, error: Failed to handle completion domain request: {id: 8426, method: completion.getSuggestions, params: {file: /Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart, offset: 6282}, clientRequestTime: 1570837626696}
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)

1570837626471 <= {"event":"analysis.implemented","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","classes":[],"members":[]}}
1570837626696 => {"id":"8425","method":"analysis.updateContent","params":{"files":{"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart":{"type":"add","content":"import 'dart:coll
1570837626696 => {"id":"8426","method":"completion.getSuggestions","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","offset":6282},"clientRequestTime":157083
1570837626697 <= {"id":"8425","result":{}}
1570837626697 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1570837626741 <= {"id":"8426","result":{"id":"1288"}}
1570837626741 <= {"event":"analysis.errors","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","errors":[{"severity":"INFO","type":"HINT","location":{"file":"/
1570837626744 <= {"event":"analysis.highlights","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","regions":[{"type":"DIRECTIVE","offset":0,"length":25},{"typ
1570837626747 <= {"event":"analysis.navigation","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","regions":[{"offset":7,"length":17,"targets":[0]},{"offset":
1570837626756 <= {"event":"analysis.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT
1570837626757 <= {"event":"analysis.overrides","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","overrides":[{"offset":1151,"length":11,"superclassMember":{"
1570837626760 <= {"event":"flutter.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","outline":{"kind":"DART_ELEMENT","offset":0,"length":11175,"code
1570837626762 <= {"event":"completion.availableSuggestions","params":{"changedLibraries":[{"id":1094,"uri":"package:flutter_egamebook/widgets/active_choice_block.dart","items":[{"label":"ActiveChoiceB
1570837626762 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1570837626762 <= {"event":"analysis.implemented","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","classes":[],"members":[]}}
1570837626999 => {"id":"8427","method":"analysis.updateContent","params":{"files":{"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart":{"type":"add","content":"import 'dart:coll
1570837626999 => {"id":"8428","method":"completion.getSuggestions","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","offset":6283},"clientRequestTime":157083
1570837627000 <= {"id":"8427","result":{}}
1570837627000 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1570837627035 <= {"id":"8428","result":{"id":"1289"}}
1570837627035 <= {"event":"analysis.errors","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","errors":[{"severity":"INFO","type":"HINT","location":{"file":"/
1570837627037 <= {"event":"analysis.highlights","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","regions":[{"type":"DIRECTIVE","offset":0,"length":25},{"typ
1570837627039 <= {"event":"analysis.navigation","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","regions":[{"offset":7,"length":17,"targets":[0]},{"offset":
1570837627040 <= {"event":"analysis.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT
1570837627040 <= {"event":"analysis.overrides","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","overrides":[{"offset":1151,"length":11,"superclassMember":{"
1570837627042 <= {"event":"flutter.outline","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","outline":{"kind":"DART_ELEMENT","offset":0,"length":11176,"code
1570837627044 <= {"event":"completion.availableSuggestions","params":{"changedLibraries":[{"id":1094,"uri":"package:flutter_egamebook/widgets/active_choice_block.dart","items":[{"label":"ActiveChoiceB
1570837627044 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1570837627044 <= {"event":"analysis.implemented","params":{"file":"/Users/filiph/dev/flutter_egamebook/lib/widgets/active_choice_block.dart","classes":[],"members":[]}}
1570837627175 <= {"event":"server.error","params":{"isFatal":false,"message":"Failed to handle completion domain request: {id: 8426, method: completion.getSuggestions, params: {file: /Users/filiph/dev
@a-siva a-siva added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-crash-report Issues which have been reported due to an analysis server crash crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. labels Oct 12, 2019
@pq pq added the analyzer-completion Issues with the analysis server's code completion feature label Jan 22, 2020
@pq
Copy link
Member

pq commented Jan 30, 2020

Looks like this one was fixed in 118831e.

@pq pq closed this as completed Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-completion Issues with the analysis server's code completion feature 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. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash.
Projects
None yet
Development

No branches or pull requests

3 participants