-
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
Build corruption bug when moving a project #2936
Comments
Hmmm, yes, I can also blow up my package build if I rename the top level directory. I also get various different errors. What would you propose Stack would do in this case? |
Just work. Is there any reason Stack is sensitive to a project's absolute path? Having it be like this, means that project must never be moved or risk Stack's ire. |
I really should have noted, that |
Considering this is a linker error, it is likely an upstream issue with cabal |
Closing as an old support issue / upstream issue. |
I ran into some strange issues yesterday while trying to install the
bytestring-show
package and after trying for an hour in order to write this report, I could not replicate it. It seemed to me that I was going crazy and the errors were on my own end, but by accident I managed to make it happen.At first I thought the just renaming or moving the folder might be enough to trigger the bug, but that was not it. Nor was it that Stack was forgetting to close the file handles.
Here is the recipe.
stack new simple
inC:\asd
.bytestring
andbytestring-show
to the cabalsimple-exe
build dependencies.bytestring-show-0.3.5.6
to the yaml file.stack build
the project.asd
folder in which the project is in toasde
.stack build
,stack clean
andstack build
again and the project will get corrupted.Cleaning it again will not work, nor will restarting the command prompt. Yesterday I had different errors than the above so there might be more than one bug, but this is the only one I could actually reproduce. It is also likely that yesterday's errors were due to my haphazard actions while running the build as I am not familiar with Stack, so this might in fact be the only one.
Not related to this bug, one other bug is that
stack upgrade
is failing as shown in the SO post.Edit: This is on Windows 10. I installed the latest full Haskell Platform 3 days ago.
The text was updated successfully, but these errors were encountered: