-
Notifications
You must be signed in to change notification settings - Fork 697
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
cabal repl: Change in PATH environment variable not reflected #2015
Comments
Does this work in |
Yes, it works within ghci. (see changes in first post) |
A simple workaround is to run |
I can repro by calling repl directly on Setup script, so it must be a Cabal library bug. |
This seems a more general issue that seemingly running |
I just lost an hour trying to figure out why the |
Looks like I am hitting the same issue with Any other workarounds? |
rm -rf dist-newstyle
... |
... or
I am not able to reproduce with cabal run or exec, only with |
Wow. Wow. |
I ran into this issue today. I'm curious why this behaviour is even possible. Like, it's probably the consequence of a well-meaning feature. Anyone know? |
Description
A change in the PATH environment variable is not visible in cabal repl.
Versions
Confirmed in versions:
cabal-install version 1.20.0.3,
using version 1.20.0.1 of the Cabal library,
ghc 7.6.3,
cabal-install version 1.18.0.5,
ghc 7.8.3
Steps to reproduce
The environment when accessed from cabal repl-based ghci does not reflect the change in the PATH variable.
It does work with newly created environment variables, though.
GHCI
In pure GHCI everything works fine:
The text was updated successfully, but these errors were encountered: