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

Analyzer Feedback from IntelliJ #36975

Open
kikuchy opened this issue May 15, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@kikuchy
Copy link

commented May 15, 2019

Analyzer Feedback from IntelliJ

Version information

  • IDEA IC-191.7141.44
  • 2.2.1-edge.1f1592edce7122ff657d9538d58d9cce0cae46e6
  • IC-191.7141.44, JRE 1.8.0_202-release-1483-b49x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.5, screens 1080x2048, 1680x1050, 1080x2048 Retina

Exception

Dart analysis server, SDK version 2.2.1-edge.1f1592edce7122ff657d9538d58d9cce0cae46e6, server version 1.26.0, error: Failed to send notification
type 'IfElementImpl' is not a subtype of type 'Expression'
#0      FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:205:42)
#1      FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:197:23)
#2      FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:197:23)
#3      FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:205:27)
#4      _FlutterOutlineBuilder.visitExpression (package:analysis_server/src/flutter/flutter_outline_computer.dart:378:28)
#5      GeneralizingAstVisitor.visitInstanceCreationExpression (package:analyzer/dart/ast/visitor.dart:370:7)
#6      InstanceCreationExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:5998:15)
#7      ReturnStatementImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:8538:18)
#8      GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10)
#9      GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:510:39)
#10     GeneralizingAstVisitor.visitReturnStatement (package:analyzer/dart/ast/visitor.dart:482:51)
#11     ReturnStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:8534:49)
#12     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7570:20)
#13     BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1122:17)
#14     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10)
#15     GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:510:39)
#16     GeneralizingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:165:31)
#17     BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1118:49)
#18     BlockFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1077:13)
#19     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10)
#20     GeneralizingAstVisitor.visitFunctionBody (package:analyzer/dart/ast/visitor.dart:317:45)
#21     GeneralizingAstVisitor.visitBlockFunctionBody (package:analyzer/dart/ast/visitor.dart:168:55)
#22     BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1073:49)
#23     MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:7010:12)
#24     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10)
#25     GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:137:47)
#26     GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:230:43)
#27     GeneralizingAstVisitor.visitClassMember (package:analyzer/dart/ast/visitor.dart:186:43)
#28     GeneralizingAstVisitor.visitMethodDeclaration (package:analyzer/dart/ast/visitor.dart:412:55)
#29     MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7001:49)
#30     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7570:20)
#31     ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1591:13)
#32     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10)
#33     GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:137:47)
#34     GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:230:43)
#35     GeneralizingAstVisitor.visitCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:205:7)
#36     GeneralizingAstVisitor.visitNamedCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:423:7)
#37     GeneralizingAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:184:7)
#38     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1561:49)
#39     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7570:20)
#40     CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2173:21)
#41     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10)
#42     GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:202:51)
#43     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2152:49)
#44     FlutterOutlineComputer.compute (package:analysis_server/src/flutter/flutter_outline_computer.dart:66:23)
#45     sendFlutterNotificationOutline.<anonymous closure> (package:analysis_server/src/flutter/flutter_notifications.dart:14:48)
#46     _sendNotification.<anonymous closure> (package:analysis_server/src/flutter/flutter_notifications.dart:31:8)
#47     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#48     _sendNotification (package:analysis_server/src/flutter/flutter_notifications.dart:29:39)
#49     sendFlutterNotificationOutline (package:analysis_server/src/flutter/flutter_notifications.dart:12:3)
#50     ServerContextManagerCallbacks.addAnalysisDriver.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:899:13)
#51     new Future.<anonymous closure> (dart:async/future.dart:176:37)
#52     _rootRun (dart:async/zone.dart:1120:38)
#53     _CustomZone.run (dart:async/zone.dart:1021:19)
#54     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#55     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#56     _rootRun (dart:async/zone.dart:1124:13)
#57     _CustomZone.run (dart:async/zone.dart:1021:19)
#58     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#59     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:21:15)
#60     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
#61     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
#62     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)

For additional log information, please append the contents of
file:///private/var/folders/nx/hp6tjtcd4c7f2_tqkdz378lwqp2rv_/T/report2.txt.

