{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/35889","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/35889/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/35889/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/35889/events","html_url":"https://github.com/dart-lang/sdk/issues/35889","id":408152594,"node_id":"MDU6SXNzdWU0MDgxNTI1OTQ=","number":35889,"title":"Error when working on Flutter project","user":{"login":"MisterJimson","id":7351329,"node_id":"MDQ6VXNlcjczNTEzMjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7351329?v=4","gravatar_id":"","url":"https://api.github.com/users/MisterJimson","html_url":"https://github.com/MisterJimson","followers_url":"https://api.github.com/users/MisterJimson/followers","following_url":"https://api.github.com/users/MisterJimson/following{/other_user}","gists_url":"https://api.github.com/users/MisterJimson/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterJimson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterJimson/subscriptions","organizations_url":"https://api.github.com/users/MisterJimson/orgs","repos_url":"https://api.github.com/users/MisterJimson/repos","events_url":"https://api.github.com/users/MisterJimson/events{/privacy}","received_events_url":"https://api.github.com/users/MisterJimson/received_events","type":"User","site_admin":false},"labels":[{"id":219928186,"node_id":"MDU6TGFiZWwyMTk5MjgxODY=","url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-02-08T13:28:34Z","updated_at":"2019-02-12T01:00:26Z","closed_at":null,"author_association":"NONE","body":"Analyzer Feedback from IntelliJ\r\n\r\nRan flutter packages pub run build_runner build\r\n\r\nUsing json_annotation\r\n\r\n## Version information\r\n\r\n- `IDEA AI-182.5107.16.33.5264788`\r\n- `2.2.0-edge.ec86471ccc47a62df8b4009e1fb37c66ff9dc91b`\r\n- `AI-182.5107.16.33.5264788, JRE 1.8.0_152-release-1248-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.2 unknown, screens 1920x1080, 1680x1050, 1920x1080  Retina`\r\n\r\n## Exception\r\n```\r\nDart analysis server, SDK version 2.2.0-edge.ec86471ccc47a62df8b4009e1fb37c66ff9dc91b, server version 1.21.1, error: Analysis failed: /Users/jrai/git/icecrown/icecrown/lib/service/api/homex/models.dart context: exception_20190208_082706_673\r\nRangeError (index): Invalid value: Only valid value is 0: 1\r\n#0      List.[] (dart:core/runtime/libarray.dart:12:52)\r\n#1      _UnitResynthesizer.getReferenceInfo (package:analyzer/src/summary/resynthesize.dart:1461:43)\r\n#2      _UnitResynthesizer.buildType (package:analyzer/src/summary/resynthesize.dart:1367:38)\r\n#3      SummaryResynthesizerContext.resolveTypeRef (package:analyzer/src/summary/resynthesize.dart:472:30)\r\n#4      ExecutableElementImpl.returnType (package:analyzer/src/dart/element/element.dart:3806:64)\r\n#5      _FunctionTypeImplLazy.baseReturnType (package:analyzer/src/dart/element/type.dart:3162:57)\r\n#6      _FunctionTypeImplLazy.returnType (package:analyzer/src/dart/element/type.dart:3250:36)\r\n#7      MethodInvocationResolver._setResolution (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:585:42)\r\n#8      MethodInvocationResolver._resolveReceiverNull (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:389:16)\r\n#9      MethodInvocationResolver.resolve (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:70:7)\r\n#10     ElementResolver.visitMethodInvocation (package:analyzer/src/generated/element_resolver.dart:516:31)\r\n#11     MethodInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7871:49)\r\n#12     ResolverVisitor.visitMethodInvocation (package:analyzer/src/generated/resolver.dart:5275:10)\r\n#13     MethodInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7871:49)\r\n#14     ExpressionFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:4059:18)\r\n#15     ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:5313:10)\r\n#16     UnifyingAstVisitor.visitExpressionFunctionBody (package:analyzer/dart/ast/visitor.dart:3070:65)\r\n#17     ResolverVisitor.visitExpressionFunctionBody (package:analyzer/src/generated/resolver.dart:4867:13)\r\n#18     ExpressionFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:4055:15)\r\n#19     ScopedVisitor.visitConstructorDeclarationInScope (package:analyzer/src/generated/resolver.dart:6350:16)\r\n#20     ResolverVisitor.visitConstructorDeclarationInScope (package:analyzer/src/generated/resolver.dart:4746:11)\r\n#21     ScopedVisitor.visitConstructorDeclaration (package:analyzer/src/generated/resolver.dart:6343:7)\r\n#22     ResolverVisitor.visitConstructorDeclaration (package:analyzer/src/generated/resolver.dart:4734:13)\r\n#23     ConstructorDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2950:15)\r\n#24     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:8366:20)\r\n#25     ScopedVisitor.visitClassMembersInScope (package:analyzer/src/generated/resolver.dart:6290:18)\r\n#26     ScopedVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:6268:11)\r\n#27     ResolverVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:4605:13)\r\n#28     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1765:49)\r\n#29     ResolverVisitor.visitCompilationUnit (package:analyzer/src/generated/resolver.dart:4666:25)\r\n#30     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2430:49)\r\n#31     LibraryAnalyzer._resolveFile (package:analyzer/src/dart/analysis/library_analyzer.dart:623:10)\r\n#32     LibraryAnalyzer.analyzeSync.<anonymous closure> (package:analyzer/src/dart/analysis/library_analyzer.dart:118:7)\r\n#33     __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/libcompact_hash.dart:367:8)\r\n#34     LibraryAnalyzer.analyzeSync (package:analyzer/src/dart/analysis/library_analyzer.dart:117:11)\r\n#35     LibraryAnalyzer.analyze.<anonymous closure> (package:analyzer/src/dart/analysis/library_analyzer.dart:91:14)\r\n#36     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)\r\n#37     LibraryAnalyzer.analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:90:43)\r\n#38     AnalysisDriver._computeAnalysisResult.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1431:63)\r\n#39     PerformanceLog.run (package:analyzer/src/dart/analysis/performance_logger.dart:34:15)\r\n#40     AnalysisDriver._computeAnalysisResult (package:analyzer/src/dart/analysis/driver.dart:1409:20)\r\n#41     AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1203:17)\r\n<asynchronous suspension>\r\n#42     AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2116:24)\r\n<asynchronous suspension>\r\n#43     AnalysisDriverScheduler.start (package:analyzer/src/dart/analysis/driver.dart:2057:5)\r\n#44     new AnalysisServer (package:analysis_server/src/analysis_server.dart:236:29)\r\n#45     SocketServer.createAnalysisServer (package:analysis_server/src/socket_server.dart:79:26)\r\n#46     StdioAnalysisServer.serveStdio (package:analysis_server/src/server/stdio_server.dart:37:18)\r\n#47     Driver.startAnalysisServer.<anonymous closure> (package:analysis_server/src/server/driver.dart:519:21)\r\n#48     _rootRun (dart:async/zone.dart:1124:13)\r\n#49     _CustomZone.run (dart:async/zone.dart:1021:19)\r\n#50     _runZoned (dart:async/zone.dart:1516:10)\r\n#51     runZoned (dart:async/zone.dart:1463:12)\r\n#52     Driver._captureExceptions (package:analysis_server/src/server/driver.dart:585:12)\r\n#53     Driver.startAnalysisServer (package:analysis_server/src/server/driver.dart:517:7)\r\n#54     Driver.start (package:analysis_server/src/server/driver.dart:414:7)\r\n#55     main (file:///b/rr/tmpFYAHZv/w/src/third_party/dart/pkg/analysis_server/bin/server.dart:12:11)\r\n#56     _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)\r\n#57     main (file:///b/rr/tmpFYAHZv/w/src/third_party/dart/pkg/analysis_server/bin/server.dart:10:10)\r\n#58     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:287:32)\r\n#59     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\r\n```\r\n\r\nFor additional log information, please append the contents of\r\nfile:///private/var/folders/4v/m74wp5ms5_7d81rlvqjnzn9h0000gn/T/report.txt."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/462563997","html_url":"https://github.com/dart-lang/sdk/issues/35889#issuecomment-462563997","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/35889","id":462563997,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MjU2Mzk5Nw==","user":{"login":"stereotype441","id":306375,"node_id":"MDQ6VXNlcjMwNjM3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/306375?v=4","gravatar_id":"","url":"https://api.github.com/users/stereotype441","html_url":"https://github.com/stereotype441","followers_url":"https://api.github.com/users/stereotype441/followers","following_url":"https://api.github.com/users/stereotype441/following{/other_user}","gists_url":"https://api.github.com/users/stereotype441/gists{/gist_id}","starred_url":"https://api.github.com/users/stereotype441/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereotype441/subscriptions","organizations_url":"https://api.github.com/users/stereotype441/orgs","repos_url":"https://api.github.com/users/stereotype441/repos","events_url":"https://api.github.com/users/stereotype441/events{/privacy}","received_events_url":"https://api.github.com/users/stereotype441/received_events","type":"User","site_admin":false},"created_at":"2019-02-12T01:00:26Z","updated_at":"2019-02-12T01:00:26Z","author_association":"MEMBER","body":"@scheglov is this a recurrence of #34534?  It's from a CL after the fix, but the stacktrace looks very similar.\r\n\r\n(Classifying as a P1 for now in case #34534 has recurred; if this is an unrelated bug we can downgrade to P2)"}}
{"actor":{"display_login":"stereotype441"}}