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 version 2.2.1-edge) #36751

Closed
NguyenSen opened this issue Apr 25, 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

@NguyenSen
Copy link

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-181.5540.7.32.5056338
  • 2.2.1-edge.7418238239f885ba92093c44a1768f8ec93b121f
  • AI-181.5540.7.32.5056338, JRE 1.8.0_152-release-1136-b06x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1440x900

Exception

Please append the contents of:
file://C:\Users\Sennd\AppData\Local\Temp\report.txt

Dart analysis server, SDK version 2.2.1-edge.7418238239f885ba92093c44a1768f8ec93b121f, server version 1.25.0, FATAL error: Failed to handle request: {id: 140, method: edit.getFixes, params: {file: D:\git\OrderPlus\Phase1\src\app\order_plus\lib\main.dart, offset: 943}, clientRequestTime: 1556204952655}
NoSuchMethodError: The getter 'namedNames' was called on null.
Receiver: null
Tried calling: namedNames
#0      Object.noSuchMethod (dart:core/runtime/lib/object_patch.dart:50:5)
#1      FixProcessor._addFix_changeArgumentName.getNamedParameterNames (package:analysis_server/src/services/correction/fix_internal.dart:1075:27)
#2      FixProcessor._addFix_changeArgumentName (package:analysis_server/src/services/correction/fix_internal.dart:1091:48)
<asynchronous suspension>
#3      FixProcessor.compute (package:analysis_server/src/services/correction/fix_internal.dart:476: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)
@devoncarew devoncarew changed the title Send report NPE from FixProcessor._addFix_changeArgumentName.getNamedParameterNames (SDK version 2.2.1-edge) Apr 25, 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 25, 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