{"action":"created","issue":{"url":"https://api.github.com/repos/CyberShadow/DustMite/issues/32","labels_url":"https://api.github.com/repos/CyberShadow/DustMite/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/CyberShadow/DustMite/issues/32/comments","events_url":"https://api.github.com/repos/CyberShadow/DustMite/issues/32/events","html_url":"https://github.com/CyberShadow/DustMite/issues/32","id":76734063,"number":32,"title":"dustmite sometimes can get into infinite loop","user":{"login":"schveiguy","id":580778,"avatar_url":"https://avatars.githubusercontent.com/u/580778?v=3","gravatar_id":"","url":"https://api.github.com/users/schveiguy","html_url":"https://github.com/schveiguy","followers_url":"https://api.github.com/users/schveiguy/followers","following_url":"https://api.github.com/users/schveiguy/following{/other_user}","gists_url":"https://api.github.com/users/schveiguy/gists{/gist_id}","starred_url":"https://api.github.com/users/schveiguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schveiguy/subscriptions","organizations_url":"https://api.github.com/users/schveiguy/orgs","repos_url":"https://api.github.com/users/schveiguy/repos","events_url":"https://api.github.com/users/schveiguy/events{/privacy}","received_events_url":"https://api.github.com/users/schveiguy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-15T13:55:50Z","updated_at":"2015-05-15T15:52:43Z","closed_at":"2015-05-15T15:29:27Z","body":"On OSX, I was testing this code to see if I could reduce it:\r\n\r\nhttps://issues.dlang.org/show_bug.cgi?id=14587\r\n\r\nMy script to test looked like this:\r\n\r\n```sh\r\n#!/bin/sh\r\ndmd app.d\r\nif ./app\r\nthen\r\n    exit 1\r\nfi\r\nexit 0\r\n```\r\n\r\nI didn't think to check the result of dmd to return failure if dmd fails to compile. But the result of:\r\n\r\n```\r\ndustmite src ../testit.sh\r\n```\r\n\r\nresults in an infinite loop:\r\n```\r\n############### ITERATION 0 ################\r\n============= Depth 0 =============\r\n[  0.0%] Remove [] => Yes\r\n============= Depth 1 =============\r\n############### ITERATION 1 ################\r\n============= Depth 0 =============\r\n[  nan%] Remove [] => Yes (cached)\r\n============= Depth 1 =============\r\n############### ITERATION 2 ################\r\n============= Depth 0 =============\r\n[  nan%] Remove [] => Yes (cached)\r\n============= Depth 1 =============\r\n############### ITERATION 3 ################\r\n============= Depth 0 =============\r\n[  nan%] Remove [] => Yes (cached)\r\n============= Depth 1 =============\r\n############### ITERATION 4 ################\r\n============= Depth 0 =============\r\n[  nan%] Remove [] => Yes (cached)\r\n============= Depth 1 =============\r\n...\r\n```\r\n\r\nWhile clearly I didn't do my test right, I don't think dustmite should get into an infinite loop here."},"comment":{"url":"https://api.github.com/repos/CyberShadow/DustMite/issues/comments/102444199","html_url":"https://github.com/CyberShadow/DustMite/issues/32#issuecomment-102444199","issue_url":"https://api.github.com/repos/CyberShadow/DustMite/issues/32","id":102444199,"user":{"login":"schveiguy","id":580778,"avatar_url":"https://avatars.githubusercontent.com/u/580778?v=3","gravatar_id":"","url":"https://api.github.com/users/schveiguy","html_url":"https://github.com/schveiguy","followers_url":"https://api.github.com/users/schveiguy/followers","following_url":"https://api.github.com/users/schveiguy/following{/other_user}","gists_url":"https://api.github.com/users/schveiguy/gists{/gist_id}","starred_url":"https://api.github.com/users/schveiguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schveiguy/subscriptions","organizations_url":"https://api.github.com/users/schveiguy/orgs","repos_url":"https://api.github.com/users/schveiguy/repos","events_url":"https://api.github.com/users/schveiguy/events{/privacy}","received_events_url":"https://api.github.com/users/schveiguy/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T15:52:43Z","updated_at":"2015-05-15T15:52:43Z","body":"thanks, that was quick :)"}}