-
Notifications
You must be signed in to change notification settings - Fork 701
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
Can't install package: copyFile: does not exist
#4515
Comments
copyFile: does not exist exist
copyFile: does not exist
I don't see anything particularly wrong (aside from the redundant path). If you can reliably reproduce this, could you use https://technet.microsoft.com/en-us/sysinternals/bb896645 (set the filter to cabal.exe to reduce the noise) and you should be able to see the actual error from the file system. Can you copy and paste the log for that entry here? or a screenshot. |
The problem is probably
|
The error doesn't say which file copy failed. the path shown is just the base path. so maybe when the filename is added it does pass the |
Hmm the log doesn't contain any actual errors. All the accesses succeed and the file copies do as well.
I see no failures.
I guess the duplicate path should be fixed first, if that fixes the issue then it's a path length error. (though System.Directory seems to attempt to use |
So, the redundant path arises because of the copy command issued in 3b8ee83#diff-d998ae67b007b4623e9c789feb2c47abR929. we have the Can we issue a |
But surely that can't be intended? If it's a |
It seem it is. Here a few sources:
|
Not sure if this is the same problem but I've got this while building a project using new-build that uses the cryptohash-md5 and sha1 libraries. The log file is attached. Windows 10 cryptohash-sh_-0.11.10_-10758d342786ef1cdd0d32ea6f9223fd5558133b.log.txt |
@sumo I'm quite positive you're hitting the same problem. The new |
I am also hitting the same issue with: GHC8.2.2 Error output:
|
I've made two PRs to address this. Each of which will fix this issue. |
This commit uses a temporary directory for the nix store in several of the new-build tests in cabal-testsuite. The directory is given a very short path on Windows in order to avoid issues with long store paths.
This commit uses a temporary directory for the nix store in several of the new-build tests in cabal-testsuite. The directory is given a very short path on Windows in order to avoid issues with long store paths.
This commit uses a temporary directory for the nix store in several of the new-build tests in cabal-testsuite. The directory is given a very short path on Windows in order to avoid issues with long store paths.
Any update on this? This is still occuring. |
@KaneTW Are you using |
I no longer get this issue on
|
Seems to have been fixed by #4977, closing. |
This commit uses a temporary directory for the nix store in several of the new-build tests in cabal-testsuite. The directory is given a very short path on Windows in order to avoid issues with long store paths.
This commit uses a temporary directory for the nix store in several of the new-build tests in cabal-testsuite. The directory is given a very short path on Windows in order to avoid issues with long store paths.
This commit uses a temporary directory for the nix store in several of the new-build tests in cabal-testsuite. The directory is given a very short path on Windows in order to avoid issues with long store paths.
I still get this error (on W10) when doing
From some Can anyone with a windows machine reproduce? I tried this multiple times with different |
Hi, i've tried the build in windows 10 and it worked fine. In my case the path to tansformer is 187 chars long.
|
That seems to have worked. But I was under the impression that windows path length shouldn't be an issue anymore. Is that not true? |
Well, it seems that was at least partially fixed for cabal 2.2 (changelog). It seems ghc is involved too so it would explain the diff behaviour. |
I recently switched to cabal HEAD (was prior 3b8ee83) and for installations of new libs I get:
I suspected a too-long path but the actual path is only ~190 characters long. So maybe it actually doesn't create parent directories? I am not sure what the culprit here is exactly.
The respective copy command is issued here: 3b8ee83#diff-d998ae67b007b4623e9c789feb2c47abR929.
Also the path seems quite redundant! Why not put the library under
C:\Users\abiehl\AppData\Roaming\cabal\store\ghc-8.0.2\incoming\new-16045
instead ofC:\Users\abiehl\AppData\Roaming\cabal\store\ghc-8.0.2\incoming\new-16045\Users\abiehl\AppData\Roaming\cabal\store\ghc-8.0.2\regex-compat-_-0.95.1.4-a13ab0d5ccd9fb2c4a580fc0674bee71629b38f1\lib
. Thenew-*
directory is unique already! By dropping the redundant part we can save some precious bytes for paths.The text was updated successfully, but these errors were encountered: