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

Dart Analyzer Error Encountered a Dart Analysis Server error. #34957

Closed
wangyongf opened this issue Oct 28, 2018 · 1 comment
Closed

Dart Analyzer Error Encountered a Dart Analysis Server error. #34957

wangyongf opened this issue Oct 28, 2018 · 1 comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.

Comments

@wangyongf
Copy link

Analyzer Feedback from IntelliJ

Version information

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

Exception

Please append the contents of:
file:///private/var/folders/1y/7dgqcchx3qxbmp_3xz391z200000gn/T/report.txt

Dart analysis server, SDK version 2.1.0-edge.a2eb050044eec93f0844667b8b6132e858467e4e, server version 1.20.5, error: Analysis failed: /Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart
Exception: Element not found in summary: package:you_talk/pages/home_page.dart

Dart analysis server, SDK version 2.1.0-edge.a2eb050044eec93f0844667b8b6132e858467e4e, server version 1.20.5, error: Analysis failed: /Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart
Exception: Element not found in summary: package:you_talk/pages/home_page.dart;package:you_talk/pages/home_page.dart;Widget
#0 SummaryResynthesizer.getElement (package:analyzer/src/summary/resynthesize.dart:308:9)
#1 ElementHandle.actualElement (package:analyzer/src/dart/element/handle.dart:345:42)
#2 ClassElementHandle.actualElement (package:analyzer/src/dart/element/handle.dart:35:43)
#3 ClassElementHandle.type (package:analyzer/src/dart/element/handle.dart:111:29)
#4 _ReferenceInfo._buildType (package:analyzer/src/summary/resynthesize.dart:983:24)
#5 _ReferenceInfo.type (package:analyzer/src/summary/resynthesize.dart:929:15)
#6 _ReferenceInfo.buildType (package:analyzer/src/summary/resynthesize.dart:954:15)
#7 _UnitResynthesizer.buildType (package:analyzer/src/summary/resynthesize.dart:1367:28)
#8 SummaryResynthesizerContext.resolveTypeRef (package:analyzer/src/summary/resynthesize.dart:459:30)
#9 ExecutableElementImpl.returnType (package:analyzer/src/dart/element/element.dart:4008:64)
#10 DeclarationResolver.visitMethodDeclaration (package:analyzer/src/generated/declaration_resolver.dart:364:54)
#11 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7686:49)
#12 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:8304:20)
#13 ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1795:13)
#14 RecursiveAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:690:10)
#15 DeclarationResolver.visitClassDeclaration. (package:analyzer/src/generated/declaration_resolver.dart:89:13)
#16 DeclarationResolver._walk (package:analyzer/src/generated/declaration_resolver.dart:543:13)
#17 DeclarationResolver.visitClassDeclaration (package:analyzer/src/generated/declaration_resolver.dart:88:5)
#18 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1765:49)
#19 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:8304:20)
#20 CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2437:21)
#21 RecursiveAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:714:10)
#22 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2430:49)
#23 DeclarationResolver.resolve (package:analyzer/src/generated/declaration_resolver.dart:51:12)
#24 LibraryAnalyzer._resolveFile (package:analyzer/src/dart/analysis/library_analyzer.dart:566:31)
#25 LibraryAnalyzer._analyze. (package:analyzer/src/dart/analysis/library_analyzer.dart:102:9)
#26 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/libcompact_hash.dart:370:8)
#27 LibraryAnalyzer._analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:101:13)
#28 LibraryAnalyzer.analyze. (package:analyzer/src/dart/analysis/library_analyzer.dart:78:14)

#29 _PerformanceTagImpl.makeCurrentWhileAsync (package:analyzer/src/generated/utilities_general.dart:222:21)

#30 LibraryAnalyzer.analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:77:43)

#31 AnalysisDriver._computeAnalysisResult. (package:analyzer/src/dart/analysis/driver.dart:1244:71)

#32 PerformanceLog.runAsync (package:front_end/src/base/performance_logger.dart:52:21)

#33 AnalysisDriver._computeAnalysisResult (package:analyzer/src/dart/analysis/driver.dart:1220:20)

#34 AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1025:23)

#35 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:1916:24)

#36 AnalysisDriverScheduler.start (package:analyzer/src/dart/analysis/driver.dart:1857:5)
#37 new AnalysisServer (package:analysis_server/src/analysis_server.dart:397:29)
#38 SocketServer.createAnalysisServer (package:analysis_server/src/socket_server.dart:81:26)
#39 StdioAnalysisServer.serveStdio (package:analysis_server/src/server/stdio_server.dart:37:18)
#40 Driver.start. (package:analysis_server/src/server/driver.dart:504:21)
#41 _rootRun (dart:async/zone.dart:1124:13)
#42 _CustomZone.run (dart:async/zone.dart:1021:19)
#43 _runZoned (dart:async/zone.dart:1516:10)
#44 runZoned (dart:async/zone.dart:1463:12)
#45 Driver._captureExceptions (package:analysis_server/src/server/driver.dart:550:12)
#46 Driver.start (package:analysis_server/src/server/driver.dart:502:7)
#47 main (file:///b/build/slave/Mac_Engine/build/src/third_party/dart/pkg/analysis_server/bin/server.dart:12:11)
#48 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#49 main (file:///b/build/slave/Mac_Engine/build/src/third_party/dart/pkg/analysis_server/bin/server.dart:10:10)
#50 _startIsolate. (dart:isolate/runtime/libisolate_patch.dart:287:32)
#51 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)


1540740024424 => {"id":"17","method":"edit.getAssists","params":{"file":"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart","offset":611,"length":0},"clientRequestTime"
1540740024521 <= {"id":"17","result":{"assists":[]}}
1540740024555 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1540740024571 => {"id":"18","method":"analysis.updateContent","params":{"files":{"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart":{"type":"add","content":"import 'pa
1540740024571 => {"id":"19","method":"completion.getSuggestions","params":{"file":"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart","offset":612},"clientRequestTime":
1540740024573 <= {"id":"18","result":{}}
1540740024574 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1540740024624 <= {"id":"19","result":{"id":"1"}}
1540740024625 <= {"event":"completion.results","params":{"id":"1","replacementOffset":612,"replacementLength":0,"results":[],"isLast":true}}
1540740024656 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1540740024700 => {"id":"20","method":"analysis.updateContent","params":{"files":{"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart":{"type":"add","content":"import 'pa
1540740024700 => {"id":"21","method":"completion.getSuggestions","params":{"file":"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart","offset":613},"clientRequestTime":
1540740024701 <= {"id":"20","result":{}}
1540740024702 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1540740024730 <= {"id":"21","result":{"id":"2"}}
1540740024730 <= {"event":"completion.results","params":{"id":"2","replacementOffset":613,"replacementLength":0,"results":[],"isLast":true}}
1540740024734 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1540740024850 => {"id":"22","method":"edit.getAssists","params":{"file":"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart","offset":613,"length":0},"clientRequestTime"
1540740024851 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1540740024869 <= {"id":"22","result":{"assists":[]}}
1540740024874 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1540740026512 => {"id":"23","method":"edit.getAssists","params":{"file":"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart","offset":610,"length":3},"clientRequestTime"
1540740026513 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1540740026519 <= {"id":"23","result":{"assists":[]}}
1540740026522 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1540740027277 => {"id":"24","method":"analysis.updateContent","params":{"files":{"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart":{"type":"add","content":"import 'pa
1540740027289 <= {"id":"24","result":{}}
1540740027289 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1540740027298 => {"id":"25","method":"edit.getAssists","params":{"file":"/Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart","offset":603,"length":0},"clientRequestTime"
1540740027341 <= {"event":"server.error","params":{"isFatal":false,"message":"Analysis failed: /Users/laoma/Anything/projects/flutter/you_talk/you_talk/lib/pages/home_page.dart","stackTrace":"Exceptio


@vsmenon vsmenon added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Oct 29, 2018
@stereotype441
Copy link
Member

Duplicate of #34555

@stereotype441 stereotype441 marked this as a duplicate of #34555 Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants