-
Notifications
You must be signed in to change notification settings - Fork 31
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
"Couldn't parse package identifier depends" output nothing #18
Comments
Ok, after tracing codes and doing some testings, the problem seems caused by Cabal 1.14 ( or something else effecting it ) , which will print the depends twice . And ( maybe ) the But the "Couldn't parse package identifier depends" error message still append nothing after it. So I can't find any useful info according to the message, unless modifying the codes. |
After I remove the And why my computer has 2 |
I had the same problem here, for some reason the packages |
I think the best solution is to modify related codes in |
I can confirm, that having Cabal (and probably any other base package) installed globally and in user db will break hsenv. fixing parsePkgInfo (actually getDeps from PackageManagement) seems easy, but I suspect it will break if the wrong copy of Cabal is chosen. anyway, I won't fix it, because I think the whole process of re-using global ghc db is wrong and I will probably remove it in the future (it will simplify the code base a lot). I think using ghc from tarballs is cleaner and safer. to get rid of re-using global ghc db, first I have to implement caching of ghc installs, to not blow disk space usage and make it faster when creating many environments with the same ghc version. anyway, you can use hsenv with ghc from tarball (even if it's the same version as your global one), creating environments will be slower, and you will lose more space, but it will work correctly in your situation. |
When I execute the installed
hsenv
, it will generate nothing in the.hsenv/bin
dir and dump errors both in log and stderr :I've check the hsenv.log file, and it shows the error was caused by
Cabal-1.14.0
which had been installed bycabal-install
:The last line should output something, but it didn't . And the
ghc-pkg check
command can only find some warnings abouthaddock
. This problem has been reported in the pre-renamingvirtualenv
repo , and it still open .My platform :
And the
hsenv.cabal
file had been modified to fit new dependencies . I admit that may cause problems, but my situation is nothing output from a line, which should print what's wrong happened .The text was updated successfully, but these errors were encountered: