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

NoSuchMethodError: method not found: 'library' #25884

Closed
zoechi opened this issue Feb 29, 2016 · 3 comments
Closed

NoSuchMethodError: method not found: 'library' #25884

zoechi opened this issue Feb 29, 2016 · 3 comments
Labels
analyzer-stability area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@zoechi
Copy link
Contributor

zoechi commented Feb 29, 2016

Dart analysis server, SDK version 1.15.0-edge.e4b800845b42381da08a1eac9f906d7ebb12a2a7, server version 1.14.0, error: Failed to send notification
The null object does not have a getter 'library'.

NoSuchMethodError: method not found: 'library'
Receiver: null
Arguments: []
# 0      Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
# 1      Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
# 2      _OverriddenElementsFinder._OverriddenElementsFinder (package:analysis_server/src/computer/computer_overrides.dart:141)
# 3      DartUnitOverridesComputer._addOverride (package:analysis_server/src/computer/computer_overrides.dart:66)
# 4      DartUnitOverridesComputer.compute (package:analysis_server/src/computer/computer_overrides.dart:43)
# 5      sendAnalysisNotificationOverrides.<anonymous closure> (package:analysis_server/src/operation/operation_analysis.dart:244)
# 6      _sendNotification.<anonymous closure> (package:analysis_server/src/operation/operation_analysis.dart:280)
# 7      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212)
# 8      _sendNotification (package:analysis_server/src/operation/operation_analysis.dart:278)
# 9      sendAnalysisNotificationOverrides (package:analysis_server/src/operation/operation_analysis.dart:243)
# 10     _DartOverridesOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:503)
# 11     AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:837)
# 12     Future.Future.<anonymous closure> (dart:async/future.dart:118)
# 13     _rootRun (dart:async/zone.dart:891)
# 14     _CustomZone.run (dart:async/zone.dart:790)
# 15     _CustomZone.runGuarded (dart:async/zone.dart:696)
# 16     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:721)
# 17     _rootRun (dart:async/zone.dart:895)
# 18     _CustomZone.run (dart:async/zone.dart:790)
# 19     _CustomZone.runGuarded (dart:async/zone.dart:696)
# 20     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:721)
# 21     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:16)
# 22     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385)
# 23     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)
# 24     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)
 
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:127)
    at com.jetbrains.lang.dart.analyzer.DartAnalysisServerService$1.serverError(DartAnalysisServerService.java:208)
    at com.google.dart.server.internal.BroadcastAnalysisServerListener.serverError(BroadcastAnalysisServerListener.java:180)
    at com.google.dart.server.internal.remote.processor.NotificationServerErrorProcessor.process(NotificationServerErrorProcessor.java:37)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processNotification(RemoteAnalysisServerImpl.java:502)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processResponse(RemoteAnalysisServerImpl.java:517)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.access$600(RemoteAnalysisServerImpl.java:49)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl$ServerResponseReaderThread.run(RemoteAnalysisServerImpl.java:868)

Looks similar to #24630

@anders-sandholm anders-sandholm added Type-Defect area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Feb 29, 2016
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed Type-Defect labels Mar 1, 2016
@bwilkerson bwilkerson added P1 A high priority bug; for example, a single project is unusable or has many test failures analyzer-stability labels Mar 7, 2016
@bwilkerson
Copy link
Member

It appears that we have a member of a class that doesn't know what class it's a part of. I don't know how to reproduce this, but have added debugging code in the hope that we can get more information (https://codereview.chromium.org/1775913005/).

@bwilkerson bwilkerson added P2 A bug or feature request we're likely to work on and removed P2 A bug or feature request we're likely to work on P1 A high priority bug; for example, a single project is unusable or has many test failures labels Nov 29, 2016
@zoechi
Copy link
Contributor Author

zoechi commented Aug 29, 2018

It's quite old. Should this be closed?

@bwilkerson
Copy link
Member

Having not been able to reproduce it I can't say for sure that it's fixed, but it does seem likely to be stale.

@zoechi zoechi closed this as completed Aug 29, 2018
dart-bot pushed a commit that referenced this issue Aug 29, 2018
R=brianwilkerson@google.com

Bug: #25884
Change-Id: I87741664f00200170990e9a13d2f639c41671bda
Reviewed-on: https://dart-review.googlesource.com/71924
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-stability area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants