{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/3074","labels_url":"https://api.github.com/repos/haskell/cabal/issues/3074/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/3074/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/3074/events","html_url":"https://github.com/haskell/cabal/issues/3074","id":128574660,"number":3074,"title":"installing hsdev fails: strip.exe: File exists","user":{"login":"mvoidex","id":1637937,"avatar_url":"https://avatars.githubusercontent.com/u/1637937?v=3","gravatar_id":"","url":"https://api.github.com/users/mvoidex","html_url":"https://github.com/mvoidex","followers_url":"https://api.github.com/users/mvoidex/followers","following_url":"https://api.github.com/users/mvoidex/following{/other_user}","gists_url":"https://api.github.com/users/mvoidex/gists{/gist_id}","starred_url":"https://api.github.com/users/mvoidex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvoidex/subscriptions","organizations_url":"https://api.github.com/users/mvoidex/orgs","repos_url":"https://api.github.com/users/mvoidex/repos","events_url":"https://api.github.com/users/mvoidex/events{/privacy}","received_events_url":"https://api.github.com/users/mvoidex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T16:23:03Z","updated_at":"2016-01-25T16:47:10Z","closed_at":null,"body":"It creates executables in \\AppData\\Roaming\\cabal\\bin and then strip.exe often fails (but not always) with `File exists` error:\r\n\r\n```\r\nInstalling library in\r\nC:\\Users\\voide\\AppData\\Roaming\\cabal\\i386-windows-ghc-7.10.3\\hsdev-0.1.5.5-6ru4Wp2Xjfd5WeK2d1GhPK\r\nInstalling executable(s) in C:\\Users\\voide\\AppData\\Roaming\\cabal\\bin\r\nD:\\Programs\\ghc\\ghc-7.10.3\\mingw\\bin\\strip.exe: невозможно переименовать (can't rename) C:\\Users\\voide\\AppData\\Roaming\\cabal\\bin\\hscabal.exe; причина (reason): File exists\r\nPreprocessing executable 'hshayoo' for hsdev-0.1.5.5...\r\nPreprocessing executable 'hsautofix' for hsdev-0.1.5.5...\r\n```\r\n\r\ncabal version:\r\n```\r\ncabal-install version 1.22.7.0\r\nusing version 1.22.5.0 of the Cabal library \r\n```"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/174577357","html_url":"https://github.com/haskell/cabal/issues/3074#issuecomment-174577357","issue_url":"https://api.github.com/repos/haskell/cabal/issues/3074","id":174577357,"user":{"login":"23Skidoo","id":47439,"avatar_url":"https://avatars.githubusercontent.com/u/47439?v=3","gravatar_id":"","url":"https://api.github.com/users/23Skidoo","html_url":"https://github.com/23Skidoo","followers_url":"https://api.github.com/users/23Skidoo/followers","following_url":"https://api.github.com/users/23Skidoo/following{/other_user}","gists_url":"https://api.github.com/users/23Skidoo/gists{/gist_id}","starred_url":"https://api.github.com/users/23Skidoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/23Skidoo/subscriptions","organizations_url":"https://api.github.com/users/23Skidoo/orgs","repos_url":"https://api.github.com/users/23Skidoo/repos","events_url":"https://api.github.com/users/23Skidoo/events{/privacy}","received_events_url":"https://api.github.com/users/23Skidoo/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T16:47:10Z","updated_at":"2016-01-25T16:47:10Z","body":"If you run `cabal install` with `-v3`, `cabal-install` will print the exact command it's trying to run. Then you can try running that command manually to see if it still triggers the bug. If this is indeed a bug in `strip` (as I suspect), then I guess we can add a workaround for it in Cabal (for example, we can ignore `strip` errors)."}}