{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/34453","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/34453/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/34453/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/34453/events","html_url":"https://github.com/dart-lang/sdk/issues/34453","id":359627627,"node_id":"MDU6SXNzdWUzNTk2Mjc2Mjc=","number":34453,"title":"dartfmt crash: type 'LabelImpl' is not a subtype of type 'SwitchMember'","user":{"login":"alexmarkov","id":29557594,"node_id":"MDQ6VXNlcjI5NTU3NTk0","avatar_url":"https://avatars3.githubusercontent.com/u/29557594?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmarkov","html_url":"https://github.com/alexmarkov","followers_url":"https://api.github.com/users/alexmarkov/followers","following_url":"https://api.github.com/users/alexmarkov/following{/other_user}","gists_url":"https://api.github.com/users/alexmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmarkov/subscriptions","organizations_url":"https://api.github.com/users/alexmarkov/orgs","repos_url":"https://api.github.com/users/alexmarkov/repos","events_url":"https://api.github.com/users/alexmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/alexmarkov/received_events","type":"User","site_admin":false},"labels":[{"id":334529063,"node_id":"MDU6TGFiZWwzMzQ1MjkwNjM=","url":"https://api.github.com/repos/dart-lang/sdk/labels/type-bug","name":"type-bug","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T19:52:32Z","updated_at":"2018-09-20T19:39:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"On a fresh checkout of Dart SDK:\r\n\r\n```\r\ntools/build.py -m release create_sdk\r\nout/ReleaseX64/dart-sdk/bin/dartfmt pkg/vm/testcases/bytecode/switch.dart\r\n```\r\n\r\n```\r\nHit a bug in the formatter when formatting pkg/vm/testcases/bytecode/switch.dart.\r\nPlease report at github.com/dart-lang/dart_style/issues.\r\ntype 'LabelImpl' is not a subtype of type 'SwitchMember'\r\n#0      AstBuilder.popTypedList (package:analyzer/src/fasta/ast_builder.dart:2800:15)\r\n#1      AstBuilder.endSwitchCase (package:analyzer/src/fasta/ast_builder.dart:1331:34)\r\n#2      Parser.parseStatementsInSwitchCase (package:front_end/src/fasta/parser/parser.dart:5543:14)\r\n#3      Parser.parseSwitchBlock (package:front_end/src/fasta/parser/parser.dart:5489:15)\r\n#4      Parser.parseSwitchStatement (package:front_end/src/fasta/parser/parser.dart:5420:13)\r\n#5      Parser.parseStatementX (package:front_end/src/fasta/parser/parser.dart:3458:14)\r\n#6      Parser.parseStatement (package:front_end/src/fasta/parser/parser.dart:3418:20)\r\n#7      Parser.parseFunctionBody (package:front_end/src/fasta/parser/parser.dart:3323:15)\r\n#8      Parser.parseTopLevelMethod (package:front_end/src/fasta/parser/parser.dart:2262:13)\r\n#9      Parser.parseTopLevelMemberImpl (package:front_end/src/fasta/parser/parser.dart:2165:14)\r\n#10     Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:479:14)\r\n#11     Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:334:15)\r\n#12     ParserAdapter.parseCompilationUnit2 (file:///usr/local/google/home/alexmarkov/work/dart/sdk/pkg/analyzer/lib/src/generated/parser_fasta.dart:150:32)\r\n#13     ParserAdapter.parseCompilationUnit (file:///usr/local/google/home/alexmarkov/work/dart/sdk/pkg/analyzer/lib/src/generated/parser_fasta.dart:145:12)\r\n#14     DartFormatter.formatSource (package:dart_style/src/dart_formatter.dart:119:21)\r\n#15     processFile (package:dart_style/src/io.dart:77:28)\r\n#16     formatPaths (file:///usr/local/google/home/alexmarkov/work/dart/sdk/third_party/pkg_tested/dart_style/bin/format.dart:254:12)\r\n#17     main (file:///usr/local/google/home/alexmarkov/work/dart/sdk/third_party/pkg_tested/dart_style/bin/format.dart:182:5)\r\n#18     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:287:32)\r\n#19     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\r\n```\r\n\r\nIt's a recent regression: I was able to format pkg/vm with dartfmt without errors before.\r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/423307547","html_url":"https://github.com/dart-lang/sdk/issues/34453#issuecomment-423307547","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/34453","id":423307547,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzMwNzU0Nw==","user":{"login":"vsmenon","id":2119553,"node_id":"MDQ6VXNlcjIxMTk1NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2119553?v=4","gravatar_id":"","url":"https://api.github.com/users/vsmenon","html_url":"https://github.com/vsmenon","followers_url":"https://api.github.com/users/vsmenon/followers","following_url":"https://api.github.com/users/vsmenon/following{/other_user}","gists_url":"https://api.github.com/users/vsmenon/gists{/gist_id}","starred_url":"https://api.github.com/users/vsmenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsmenon/subscriptions","organizations_url":"https://api.github.com/users/vsmenon/orgs","repos_url":"https://api.github.com/users/vsmenon/repos","events_url":"https://api.github.com/users/vsmenon/events{/privacy}","received_events_url":"https://api.github.com/users/vsmenon/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T19:39:46Z","updated_at":"2018-09-20T19:39:46Z","author_association":"MEMBER","body":"@munificent - is there an area for formatter bugs (and perhaps this is a fasta one)?"}}
{"actor":{"display_login":"vsmenon"}}