{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1917","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1917/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1917/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1917/events","html_url":"https://github.com/commercialhaskell/stack/issues/1917","id":141345170,"number":1917,"title":"Permission denied when run stack setup on Windows 10","user":{"login":"Yury-Zakharov","id":3075563,"avatar_url":"https://avatars.githubusercontent.com/u/3075563?v=3","gravatar_id":"","url":"https://api.github.com/users/Yury-Zakharov","html_url":"https://github.com/Yury-Zakharov","followers_url":"https://api.github.com/users/Yury-Zakharov/followers","following_url":"https://api.github.com/users/Yury-Zakharov/following{/other_user}","gists_url":"https://api.github.com/users/Yury-Zakharov/gists{/gist_id}","starred_url":"https://api.github.com/users/Yury-Zakharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yury-Zakharov/subscriptions","organizations_url":"https://api.github.com/users/Yury-Zakharov/orgs","repos_url":"https://api.github.com/users/Yury-Zakharov/repos","events_url":"https://api.github.com/users/Yury-Zakharov/events{/privacy}","received_events_url":"https://api.github.com/users/Yury-Zakharov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/component:%20windows","name":"component: windows","color":"bfdadc"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/help%20wanted","name":"help wanted","color":"fef2c0"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":131,"closed_issues":202,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2016-05-27T04:29:39Z","due_on":"2016-12-31T08:00:00Z","closed_at":null},"comments":22,"created_at":"2016-03-16T17:28:25Z","updated_at":"2016-05-28T11:14:23Z","closed_at":null,"body":"OS: Windows 10 x64\r\nstack version: Version 1.0.4, Git revision cf18703b1392a96a5a4896a560309e501af63260 (3220 commits) x86_64\r\nGHC version: Not installed\r\nAnamnesis:\r\nafter installing stack 1.0.4 run \"stack new ...\" \r\nrun \"stack setup\"  stack downloads and extracts ghc files but then terminates with the following output:\r\n\r\nC:\\Users\\username\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3-tmp9724\\ghc-7.10.3\\: MoveFileEx \"C:\\\\Users\\\\username\\\\AppData\\\\Local\\\\Programs\\\\stack\\\\x86_64-windows\\\\ghc-7.10.3-tmp9724\\\\ghc-7.10.3\\\\\" \"C:\\\\Users\\\\username\\\\AppData\\\\Local\\\\Programs\\\\stack\\\\x86_64-windows\\\\ghc-7.10.3\\\\\": permission denied (Access is denied.)\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/222303266","html_url":"https://github.com/commercialhaskell/stack/issues/1917#issuecomment-222303266","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1917","id":222303266,"user":{"login":"mpilgrem","id":14206448,"avatar_url":"https://avatars.githubusercontent.com/u/14206448?v=3","gravatar_id":"","url":"https://api.github.com/users/mpilgrem","html_url":"https://github.com/mpilgrem","followers_url":"https://api.github.com/users/mpilgrem/followers","following_url":"https://api.github.com/users/mpilgrem/following{/other_user}","gists_url":"https://api.github.com/users/mpilgrem/gists{/gist_id}","starred_url":"https://api.github.com/users/mpilgrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpilgrem/subscriptions","organizations_url":"https://api.github.com/users/mpilgrem/orgs","repos_url":"https://api.github.com/users/mpilgrem/repos","events_url":"https://api.github.com/users/mpilgrem/events{/privacy}","received_events_url":"https://api.github.com/users/mpilgrem/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T11:14:23Z","updated_at":"2016-05-28T11:14:23Z","body":"I had the same 'Access is denied' problem on Windows 10 Pro 64-bit with ghc-8.0.1, when `stack setup` had worked previously with ghc-7.10.3 (on both occassions, working in Command Prompt with Administrator privileges). My work around the problem was this:\r\n\r\n1. I changed directory to the 'install location' directory that is identified by the `stack path --programs` command.\r\n\r\n2. Archive file `ghc-8.0.1.tar.xz` had been left in that folder. I used `7z` (which was also in that folder) twice to extract it (to create new folder `ghc-8.0.1`).\r\n\r\n`7z x ghc-8.0.1.tar.xz`\r\n`7z x ghc-8.0.1.tar`\r\n\r\n3. I created a `ghc-8.0.1.installed` file in that folder by making a copy of the existing `ghc-7.10.3.installed` file that was in that folder.\r\n\r\n`copy ghc-7.10.3.installed ghc-8.0.1.installed`\r\n\r\nThe `.installed` files appear to be 9 byte files containing `installed` in UTF-8 encoding.\r\n\r\n4. I deleted the (large) `ghc-8.0.1.tar` file, to clean up."}}
{"actor":{"display_login":"mpilgrem"}}