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

NoSuchMethodError: The getter 'declaredElement' was called on null in ResolutionMapImpl.elementDeclaredByCompilationUnit #34740

thargyi74 opened this Issue Oct 10, 2018 · 0 comments


None yet
3 participants

thargyi74 commented Oct 10, 2018

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-181.5540.7.32.5014246
  • 2.1.0-edge.a2eb050044eec93f0844667b8b6132e858467e4e
  • AI-181.5540.7.32.5014246, JRE 1.8.0_152-release-1136-b06x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.6 unknown, screens 1440x900


Please append the contents of:

Dart analysis server, SDK version 2.1.0-edge.a2eb050044eec93f0844667b8b6132e858467e4e, server version 1.20.5, FATAL error: Failed to handle request: {id: 7, method: edit.getAssists, params: {file: /Volumes/Ye Min Naing HD/Flutter Tensor Programming/gridview_tabs_steppers/lib/main.dart, offset: 391, length: 0}, clientRequestTime: 1539143675608}
NoSuchMethodError: The getter 'declaredElement' was called on null.
Receiver: null
Tried calling: declaredElement
#0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
#1      ResolutionMapImpl.elementDeclaredByCompilationUnit (package:analyzer/src/dart/ast/resolution_map.dart:50:12)
#2      EditDomainHandler.getAssists (package:analysis_server/src/edit/edit_domain.dart:179:25)
<asynchronous suspension>
#3      EditDomainHandler.handleRequest (package:analysis_server/src/edit/edit_domain.dart:342:9)
#4      AnalysisServer.handleRequest.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:750:45)
#5      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:210:15)
#6      AnalysisServer.handleRequest.<anonymous closure> (package:analysis_server/src/analysis_server.dart:746:50)
#7      _rootRun (dart:async/zone.dart:1124:13)
#8 (dart:async/zone.dart:1021:19)
#9      _runZoned (dart:async/zone.dart:1516:10)
#10     runZoned (dart:async/zone.dart:1500:12)

@bwilkerson bwilkerson added this to the Dart2.2 milestone Oct 10, 2018

@bwilkerson bwilkerson added the type-bug label Oct 10, 2018

@devoncarew devoncarew changed the title from I got this kind of error to NoSuchMethodError: The getter 'declaredElement' was called on null in ResolutionMapImpl.elementDeclaredByCompilationUnit Oct 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment