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

NPE from FixProcessor._addFix_changeArgumentName.getNamedParameterNames (2.2.1-edge.) #36762

Closed
xuexin opened this issue Apr 26, 2019 · 1 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.

Comments

@xuexin
Copy link

xuexin commented Apr 26, 2019

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-183.5429.30.34.5452501
  • 2.2.1-edge.f6768b6fb3e58bb704aca1e22a7ffd11e7ff07cb
  • AI-183.5429.30.34.5452501, JRE 1.8.0_152-release-1343-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.4, screens 1440x900 Retina

Exception

Dart analysis server, SDK version 2.2.1-edge.f6768b6fb3e58bb704aca1e22a7ffd11e7ff07cb, server version 1.25.0, FATAL error: Failed to handle request: {id: 128407, method: edit.getFixes, params: {file: /Users/liaoyuhao/mblock/lib/box/series.dart, offset: 1354}, clientRequestTime: 1556265206457}
NoSuchMethodError: The getter 'namedNames' was called on null.
Receiver: null
Tried calling: namedNames
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1      FixProcessor._addFix_changeArgumentName.getNamedParameterNames (package:analysis_server/src/services/correction/fix_internal.dart:1149:27)
#2      FixProcessor._addFix_changeArgumentName (package:analysis_server/src/services/correction/fix_internal.dart:1165:48)
<asynchronous suspension>
#3      FixProcessor.compute (package:analysis_server/src/services/correction/fix_internal.dart:484:13)
<asynchronous suspension>
#4      DartFixContributor.computeFixes (package:analysis_server/src/services/correction/fix_internal.dart:70:41)
<asynchronous suspension>
#5      EditDomainHandler._computeServerErrorFixes (package:analysis_server/src/edit/edit_domain.dart:589:46)
<asynchronous suspension>
#6      EditDomainHandler.getFixes (package:analysis_server/src/edit/edit_domain.dart:264:32)
<asynchronous suspension>
#7      EditDomainHandler.handleRequest (package:analysis_server/src/edit/edit_domain.dart:367:9)
#8      AnalysisServer.handleRequest.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:337:45)
#9      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#10     AnalysisServer.handleRequest.<anonymous closure> (package:analysis_server/src/analysis_server.dart:333:50)
#11     _rootRun (dart:async/zone.dart:1124:13)
#12     _CustomZone.run (dart:async/zone.dart:1021:19)
#13     _runZoned (dart:async/zone.dart:1516:10)
#14     runZoned (dart:async/zone.dart:1500:12)
#15     AnalysisServer.handleRequest (package:analysis_server/src/analysis_server.dart:332:5)
#16     ByteStreamServerChannel._readRequest.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:174:16)
#17     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#18     ByteStreamServerChannel._readRequest (package:analysis_server/src/channel/byte_stream_channel.dart:165:47)
#19     ByteStreamServerChannel.listen.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:110:26)
#20     _rootRunUnary (dart:async/zone.dart:1132:38)
#21     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#23     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#24     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#25     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#26     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#27     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#28     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:150:13)
#29     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:125:5)
#30     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#31     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#32     _rootRunUnary (dart:async/zone.dart:1132:38)
#33     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#34     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#35     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#36     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#37     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#38     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#39     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#40     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:241:7)
#41     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:312:20)
#42     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:305:5)
#43     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#44     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#45     _rootRunUnary (dart:async/zone.dart:1132:38)
#46     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#47     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#48     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#49     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#50     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#51     _StreamController._add (dart:async/stream_controller.dart:640:7)
#52     _StreamController.add (dart:async/stream_controller.dart:586:5)
#53     _Socket._onData (dart:io-patch/socket_patch.dart:1774:41)
#54     _rootRunUnary (dart:async/zone.dart:1136:13)
#55     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#56     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#57     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#58     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#59     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#60     _StreamController._add (dart:async/stream_controller.dart:640:7)
#61     _StreamController.add (dart:async/stream_controller.dart:586:5)
#62     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1323:33)
#63     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:844:14)
#64     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#65     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#66     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#67     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)