report2.txt Dart analysis server, SDK version 2.2.1-edge.1f1592edce7122ff657d9538d58d9cce0cae46e6, server version 1.26.0, error: Failed to send notification type 'IfElementImpl' is not a subtype of type 'Expression' #0 FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:205:42) #1 FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:197:23) #2 FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:197:23) #3 FlutterOutlineComputer._createOutline (package:analysis_server/src/flutter/flutter_outline_computer.dart:205:27) #4 _FlutterOutlineBuilder.visitExpression (package:analysis_server/src/flutter/flutter_outline_computer.dart:378:28) #5 GeneralizingAstVisitor.visitInstanceCreationExpression (package:analyzer/dart/ast/visitor.dart:370:7) #6 InstanceCreationExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:5998:15) #7 ReturnStatementImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:8538:18) #8 GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10) #9 GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:510:39) #10 GeneralizingAstVisitor.visitReturnStatement (package:analyzer/dart/ast/visitor.dart:482:51) #11 ReturnStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:8534:49) #12 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7570:20) #13 BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1122:17) #14 GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10) #15 GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:510:39) #16 GeneralizingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:165:31) #17 BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1118:49) #18 BlockFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1077:13) #19 GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10) #20 GeneralizingAstVisitor.visitFunctionBody (package:analyzer/dart/ast/visitor.dart:317:45) #21 GeneralizingAstVisitor.visitBlockFunctionBody (package:analyzer/dart/ast/visitor.dart:168:55) #22 BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1073:49) #23 MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:7010:12) #24 GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10) #25 GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:137:47) #26 GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:230:43) #27 GeneralizingAstVisitor.visitClassMember (package:analyzer/dart/ast/visitor.dart:186:43) #28 GeneralizingAstVisitor.visitMethodDeclaration (package:analyzer/dart/ast/visitor.dart:412:55) #29 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7001:49) #30 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7570:20) #31 ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1591:13) #32 GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10) #33 GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:137:47) #34 GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:230:43) #35 GeneralizingAstVisitor.visitCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:205:7) #36 GeneralizingAstVisitor.visitNamedCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:423:7) #37 GeneralizingAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:184:7) #38 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1561:49) #39 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7570:20) #40 CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2173:21) #41 GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:438:10) #42 GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:202:51) #43 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2152:49) #44 FlutterOutlineComputer.compute (package:analysis_server/src/flutter/flutter_outline_computer.dart:66:23) #45 sendFlutterNotificationOutline. (package:analysis_server/src/flutter/flutter_notifications.dart:14:48) #46 _sendNotification. (package:analysis_server/src/flutter/flutter_notifications.dart:31:8) #47 _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15) #48 _sendNotification (package:analysis_server/src/flutter/flutter_notifications.dart:29:39) #49 sendFlutterNotificationOutline (package:analysis_server/src/flutter/flutter_notifications.dart:12:3) #50 ServerContextManagerCallbacks.addAnalysisDriver.. (package:analysis_server/src/analysis_server.dart:899:13) #51 new Future. (dart:async/future.dart:176:37) #52 _rootRun (dart:async/zone.dart:1120:38) #53 _CustomZone.run (dart:async/zone.dart:1021:19) #54 _CustomZone.runGuarded (dart:async/zone.dart:923:7) #55 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23) #56 _rootRun (dart:async/zone.dart:1124:13) #57 _CustomZone.run (dart:async/zone.dart:1021:19) #58 _CustomZone.bindCallback. (dart:async/zone.dart:947:23) #59 Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15) #60 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19) #61 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5) #62 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)
1557900663075 <= {"id":"983"}
1557900663075 <= {"id":"984"}
1557900663076 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1557900663076 => {"id":"985","method":"analysis.setPriorityFiles","params":{"files":["/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart"]},"clientRequestTime":1557
1557900663076 => {"id":"986","method":"analysis.setSubscriptions","params":{"subscriptions":{"HIGHLIGHTS":["/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart"],"OV
1557900663105 <= {"event":"analysis.errors","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","errors":[]}}
1557900663105 <= {"id":"985"}
1557900663106 <= {"id":"986"}
1557900663107 <= {"event":"flutter.outline","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","outline":{"kind":"DART_ELEMENT","offset":0,"lengt
1557900663134 <= {"event":"analysis.errors","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","errors":[]}}
1557900663135 <= {"event":"analysis.highlights","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","regions":[{"type":"DIRECTIVE","offset":0,"len
1557900663135 <= {"event":"analysis.navigation","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","regions":[{"offset":7,"length":38,"targets":[
1557900663136 <= {"event":"analysis.outline","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","kind":"LIBRARY","outline":{"element":{"kind":"CO
1557900663136 <= {"event":"analysis.overrides","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","overrides":[]}}
1557900663136 <= {"event":"flutter.outline","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","outline":{"kind":"DART_ELEMENT","offset":0,"lengt
1557900663138 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":false}}}
1557900663139 <= {"event":"analysis.implemented","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","classes":[{"offset":206,"length":15}],"membe
1557900663345 => {"id":"987","method":"edit.getAssists","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_condition.dart","offset":482,"length":0},"clientReques
1557900663348 <= {"id":"987","result":{"assists":[{"message":"Convert to block documentation comment","edits":[{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/entity/search_conditio
1557900676519 => {"id":"988","method":"flutter.setSubscriptions","params":{"subscriptions":{"OUTLINE":[]}}}
1557900676519 => {"id":"989","method":"flutter.setSubscriptions","params":{"subscriptions":{"OUTLINE":["/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/view/page/member_search_condition_page
1557900676520 <= {"id":"988"}
1557900676521 <= {"id":"989"}
1557900676521 <= {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
1557900676521 => {"id":"990","method":"analysis.setPriorityFiles","params":{"files":["/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/view/page/member_search_condition_page.dart"]},"clientRe
1557900676521 => {"id":"991","method":"analysis.setSubscriptions","params":{"subscriptions":{"HIGHLIGHTS":["/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/view/page/member_search_condition_
1557900676595 <= {"event":"analysis.errors","params":{"file":"/Users/kikuchy/dev/diverse/youbride/youbride-client-2/lib/view/page/member_search_condition_page.dart","errors":[]}}
1557900676595 <= {"id":"990"}
1557900676595 <= {"id":"991"}
1557900676608 <= {"event":"server.error","params":{"isFatal":false,"message":"Failed to send notification","stackTrace":"type 'IfElementImpl' is not a subtype of type 'Expression'\n#0      FlutterOutl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.