{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/26426","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/26426/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/26426/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/26426/events","html_url":"https://github.com/dart-lang/sdk/issues/26426","id":153792477,"number":26426,"title":"Unhandled exception: AnalysisException","user":{"login":"floitschG","id":8631949,"avatar_url":"https://avatars.githubusercontent.com/u/8631949?v=3","gravatar_id":"","url":"https://api.github.com/users/floitschG","html_url":"https://github.com/floitschG","followers_url":"https://api.github.com/users/floitschG/followers","following_url":"https://api.github.com/users/floitschG/following{/other_user}","gists_url":"https://api.github.com/users/floitschG/gists{/gist_id}","starred_url":"https://api.github.com/users/floitschG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floitschG/subscriptions","organizations_url":"https://api.github.com/users/floitschG/orgs","repos_url":"https://api.github.com/users/floitschG/repos","events_url":"https://api.github.com/users/floitschG/events{/privacy}","received_events_url":"https://api.github.com/users/floitschG/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/P1%20high","name":"P1 high","color":"eb6420"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type:%20bug","name":"Type: bug","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"scheglov","id":384794,"avatar_url":"https://avatars.githubusercontent.com/u/384794?v=3","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-05-09T14:42:00Z","updated_at":"2016-05-10T01:44:53Z","closed_at":null,"body":"I'm getting an unhandled exception while trying to make the core libraries strong-mode clean.\r\n\r\nThe way I work:\r\n\r\n```\r\nmv out/ReleaseX64/dart-sdk/lib/math out/ReleaseX64/dart-sdk/lib/math_copy\r\nln -s $PWD/sdk/lib/math out/ReleaseX64/dart-sdk/lib/math\r\n```\r\n\r\nAnd then run the analyzer on the sdk sources.\r\nUntil today this made it possible to work on the core libraries without needing to rebuild. It seems this workflow has been broken recently.\r\n\r\n```\r\n$ out/ReleaseX64/dart-sdk/bin/dart --package-root=$PWD/out/ReleaseX64/packages /mnt/ssd/floitsch/code/dart/sdk/pkg/analyzer_cli/bin/analyzer.dart --no-hints --strong --warnings out/ReleaseX64/dart-sdk/lib/math/math.dart\r\nAnalyzing [out/ReleaseX64/dart-sdk/lib/math/math.dart]...\r\nUnhandled exception:\r\nAnalysisException: Cannot compute DART_ERRORS for /mnt/ssd/floitsch/code/dart/sdk/out/ReleaseX64/dart-sdk/lib/math/math.dart\r\nCaused by Mismatch in DeclarationResolver while resolving /mnt/ssd/floitsch/code/dart/sdk/out/ReleaseX64/dart-sdk/lib/math/point.dart\r\nFound element with name \"factor\" at 1765, but expected offset of 1774\r\nPath to root: DeclaredSimpleIdentifier, SimpleFormalParameterImpl, FormalParameterListImpl, MethodDeclarationImpl, ClassDeclarationImpl, CompilationUnitImpl\r\n#0      RecursiveAstVisitor&ExistingElementResolver._mismatch (package:analyzer/src/generated/resolver.dart:3433:5)\r\n#1      DeclarationResolver._findWithNameAndOffset (package:analyzer/src/generated/resolver.dart:2697:9)\r\n#2      DeclarationResolver._findIdentifier (package:analyzer/src/generated/resolver.dart:2670:23)\r\n#3      DeclarationResolver._getElementForParameter (package:analyzer/src/generated/resolver.dart:2741:12)\r\n#4      DeclarationResolver.visitSimpleFormalParameter (package:analyzer/src/generated/resolver.dart:2543:34)\r\n#5      SimpleFormalParameterImpl.accept (package:analyzer/src/dart/ast/ast.dart:8862:15)\r\n#6      NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7663:20)\r\n#7      FormalParameterListImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:4706:17)\r\n#8      RecursiveAstVisitor.visitFormalParameterList (package:analyzer/dart/ast/visitor.dart:1587:10)\r\n#9      FormalParameterListImpl.accept (package:analyzer/src/dart/ast/ast.dart:4702:15)\r\n#10     MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:7170:18)\r\n#11     RecursiveAstVisitor.visitMethodDeclaration (package:analyzer/dart/ast/visitor.dart:1737:10)\r\n#12     DeclarationResolver.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:2517:35)\r\n#13     MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7162:15)\r\n#14     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7663:20)\r\n#15     ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1896:13)\r\n#16     RecursiveAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:1425:10)\r\n#17     DeclarationResolver.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:2234:34)\r\n#18     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1836:15)\r\n#19     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7663:20)\r\n#20     CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2427:21)\r\n#21     RecursiveAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:1449:10)\r\n#22     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2420:15)\r\n#23     DeclarationResolver.resolve (package:analyzer/src/generated/resolver.dart:2209:10)\r\n#24     BuildCompilationUnitElementTask.internalPerform (package:analyzer/src/task/dart.dart:998:33)\r\n#25     AnalysisTask._safelyPerform (package:analyzer/task/model.dart:329:9)\r\n#26     AnalysisTask.perform (package:analyzer/task/model.dart:229:7)\r\n#27     AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:276:10)\r\n#28     AnalysisDriver.computeResult (package:analyzer/src/task/driver.dart:109:18)\r\n#29     AnalysisContextImpl.computeResult (package:analyzer/src/context/context.dart:667:14)\r\n#30     AnalysisContextImpl.computeErrors (package:analyzer/src/context/context.dart:615:12)\r\n#31     AnalyzerImpl.prepareErrors.<anonymous closure> (package:analyzer_cli/src/analyzer_impl.dart:130:17)\r\n#32     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212:15)\r\n#33     AnalyzerImpl.prepareErrors (package:analyzer_cli/src/analyzer_impl.dart:128:30)\r\n#34     AnalyzerImpl._analyzeSync (package:analyzer_cli/src/analyzer_impl.dart:164:5)\r\n#35     AnalyzerImpl.analyzeSync (package:analyzer_cli/src/analyzer_impl.dart:123:12)\r\n#36     Driver._runAnalyzer (package:analyzer_cli/src/driver.dart:575:34)\r\n#37     Driver._analyzeAllImpl (package:analyzer_cli/src/driver.dart:216:30)\r\n#38     Driver._analyzeAll.<anonymous closure> (package:analyzer_cli/src/driver.dart:159:14)\r\n#39     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212:15)\r\n#40     Driver._analyzeAll (package:analyzer_cli/src/driver.dart:158:27)\r\n#41     Driver.start (package:analyzer_cli/src/driver.dart:139:32)\r\n#42     main (file:///mnt/ssd/floitsch/code/dart/sdk/pkg/analyzer_cli/bin/analyzer.dart:11:11)\r\n#43     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:259)\r\n#44     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)\r\n\r\n\r\n#0      AnalysisContextImpl.computeResult (package:analyzer/src/context/context.dart:671:7)\r\n#1      AnalysisContextImpl.computeErrors (package:analyzer/src/context/context.dart:615:12)\r\n#2      AnalyzerImpl.prepareErrors.<anonymous closure> (package:analyzer_cli/src/analyzer_impl.dart:130:17)\r\n#3      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212:15)\r\n#4      AnalyzerImpl.prepareErrors (package:analyzer_cli/src/analyzer_impl.dart:128:30)\r\n#5      AnalyzerImpl._analyzeSync (package:analyzer_cli/src/analyzer_impl.dart:164:5)\r\n#6      AnalyzerImpl.analyzeSync (package:analyzer_cli/src/analyzer_impl.dart:123:12)\r\n#7      Driver._runAnalyzer (package:analyzer_cli/src/driver.dart:575:34)\r\n#8      Driver._analyzeAllImpl (package:analyzer_cli/src/driver.dart:216:30)\r\n#9      Driver._analyzeAll.<anonymous closure> (package:analyzer_cli/src/driver.dart:159:14)\r\n#10     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212:15)\r\n#11     Driver._analyzeAll (package:analyzer_cli/src/driver.dart:158:27)\r\n#12     Driver.start (package:analyzer_cli/src/driver.dart:139:32)\r\n#13     main (file:///mnt/ssd/floitsch/code/dart/sdk/pkg/analyzer_cli/bin/analyzer.dart:11:11)\r\n#14     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:259)\r\n#15     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/218038288","html_url":"https://github.com/dart-lang/sdk/issues/26426#issuecomment-218038288","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/26426","id":218038288,"user":{"login":"scheglov","id":384794,"avatar_url":"https://avatars.githubusercontent.com/u/384794?v=3","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T01:44:53Z","updated_at":"2016-05-10T01:44:53Z","body":"https://codereview.chromium.org/1963023002"}}