-
Notifications
You must be signed in to change notification settings - Fork 90
Feature request: Add setting to specify stack
/cabal
/ghc
path
#396
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
Comments
Could I work on this? |
@jacobprudhomme sure! however i cant reproduce the @zbs problem with There is even a trick using ghcup to set the desired ghc before opening vscode and it works for sure (in the general case):
There are other considerations:
However i really appreciate your offer, what did you choose this concrete feature? would it improve your workflow? |
@jneira sorry for the late response! It seems I had misread the original issue, I have not actually experienced the same issue as @zbs (though I had a similar issue long ago). Given what you've said above, it seems it doesn't really make sense to add these configuration options 🤔 I chose this issue mainly because I thought it might be an easier entrypoint into the codebase for me to learn. It doesn't, however, really affect my own personal workflow. |
@jacobprudhomme what about tackle anoher issue? I think #214 could be useful in different ways and i think it will not be too difficult |
Thank you! I'll check it out. |
@jacobprudhomme hi, thanks to your work the new released version includes the possibility of setting the env. I've tried to put { "haskell.serverEnvironment":
{ "PATH": "D:\\ghcup\\bin;D:\\ghcup\\ghc\\9.0.1\\bin" }
} (not having ghc in
So i think it can be used to workaround the issues about the environment inside vscode. |
I am encountering the same issue as #312, and launching
code .
from the command line does not cause the code server to inherit myPATH
, which contains the$HOME/.local/bin
directory that contains thestack
binary. My hunch is that VS Code prevents the overriding of certain environment variables (such asPATH
). Given that this is the case, it would be preferable if the extension allowed users to specify the location of theirstack
executable.I view it as akin to the Python extension, where a user selects the location of the interpreter. They might have multiple interpreters installed, and the extension will respect whichever one is picked.
The text was updated successfully, but these errors were encountered: