{"action":"created","issue":{"url":"https://api.github.com/repos/p4lang/p4c/issues/341","repository_url":"https://api.github.com/repos/p4lang/p4c","labels_url":"https://api.github.com/repos/p4lang/p4c/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/p4lang/p4c/issues/341/comments","events_url":"https://api.github.com/repos/p4lang/p4c/issues/341/events","html_url":"https://github.com/p4lang/p4c/issues/341","id":211238978,"node_id":"MDU6SXNzdWUyMTEyMzg5Nzg=","number":341,"title":"There's no general solution for the problem of repeatedly printing the same error","user":{"login":"sethfowler","id":492593,"node_id":"MDQ6VXNlcjQ5MjU5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/492593?v=4","gravatar_id":"","url":"https://api.github.com/users/sethfowler","html_url":"https://github.com/sethfowler","followers_url":"https://api.github.com/users/sethfowler/followers","following_url":"https://api.github.com/users/sethfowler/following{/other_user}","gists_url":"https://api.github.com/users/sethfowler/gists{/gist_id}","starred_url":"https://api.github.com/users/sethfowler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethfowler/subscriptions","organizations_url":"https://api.github.com/users/sethfowler/orgs","repos_url":"https://api.github.com/users/sethfowler/repos","events_url":"https://api.github.com/users/sethfowler/events{/privacy}","received_events_url":"https://api.github.com/users/sethfowler/received_events","type":"User","site_admin":false},"labels":[{"id":352540663,"node_id":"MDU6TGFiZWwzNTI1NDA2NjM=","url":"https://api.github.com/repos/p4lang/p4c/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-01T23:13:27Z","updated_at":"2018-07-16T17:15:53Z","closed_at":"2018-07-16T17:15:53Z","author_association":"CONTRIBUTOR","body":"For a variety of reasons (fixed-point algorithms, compiler transformations that duplicate portions of the IR tree, utility code being invoke from multiple passes) we can end up printing the same error message many times. Loop unrolling is a place where this is biting us in a particularly nasty way.\r\n\r\nThere are ad hoc solutions for this problem at various places in the code; one example is the usage of `iterCounter` here:\r\n\r\nhttps://github.com/p4lang/p4c/blob/master/frontends/p4-14/typecheck.cpp#L291\r\n\r\nIt would be good to have a more general solution to this problem. We should think about what the requirements are."},"comment":{"url":"https://api.github.com/repos/p4lang/p4c/issues/comments/405320120","html_url":"https://github.com/p4lang/p4c/issues/341#issuecomment-405320120","issue_url":"https://api.github.com/repos/p4lang/p4c/issues/341","id":405320120,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTMyMDEyMA==","user":{"login":"mbudiu-vmw","id":19397042,"node_id":"MDQ6VXNlcjE5Mzk3MDQy","avatar_url":"https://avatars1.githubusercontent.com/u/19397042?v=4","gravatar_id":"","url":"https://api.github.com/users/mbudiu-vmw","html_url":"https://github.com/mbudiu-vmw","followers_url":"https://api.github.com/users/mbudiu-vmw/followers","following_url":"https://api.github.com/users/mbudiu-vmw/following{/other_user}","gists_url":"https://api.github.com/users/mbudiu-vmw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbudiu-vmw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbudiu-vmw/subscriptions","organizations_url":"https://api.github.com/users/mbudiu-vmw/orgs","repos_url":"https://api.github.com/users/mbudiu-vmw/repos","events_url":"https://api.github.com/users/mbudiu-vmw/events{/privacy}","received_events_url":"https://api.github.com/users/mbudiu-vmw/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T17:15:53Z","updated_at":"2018-07-16T17:15:53Z","author_association":"COLLABORATOR","body":"I will close this issue because it is too general. An example would be more useful."}}
{"actor":{"display_login":"mbudiu-vmw"}}