-
Notifications
You must be signed in to change notification settings - Fork 849
Description
General summary/comments (optional)
I am unable to install ghc utilizing stack setup
on Windows 7. When attempting to run, I receive the error
CreateDirectory "C:\\Users\\calex\\AppData\\Local\\Programs\\stack\\x86_64-windows": invalid argument (The system cannot find the path specified.)
I don't know the exact reason for the issue but wonder if this is at all related to this fix within the Haskell process
library. I opened an issue at the process
repo wondering if version 1.6 is being used within the stack
machinery. @snoyberg suggested I open an issue here asking that the Windows binaries be built with process
1.6.
I'll be glad to assist in any further troubleshooting to determine the exact root of the issue. Or I can open two issues - one asking for process
1.6 to be used within the Windows binaries and a separate issue working through my specific issue (if it isn't related).
Steps to reproduce
- Download the Windows x86 64-bit installer.
- Install
stack
using the defaults. Note that mySTACK_ROOT
is set toC:\sr
. - Open a Windows command prompt.
- Run
stack new my-project simple
. This executes and completes with out error. cd
into themy-project
directory.- Run
stack setup
to install a compiler.
Expected
Would expect to have ghc
installed.
Actual
I receive the following error.
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
CreateDirectory "C:\\Users\\calex\\AppData\\Local\\Programs\\stack\\x86_64-windows": invalid argument (The system cannot find the path specified.)
If I run stack setup --verbose
I receive the following error.
Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd x86_64 hpack-0.17.0
2017-04-27 20:43:01.194106: [debug] Checking for project config at: C:\Users\calex\my-project\stack.yaml
@(Stack\Config.hs:935:9)
2017-04-27 20:43:01.209707: [debug] Loading project config file stack.yaml
@(Stack\Config.hs:960:13)
2017-04-27 20:43:01.209707: [debug] Trying to decode C:\sr\build-plan-cache\x86_64-windows\lts-8.12.cache
@(Data\Store\VersionTagged.hs:68:5)
2017-04-27 20:43:01.225307: [debug] Success decoding C:\sr\build-plan-cache\x86_64-windows\lts-8.12.cache
@(Data\Store\VersionTagged.hs:72:13)
2017-04-27 20:43:01.225307: [debug] Using standard GHC build
@(Stack\Setup.hs:600:9)
2017-04-27 20:43:01.724507: [info] Preparing to install GHC to an isolated location.
@(Stack\Setup.hs:816:5)
2017-04-27 20:43:01.740107: [info] This will not interfere with any system-level installation.
@(Stack\Setup.hs:825:5)
CreateDirectory "C:\\Users\\calex\\AppData\\Local\\Programs\\stack\\x86_64-windows": invalid argument (The system cannot find the path specified.)
Stack version
> stack --version
Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd x86_64 hpack-0.17.0
Method of installation
- Official binary, downloaded from Github.