For additional log information, please append the contents of
file:///private/var/folders/r_/_9bs4t6n7wd680stmrm0yk8m0000gn/T/report.txt.
Dart analysis server, SDK version 2.2.1-edge.f6768b6fb3e58bb704aca1e22a7ffd11e7ff07cb, server version 1.25.0, FATAL error: Failed to handle request: {id: 128407, method: edit.getFixes, params: {file: /Users/liaoyuhao/mblock/lib/box/series.dart, offset: 1354}, clientRequestTime: 1556265206457}

NoSuchMethodError: The getter 'namedNames' was called on null.
Receiver: null
Tried calling: namedNames
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1      FixProcessor._addFix_changeArgumentName.getNamedParameterNames (package:analysis_server/src/services/correction/fix_internal.dart:1149:27)
#2      FixProcessor._addFix_changeArgumentName (package:analysis_server/src/services/correction/fix_internal.dart:1165:48)
<asynchronous suspension>
#3      FixProcessor.compute (package:analysis_server/src/services/correction/fix_internal.dart:484:13)
<asynchronous suspension>
#4      DartFixContributor.computeFixes (package:analysis_server/src/services/correction/fix_internal.dart:70:41)
<asynchronous suspension>
#5      EditDomainHandler._computeServerErrorFixes (package:analysis_server/src/edit/edit_domain.dart:589:46)
<asynchronous suspension>
#6      EditDomainHandler.getFixes (package:analysis_server/src/edit/edit_domain.dart:264:32)
<asynchronous suspension>
#7      EditDomainHandler.handleRequest (package:analysis_server/src/edit/edit_domain.dart:367:9)
#8      AnalysisServer.handleRequest.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:337:45)
#9      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#10     AnalysisServer.handleRequest.<anonymous closure> (package:analysis_server/src/analysis_server.dart:333:50)
#11     _rootRun (dart:async/zone.dart:1124:13)
#12     _CustomZone.run (dart:async/zone.dart:1021:19)
#13     _runZoned (dart:async/zone.dart:1516:10)
#14     runZoned (dart:async/zone.dart:1500:12)
#15     AnalysisServer.handleRequest (package:analysis_server/src/analysis_server.dart:332:5)
#16     ByteStreamServerChannel._readRequest.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:174:16)
#17     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#18     ByteStreamServerChannel._readRequest (package:analysis_server/src/channel/byte_stream_channel.dart:165:47)
#19     ByteStreamServerChannel.listen.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:110:26)
#20     _rootRunUnary (dart:async/zone.dart:1132:38)
#21     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#23     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#24     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#25     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#26     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#27     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#28     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:150:13)
#29     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:125:5)
#30     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#31     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#32     _rootRunUnary (dart:async/zone.dart:1132:38)
#33     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#34     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#35     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#36     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#37     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#38     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#39     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#40     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:241:7)
#41     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:312:20)
#42     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:305:5)
#43     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#44     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#45     _rootRunUnary (dart:async/zone.dart:1132:38)
#46     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#47     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#48     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#49     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#50     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#51     _StreamController._add (dart:async/stream_controller.dart:640:7)
#52     _StreamController.add (dart:async/stream_controller.dart:586:5)
#53     _Socket._onData (dart:io-patch/socket_patch.dart:1774:41)
#54     _rootRunUnary (dart:async/zone.dart:1136:13)
#55     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#56     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#57     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#58     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#59     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#60     _StreamController._add (dart:async/stream_controller.dart:640:7)
#61     _StreamController.add (dart:async/stream_controller.dart:586:5)
#62     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1323:33)
#63     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:844:14)
#64     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#65     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#66     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#67     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)
1556265204372 <= {"event":"analysis.overrides","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","overrides":[{"offset":427,"length":11,"superclassMember":{"element":{"kind":"METHOD","nam
1556265204373 <= {"event":"flutter.outline","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","outline":{"kind":"DART_ELEMENT","offset":0,"length":2210,"codeOffset":0,"codeLength":2210,"d
1556265204377 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1556265204385 <= {"event":"analysis.implemented","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","classes":[],"members":[]}}
1556265204388 <= {"id":"128392","result":{"assists":[{"message":"Add padding","edits":[{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","fileStamp":0,"edits":[{"offset":957,"length":710,"replacem
1556265204388 <= {"id":"128395","result":{"assists":[{"message":"Add padding","edits":[{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","fileStamp":0,"edits":[{"offset":957,"length":710,"replacem
1556265204389 <= {"id":"128398","result":{"assists":[{"message":"Add padding","edits":[{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","fileStamp":0,"edits":[{"offset":957,"length":710,"replacem
1556265204389 <= {"id":"128401","result":{"assists":[{"message":"Add padding","edits":[{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","fileStamp":0,"edits":[{"offset":957,"length":710,"replacem
1556265204428 => {"id":"128402","method":"edit.getAssists","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","offset":957,"length":710},"clientRequestTime":1556265204428}
1556265204436 <= {"id":"128402","result":{"assists":[{"message":"Add padding","edits":[{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","fileStamp":0,"edits":[{"offset":957,"length":710,"replacem
1556265205973 => {"id":"128403","method":"analysis.updateContent","params":{"files":{"/Users/liaoyuhao/mblock/lib/box/series.dart":{"type":"add","content":"import 'package:flutter/cupertino.dart';\nim
1556265205981 <= {"id":"128403","result":{}}
1556265205981 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1556265206047 <= {"event":"analysis.errors","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","errors":[{"severity":"ERROR","type":"STATIC_WARNING","location":{"file":"/Users/liaoyuhao/mb
1556265206054 <= {"event":"analysis.highlights","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","regions":[{"type":"DIRECTIVE","offset":0,"length":40},{"type":"BUILT_IN","offset":0,"len
1556265206054 <= {"event":"analysis.navigation","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","regions":[{"offset":7,"length":32,"targets":[0]},{"offset":48,"length":31,"targets":[1]}
1556265206056 <= {"event":"analysis.closingLabels","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","labels":[{"offset":957,"length":711,"label":"StreamBuilder"},{"offset":1133,"length":
1556265206057 <= {"event":"analysis.outline","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","name":"<unit>","location":
1556265206058 <= {"event":"analysis.overrides","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","overrides":[{"offset":427,"length":11,"superclassMember":{"element":{"kind":"METHOD","nam
1556265206063 <= {"event":"flutter.outline","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","outline":{"kind":"DART_ELEMENT","offset":0,"length":2211,"codeOffset":0,"codeLength":2211,"d
1556265206066 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1556265206069 <= {"event":"analysis.implemented","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","classes":[],"members":[]}}
1556265206080 => {"id":"128404","method":"edit.getAssists","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","offset":957,"length":710},"clientRequestTime":1556265206080}
1556265206094 <= {"id":"128404","result":{"assists":[{"message":"Add padding","edits":[{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","fileStamp":0,"edits":[{"offset":957,"length":711,"replacem
1556265206113 => {"id":"128405","method":"edit.getAssists","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","offset":1354,"length":0},"clientRequestTime":1556265206113}
1556265206115 => {"id":"128406","method":"edit.getAssists","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","offset":957,"length":711},"clientRequestTime":1556265206115}
1556265206117 <= {"id":"128405","result":{"assists":[]}}
1556265206121 <= {"id":"128406","result":{"assists":[{"message":"Add padding","edits":[{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","fileStamp":0,"edits":[{"offset":957,"length":711,"replacem
1556265206457 => {"id":"128407","method":"edit.getFixes","params":{"file":"/Users/liaoyuhao/mblock/lib/box/series.dart","offset":1354},"clientRequestTime":1556265206457}
1556265206482 <= {"event":"server.error","params":{"isFatal":true,"message":"Failed to handle request: {id: 128407, method: edit.getFixes, params: {file: /Users/liaoyuhao/mblock/lib/box/series.dart, o
@devoncarew devoncarew changed the title Analyzer Feedback from IntelliJ NPE from FixProcessor._addFix_changeArgumentName.getNamedParameterNames (2.2.1-edge.) Apr 26, 2019
@devoncarew devoncarew 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 labels Apr 26, 2019
@devoncarew
Copy link
Member

closing as a dupe of #36729

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.
Projects
None yet
Development

No branches or pull requests

2 participants