-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: Need local-programs-path with no space in path, if no short (8 dot 3) name exists for default #4726
Comments
I can build on a different Windows 10 machine, so it must be the machine not |
One difference between the two Windows 10 machines is that the one that works does not have a space on the path and the the one that does not work does have a space on the path. I located the
|
The solution is, therefore, to set As far as I can see, the current documentation does not warn Windows users that may be necessary. |
Just to confirm, based on your title change: are you saying that you've also tested this with a new build of the Stack from master and experience the same problem? Can you confirm what the |
I've just tested on my Windows 10 machine with a space in my |
Without a space in the With a space in that path, on the same machine, and using that version of stack, I cannot
and the verbose version is:
|
Interesting. I tried again to reproduce this today, and I noticed this in my output:
Notice how the paths being used by the I'm still tempted to treat this as a documentation issue. I can't guarantee any more time on trying to debug this, but if you'd like to try to get deeper into this issue, my next step would be to look at the output from:
|
I agree that this is a documentation issue. After some further research, I discovered:
|
I have proposed a pull request #4798, targeting the stable branch, with documentation changes. |
Fix #4726: Improve docs on stack's programs path, on Windows
Thanks! Closing now that #4798 is merged. |
…s' path with space In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is informed if the stack 'programs' path contains a space character. If the path also does not have an alternative short ('8 dot 3') name, the user is further warned of the implications for packages that make use of the GNU project's `configure` shell script. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
…s' path with space In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is informed if the stack 'programs' path contains a space character. If the path also does not have an alternative short ('8 dot 3') name, the user is further warned of the implications for packages that make use of the GNU project's `configure` shell script. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
…s' path with space In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is informed if the stack 'programs' path contains a space character. If the path also does not have an alternative short ('8 dot 3') name, the user is further warned of the implications for packages that make use of the GNU project's `configure` shell script. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
…s' path with space In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is informed if the stack 'programs' path contains a space character. If the path also does not have an alternative short ('8 dot 3') name, the user is further warned of the implications for packages that make use of the GNU project's `configure` shell script. New modules `System.Info` are added to `src/windows` and `src/unix` to rexport `getShortPathName` from the `System.Win32.Info` module of the `Win32` package in the case of Windows and do nothing in the case of Unix-like operating systems. This avoids the need for C preprocessor (CPP) directives in `Stack.Config`. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
…s' path with space In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is informed if the stack 'programs' path contains a space character. If the path also does not have an alternative short ('8 dot 3') name, the user is further warned of the implications for packages that make use of the GNU project's `configure` shell script. New modules `System.Info.ShortPathName` are added to `src/windows` and `src/unix` to rexport `getShortPathName` from the `System.Win32.Info` module of the `Win32` package in the case of Windows and do nothing in the case of Unix-like operating systems. This avoids the need for C preprocessor (CPP) directives in `Stack.Config`. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
…space, no 8dot3 name In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is warned if the stack 'programs' path contains a space character and does not have an alternative short ('8 dot 3') name,warned of the implications for packages that make use of the GNU project's `configure` shell script. New modules `System.Info.ShortPathName` are added to `src/windows` and `src/unix` to rexport `getShortPathName` from the `System.Win32.Info` module of the `Win32` package in the case of Windows and do nothing in the case of Unix-like operating systems. This avoids the need for C preprocessor (CPP) directives in `Stack.Config`. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
…space, no 8dot3 name In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is warned if the stack 'programs' path contains a space character and does not have an alternative short ('8 dot 3') name,warned of the implications for packages that make use of the GNU project's `configure` shell script. New modules `System.Info.ShortPathName` are added to `src/windows` and `src/unix` to rexport `getShortPathName` from the `System.Win32.Info` module of the `Win32` package in the case of Windows and do nothing in the case of Unix-like operating systems. This avoids the need for C preprocessor (CPP) directives in `Stack.Config`. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
…space, no 8dot3 name In module `Stack.Config`, function `configFromConfigMonoid`, a stack user is warned if the stack 'programs' path contains a space character and does not have an alternative short ('8 dot 3') name,warned of the implications for packages that make use of the GNU project's `configure` shell script. New modules `System.Info.ShortPathName` are added to `src/windows` and `src/unix` to rexport `getShortPathName` from the `System.Win32.Info` module of the `Win32` package in the case of Windows and do nothing in the case of Unix-like operating systems. This avoids the need for C preprocessor (CPP) directives in `Stack.Config`. `ChangeLog.md` is updated, accordingly. Tested on Windows 10 with 'programs' paths that do and do not contain space characters and, in the latter case, with paths that do and do not have '8 dot 3' names. Tested with paths that do not yet exist when stack is first run.
Fix #4726: On Windows, inform or warn about 'programs' path with space
I can't build the current stack master (last commit is abf4ca0, a clean clone from GitHub) with stack (version is: Version 1.9.3, Git revision 40cf7b3 (6211 commits) x86_64 hpack-0.31.1, a clean download of the binary) on Windows 10. It always fails at the
process-1.6.3.0
step. For example:Given the reference in the error message above to
gcc
, in case it is relevant:The text was updated successfully, but these errors were encountered: