-
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
"invalid argument" error on windows #1448
Comments
Oh, that lengthy command |
OK, one more update:
|
Did |
I have the same issue on windows with
and while I think you can also add this to your environment variables in windows to work but all this feels like workarounds to me - so it would be great if you could look on it again in case I am just using an outdated version (although I did grab the latest binary just now) - then please feel free to ignore or delete this comment/item Thank you |
If cabal doesn't have such problem then what would be the main difference? |
@CarstenKoenig Can you try stack-1.0.2 with GHC 7.10.3? There have been a number of fixes to the way GHC handles character encoding and so Stack no longer does any of the codepage/locale hacks if it detects that you're using ghc-7.10.3 or later. If that doesn't help, I'm surprised that LANG has any effect on Windows. Have you tried using |
I just tested it with 1.0.2 and indeed it seems to work (even with GHC 7.10.2). To make it short I removed the environment and will try again once I rebooted my machine tomorrow. PS: yes |
Update: it seems to work for me right now even on GHC 7.10.2 which seems strange (especially as it tells me
still) |
Well sadly the issue is back: if I
I get
this time no setting (tried |
Interesting. Is there anything unusual about your setup? I'm just wondering why we aren't hearing similar things from other windows users. |
well that is hard to tell:
The error happened first in the middle of building a project using And maybe this is why you don't hear that much - if it only happens with certain packages in the middle of a big pile of other packages(?) |
it's still there with stack 1.0.4 (while building ghcjs) - I tried:
nothing works at the moment |
I'm not familiar enough with this issue / windows to be much help, sorry! One wild guess is to try temporarily switching the locale to english? That would at least tell us if it's some sort of issue related to locale |
I just tried again and yes @mgsloan was on the right track. Thankfully you don't have to reset your complete system. At least on my german Win8 and Win10 systems - if you change the Language for non-Unicode programs settings in windows (as described here) to Englisch (US) GhcJs seems to be finally compiling (at least the |
Does anything change if you use GHC 7.10.3 instead of 7.10.2? They fixed some locale issues on Windows in that and Stack disables its workarounds (which were not entirely reliable) when using 7.10.3 or later. |
I have the exactly same problem, also during building GHCJS - |
Since there is a documentation fix, closing this for now. If there is something that stack can do better here, please open another issue about it! |
I've created #3988 to fix this issue properly so that the workaround linked above should no longer be necessary once done. |
I had dependency problems building my project with global cabal, so i wanted to switch to stack. Whereas I am able to install new packages via cabal-install, stack always fails with the same error.
The system is Windows 8.1 x64 first with haskell platform and stack, later only stack. The error did not change.
Steps to reproduce
stack new
cd
into the new project directorystack setup
finishes successfully (both with haskell platform ghc and newly downloaded ghc)stack install cabal-install
(or any other package)Expected:
6. successful build of cabal and other packages
Actual:
6. Get the following error structure:
I have tried both powershell and cmd, uninstalling haskell platform, manually removing the stack root, ghc and cabal dirs in %APPDATA%. It doesn't change. Someone on the IRC suggested a unicode problem, but i have no idea how to check for that.
The text was updated successfully, but these errors were encountered: