{"action":"created","issue":{"url":"https://api.github.com/repos/UnquietCode/Flapi/issues/195","labels_url":"https://api.github.com/repos/UnquietCode/Flapi/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/UnquietCode/Flapi/issues/195/comments","events_url":"https://api.github.com/repos/UnquietCode/Flapi/issues/195/events","html_url":"https://github.com/UnquietCode/Flapi/issues/195","id":49618316,"number":195,"title":"Nested block not returning parent block on close in 0.6","user":{"login":"cwensel","id":24684,"avatar_url":"https://avatars.githubusercontent.com/u/24684?v=3","gravatar_id":"","url":"https://api.github.com/users/cwensel","html_url":"https://github.com/cwensel","followers_url":"https://api.github.com/users/cwensel/followers","following_url":"https://api.github.com/users/cwensel/following{/other_user}","gists_url":"https://api.github.com/users/cwensel/gists{/gist_id}","starred_url":"https://api.github.com/users/cwensel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwensel/subscriptions","organizations_url":"https://api.github.com/users/cwensel/orgs","repos_url":"https://api.github.com/users/cwensel/repos","events_url":"https://api.github.com/users/cwensel/events{/privacy}","received_events_url":"https://api.github.com/users/cwensel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UnquietCode/Flapi/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/UnquietCode/Flapi/milestones/10","labels_url":"https://api.github.com/repos/UnquietCode/Flapi/milestones/10/labels","id":754774,"number":10,"title":"0.7","description":"","creator":{"login":"UnquietCode","id":146995,"avatar_url":"https://avatars.githubusercontent.com/u/146995?v=3","gravatar_id":"","url":"https://api.github.com/users/UnquietCode","html_url":"https://github.com/UnquietCode","followers_url":"https://api.github.com/users/UnquietCode/followers","following_url":"https://api.github.com/users/UnquietCode/following{/other_user}","gists_url":"https://api.github.com/users/UnquietCode/gists{/gist_id}","starred_url":"https://api.github.com/users/UnquietCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnquietCode/subscriptions","organizations_url":"https://api.github.com/users/UnquietCode/orgs","repos_url":"https://api.github.com/users/UnquietCode/repos","events_url":"https://api.github.com/users/UnquietCode/events{/privacy}","received_events_url":"https://api.github.com/users/UnquietCode/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":7,"state":"open","created_at":"2014-08-15T06:30:07Z","updated_at":"2015-01-21T18:45:38Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2014-11-20T21:09:01Z","updated_at":"2015-01-21T18:45:38Z","closed_at":"2015-01-21T18:45:38Z","body":"Well, I think that’s what’s happening. The code below works in 0.5.2, generating with 0.6 introduces the issue.\r\n\r\nWith this descriptor\r\n```\r\n    branch = branch\r\n      .startBlock( \"GroupBy\", \"groupBy(cascading.tuple.Fields groupFields)\" )\r\n      .any( GROUP )\r\n\r\n      .startBlock( \"Every\", \"every(cascading.tuple.Fields argumentSelector)\" )\r\n      .any( EVERY )\r\n\r\n      .startBlock( \"aggregator(cascading.operation.Aggregator aggregator)\" ).last()\r\n      .addMethod( \"outgoing(cascading.tuple.Fields outgoingSelector)\" ).last()\r\n      .endBlock() // aggregator\r\n\r\n      .startBlock( \"buffer(cascading.operation.Buffer buffer)\" ).last()\r\n      .addMethod( \"outgoing(cascading.tuple.Fields outgoingSelector)\" ).last()\r\n      .endBlock() // buffer\r\n\r\n      .endBlock() // every\r\n\r\n      .addMethod( \"completeGroupBy()\" ).last()\r\n      .endBlock(); // groupBy\r\n```\r\n\r\nthe `completeGroupby()` isn’t reachable\r\n\r\n```\r\n    Pipe rhs = builder.startBranch( \"rhs\" )\r\n      .groupBy( Fields.ALL )\r\n      .every( Fields.ALL ).aggregator( new Count() ).outgoing( Fields.ALL ) // returns an Object\r\n      .completeGroupBy() // won’t compile\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/UnquietCode/Flapi/issues/comments/70896230","html_url":"https://github.com/UnquietCode/Flapi/issues/195#issuecomment-70896230","issue_url":"https://api.github.com/repos/UnquietCode/Flapi/issues/195","id":70896230,"user":{"login":"UnquietCode","id":146995,"avatar_url":"https://avatars.githubusercontent.com/u/146995?v=3","gravatar_id":"","url":"https://api.github.com/users/UnquietCode","html_url":"https://github.com/UnquietCode","followers_url":"https://api.github.com/users/UnquietCode/followers","following_url":"https://api.github.com/users/UnquietCode/following{/other_user}","gists_url":"https://api.github.com/users/UnquietCode/gists{/gist_id}","starred_url":"https://api.github.com/users/UnquietCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnquietCode/subscriptions","organizations_url":"https://api.github.com/users/UnquietCode/orgs","repos_url":"https://api.github.com/users/UnquietCode/repos","events_url":"https://api.github.com/users/UnquietCode/events{/privacy}","received_events_url":"https://api.github.com/users/UnquietCode/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T18:45:38Z","updated_at":"2015-01-21T18:45:38Z","body":"Update to this thread:\r\n\r\nWhile not a bug, version 0.6 introduced the requirement that all the `Start` interfaces are typed. Using the raw type of a block will bypass the type system and break the method chaining."}}