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

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

Closed
mjaakkol opened this issue Apr 24, 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

@mjaakkol
Copy link

mjaakkol commented Apr 24, 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 Windows 10(amd64) v10.0 , screens 2560x1440, 3840x2160

Exception

Dart analysis server, SDK version 2.2.1-edge.f6768b6fb3e58bb704aca1e22a7ffd11e7ff07cb, server version 1.25.0, FATAL error: Failed to handle request: {id: 19114, method: edit.getFixes, params: {file: C:\Users\mjaakkol\Google Drive\Flutter\soteria\lib\model.dart, offset: 6404}, clientRequestTime: 1556145269779}
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)

Appended file below after the text
For additional log information, please append the contents of
file://C:\Users\mjaakkol\AppData\Local\Temp\report2.txt.

Dart analysis server, SDK version 2.2.1-edge.f6768b6fb3e58bb704aca1e22a7ffd11e7ff07cb, server version 1.25.0, FATAL error: Failed to handle request: {id: 19114, method: edit.getFixes, params: {file: C:\Users\mjaakkol\Google Drive\Flutter\soteria\lib\model.dart, offset: 6404}, clientRequestTime: 1556145269779}
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)
1556145269285 <= {"id":"19109","result":{}}
1556145269285 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1556145269318 <= {"id":"19110","result":{"id":"2577"}}
1556145269318 <= {"event":"analysis.errors","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","errors":[{"severity":"ERROR","type":"STATIC_WARNING","location":{"f
1556145269462 <= {"event":"completion.results","params":{"id":"2577","replacementOffset":6404,"replacementLength":7,"results":[{"kind":"INVOCATION","relevance":1057,"completion":"deviceIcon","selectio
1556145269466 <= {"event":"analysis.highlights","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","regions":[{"type":"DIRECTIVE","offset":0,"length":32},{"type":"
1556145269471 <= {"event":"analysis.navigation","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","regions":[{"offset":7,"length":12,"targets":[0]},{"offset":25,"
1556145269472 <= {"event":"analysis.closingLabels","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","labels":[]}}
1556145269474 <= {"event":"analysis.outline","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","n
1556145269475 <= {"event":"analysis.overrides","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","overrides":[{"offset":754,"length":8,"superclassMember":{"elemen
1556145269477 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1556145269480 <= {"event":"analysis.implemented","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","classes":[{"offset":3961,"length":6}],"members":[{"offset":456
1556145269482 => {"id":"19111","method":"analysis.updateContent","params":{"files":{"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart":{"type":"add","content":"import 'dart:async' 
1556145269482 => {"id":"19112","method":"completion.getSuggestions","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","offset":6412},"clientRequestTime":155614526
1556145269484 <= {"id":"19111","result":{}}
1556145269485 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1556145269515 <= {"id":"19112","result":{"id":"2578"}}
1556145269516 <= {"event":"analysis.errors","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","errors":[{"severity":"WARNING","type":"HINT","location":{"file":"C:
1556145269619 <= {"event":"completion.results","params":{"id":"2578","replacementOffset":6404,"replacementLength":8,"results":[{"kind":"INVOCATION","relevance":1057,"completion":"deviceIcon","selectio
1556145269622 <= {"event":"analysis.highlights","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","regions":[{"type":"DIRECTIVE","offset":0,"length":32},{"type":"
1556145269624 <= {"event":"analysis.navigation","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","regions":[{"offset":7,"length":12,"targets":[0]},{"offset":25,"
1556145269624 <= {"event":"analysis.closingLabels","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","labels":[]}}
1556145269625 <= {"event":"analysis.outline","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","n
1556145269625 <= {"event":"analysis.overrides","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","overrides":[{"offset":754,"length":8,"superclassMember":{"elemen
1556145269626 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1556145269626 <= {"event":"analysis.implemented","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","classes":[{"offset":3961,"length":6}],"members":[{"offset":456
1556145269776 => {"id":"19113","method":"edit.getFixes","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","offset":6346},"clientRequestTime":1556145269776}
1556145269779 <= {"id":"19113","result":{"fixes":[]}}
1556145269779 => {"id":"19114","method":"edit.getFixes","params":{"file":"C:\\Users\\mjaakkol\\Google Drive\\Flutter\\soteria\\lib\\model.dart","offset":6404},"clientRequestTime":1556145269779}
1556145269787 <= {"event":"server.error","params":{"isFatal":true,"message":"Failed to handle request: {id: 19114, method: edit.getFixes, params: {file: C:\\Users\\mjaakkol\\Google Drive\\Flutter\\sot
@devoncarew devoncarew changed the title Analyzer error NPE from FixProcessor._addFix_changeArgumentName.getNamedParameterNames (SDK 2.2.1-edge) Apr 24, 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 24, 2019
@devoncarew
Copy link
Member

closing as a dupe of #36729

# for free to join this conversation on GitHub. Already have an account? # 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