{"action":"opened","issue":{"url":"https://api.github.com/repos/kevmoo/source_gen.dart/issues/46","labels_url":"https://api.github.com/repos/kevmoo/source_gen.dart/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/kevmoo/source_gen.dart/issues/46/comments","events_url":"https://api.github.com/repos/kevmoo/source_gen.dart/issues/46/events","html_url":"https://github.com/kevmoo/source_gen.dart/issues/46","id":64535906,"number":46,"title":"To many parts make the build hang","user":{"login":"a14n","id":1206632,"avatar_url":"https://avatars.githubusercontent.com/u/1206632?v=3","gravatar_id":"","url":"https://api.github.com/users/a14n","html_url":"https://github.com/a14n","followers_url":"https://api.github.com/users/a14n/followers","following_url":"https://api.github.com/users/a14n/following{/other_user}","gists_url":"https://api.github.com/users/a14n/gists{/gist_id}","starred_url":"https://api.github.com/users/a14n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a14n/subscriptions","organizations_url":"https://api.github.com/users/a14n/orgs","repos_url":"https://api.github.com/users/a14n/repos","events_url":"https://api.github.com/users/a14n/events{/privacy}","received_events_url":"https://api.github.com/users/a14n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-26T14:11:45Z","updated_at":"2015-03-26T14:11:45Z","closed_at":null,"body":"With _1.9.0.dev_10_13_ I face an issue when there are too many parts in a lib. The generator never ends.\r\n\r\nI don't know if this is an analyzer issue but _0.24.0_ doesn't fix this issue.\r\n\r\nHere is a example to reproduce.\r\n\r\npubspec.yaml :\r\n\r\n```yaml\r\nname: source_gen_issue\r\nversion: 0.0.1\r\ndependencies:\r\n  source_gen: any\r\n```\r\n\r\nGenerate parts and lib by running _genlib.dart_ :\r\n\r\n```dart\r\nimport 'dart:io';\r\n\r\nmain() {\r\n  var libContent = '''\r\nlibrary source_gen_issue;\r\n\r\nimport 'package:source_gen/generators/json_serializable.dart';\r\n\r\npart 'my.g.dart';\r\n\r\n''';\r\n  for (var i = 1; i <= 80; i++) {\r\n    var n = i.toString().padLeft(3, '0');\r\n    libContent += \"part 'part${n}.dart';\\n\";\r\n    new File('lib/part${n}.dart').writeAsStringSync('''\r\npart of source_gen_issue;\r\n\r\n@JsonSerializable()\r\nclass Person${n} extends Object with _\\$Person${n}SerializerMixin {\r\n  final String firstName, middleName, lastName;\r\n  final DateTime dateOfBirth;\r\n\r\n  Person${n}(this.firstName, this.lastName, {this.middleName, this.dateOfBirth});\r\n\r\n  factory Person${n}.fromJson(json) => _\\$Person${n}FromJson(json);\r\n}\r\n''');\r\n  }\r\n  new File('lib/my.dart').writeAsStringSync(libContent);\r\n}\r\n\r\n```\r\n\r\nbuild.dart :\r\n\r\n```dart\r\nimport 'package:source_gen/generators/json_serializable_generator.dart' as json;\r\nimport 'package:source_gen/source_gen.dart';\r\n\r\nvoid main(List<String> args) {\r\n  build(args, const [const json.JsonSerializableGenerator(),],\r\n      librarySearchPaths: ['lib']).then((msg) {\r\n    print(msg);\r\n  });\r\n}\r\n```\r\n\r\nEither by running _build.dart_ or with a change in one of the file the build.dart never ends. In my example the limit is between 70 and 80 parts.\r\n"}}