{"action":"reopened","issue":{"url":"https://api.github.com/repos/palantir/eclipse-typescript/issues/47","labels_url":"https://api.github.com/repos/palantir/eclipse-typescript/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/palantir/eclipse-typescript/issues/47/comments","events_url":"https://api.github.com/repos/palantir/eclipse-typescript/issues/47/events","html_url":"https://github.com/palantir/eclipse-typescript/issues/47","id":18657446,"number":47,"title":"Possible problems on deleting output files on clean","user":{"login":"barakka","id":5023599,"avatar_url":"https://avatars.githubusercontent.com/u/5023599?v=3","gravatar_id":"","url":"https://api.github.com/users/barakka","html_url":"https://github.com/barakka","followers_url":"https://api.github.com/users/barakka/followers","following_url":"https://api.github.com/users/barakka/following{/other_user}","gists_url":"https://api.github.com/users/barakka/gists{/gist_id}","starred_url":"https://api.github.com/users/barakka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barakka/subscriptions","organizations_url":"https://api.github.com/users/barakka/orgs","repos_url":"https://api.github.com/users/barakka/repos","events_url":"https://api.github.com/users/barakka/events{/privacy}","received_events_url":"https://api.github.com/users/barakka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/eclipse-typescript/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2013-08-28T09:21:50Z","updated_at":"2015-01-20T19:22:46Z","closed_at":null,"body":"First my configuration as reference:\r\n- Windows OS;\r\n- Using git, with generated output files tracked;\r\n- Eclipse \"Build automatically\" active;\r\n- Source build path set, output folder empty (but that is equal to setting it to \"\").\r\n\r\nI've detected two possible problems with deleting the generated output files during clean (in TypeScriptBuilder):\r\n\r\n1) If the file being deleted is in use, the build fails (with a nasty error message). It happened to me when testing my app, possibly because the browser was locking the js or map files. If I edit and save one file, the automatic build triggers clean and rebuild, the clean fails and the output is not regenerated. I've fixed it try/catching the delete operation, and ignoring the failure, as the compile operation works fine even if the file is locked;\r\n\r\n2) Every time the project is rebuilt (for instance, just opening eclipse), all the generated output files are marked by git as deleted and re-added, which marks the project has modified with pending changes, even if no change occurred. Possibly this can be solved setting some git option, but given that the default behaviour is to track those changes, it is a little annoying."}}