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

Found element with null library #35895

Open
yolkhovyy opened this Issue Feb 10, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@yolkhovyy
Copy link

yolkhovyy commented Feb 10, 2019

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-182.5107.16.33.5264788
  • 2.0.0
  • AI-182.5107.16.33.5264788, JRE 1.8.0_152-release-1248-b01x64 JetBrains s.r.o, OS Linux(amd64) v4.15.0-45-generic unknown, screens 2560x1080

Exception

Dart analysis server, SDK version 2.0.0, server version 1.20.3, error: Found element with null library: State
null exception
#0      AnalysisServer.sendServerErrorNotification (package:analysis_server/src/analysis_server.dart:849:31)
#1      AnalysisLogger.logError (package:analysis_server/src/analysis_logger.dart:44:12)
#2      ElementResolver.visitCommentReference (package:analyzer/src/generated/element_resolver.dart:292:16)
#3      CommentReferenceImpl.accept (package:analyzer/src/dart/ast/ast.dart:2319:49)
#4      ResolverVisitor.visitCommentReference (package:analyzer/src/generated/resolver.dart:5715:10)
#5      CommentReferenceImpl.accept (package:analyzer/src/dart/ast/ast.dart:2319:49)
#6      NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:8219:20)
#7      CommentImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2242:17)
#8      ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:6361:10)
#9      PartialResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:4901:18)
#10     UnifyingAstVisitor.visitComment (package:analyzer/dart/ast/visitor.dart:2943:35)
#11     ResolverVisitor.safelyVisitComment (package:analyzer/src/generated/resolver.dart:5431:13)
#12     ResolverVisitor.visitFunctionDeclarationInScope (package:analyzer/src/generated/resolver.dart:6105:5)
#13     ScopedVisitor.visitFunctionDeclaration (package:analyzer/src/generated/resolver.dart:7693:7)
#14     ResolverVisitor.visitFunctionDeclaration (package:analyzer/src/generated/resolver.dart:6094:13)
#15     FunctionDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:5279:49)
#16     ResolverVisitor.visitCompilationUnit (package:analyzer/src/generated/resolver.dart:5732:25)
#17     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2506:49)
#18     LibraryAnalyzer._resolveFile (package:analyzer/src/dart/analysis/library_analyzer.dart:711:10)
#19     LibraryAnalyzer._analyze.<anonymous closure> (package:analyzer/src/dart/analysis/library_analyzer.dart:130:9)
#20     __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/libcompact_hash.dart:363:8)
#21     LibraryAnalyzer._analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:129:13)
#22     LibraryAnalyzer.analyze.<anonymous closure> (package:analyzer/src/dart/analysis/library_analyzer.dart:104:16)
<asynchronous suspension>
#23     _PerformanceTagImpl.makeCurrentWhileAsync (package:analyzer/src/generated/utilities_general.dart:222:21)
<asynchronous suspension>
#24     LibraryAnalyzer.analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:98:43)
<asynchronous suspension>
#25     AnalysisDriver._computeAnalysisResult.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1283:71)
<asynchronous suspension>
#26     PerformanceLog.runAsync (package:front_end/src/base/performance_logger.dart:52:21)
<asynchronous suspension>
#27     AnalysisDriver._computeAnalysisResult (package:analyzer/src/dart/analysis/driver.dart:1240:20)
<asynchronous suspension>
#28     AnalysisDriver._computeIndex (package:analyzer/src/dart/analysis/driver.dart:1331:43)
<asynchronous suspension>
#29     AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:958:45)
<asynchronous suspension>
#30     AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2005:24)
<asynchronous suspension>
#31     AnalysisDriverScheduler.start (package:analyzer/src/dart/analysis/driver.dart:1946:5)
#32     new AnalysisServer (package:analysis_server/src/analysis_server.dart:402:29)
#33     SocketServer.createAnalysisServer (package:analysis_server/src/socket_server.dart:79:26)
#34     StdioAnalysisServer.serveStdio (package:analysis_server/src/server/stdio_server.dart:37:18)
#35     Driver.start.<anonymous closure> (package:analysis_server/src/server/driver.dart:441:19)
#36     _rootRun (dart:async/zone.dart:1124:13)
#37     _CustomZone.run (dart:async/zone.dart:1021:19)
#38     _runZoned (dart:async/zone.dart:1516:10)
#39     runZoned (dart:async/zone.dart:1463:12)
#40     Driver._captureExceptions (package:analysis_server/src/server/driver.dart:483:12)
#41     Driver.start (package:analysis_server/src/server/driver.dart:440:5)
#42     main (file:///b/build/slave/dart-sdk-linux-stable/build/sdk/pkg/analysis_server/bin/server.dart:12:11)
#43     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:277:32)
#44     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

For additional log information, please append the contents of
file:///tmp/report.txt.

@stereotype441 stereotype441 changed the title Dart Analyzer Error Found element with null library Feb 12, 2019

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