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
Current vscode-hie-wrapper fails on macOS, probably due to GUI $PATH not being set like shell $PATH #105
Comments
I have the same issue with latest HIE. Also on Mac (10.13.6). Additionally, I see messages like this:
Repeated for all dependencies. Same code base was working fine under previous HIE. |
The transition from |
Just figured out a workaround by adding this to VSCode's user settings:
Seems to work. |
I had the same issue. I think it is due to VSCode plugin being not up to
date with the make file in HIE, or a bug in the plugin
Manual fix (that worked for me): cp ~/.local/bin/hie-wrapper
~/.local/bin/hie
Explanation (to my understanding): VSCode plugin has deprecated the wrapper
shell script, so now it always calls to hie and not to hie-wrapper.
Since hie-wrapper is capable of figuring out which hie-<version> to use, we
can have it as a "default" hie and we in fact don't need a default
arbitrary hie anyway.
…On Thu., 16 Aug. 2018, 5:35 am Paul Snively, ***@***.***> wrote:
Same code base was working fine under previous HIE.
The transition from hie-wrapper.sh to hie-wrapper (binary) is almost
certainly the culprit: the former would have its $PATH set by launching a
shell; the latter doesn't (on macOS).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABVG1_-j-5ptDU_33ayuXvMkolfbXdR6ks5uRHgGgaJpZM4V-HLj>
.
|
Apparently haskell/haskell-ide-engine#748 is the same issue |
Not sure if it is related by in the VSC user parameters,
is underlined and it says "Unknown configuration setting". |
I did this, which might be better than copying:
|
It seems the use of hie-wrapper is stable and afaik it is working without have to do any workaround . |
I'm working with fp-course, and have HIE checked out and built from source as of yesterday. When I try to use HIE with this project, I get the popup:
This is probably because, having built HIE from source on the master branch with stack, everything is in
~/.local/bin
, which is in my shell's $PATH thanks to a file,/etc/paths.d/local
, containing/Users/psnively/.local/bin
. But unfortunately, the mechanism used to build the $PATH for the shell isn't used by the launcher system for GUI applications, so I'm betting the $PATH is not appropriate for the machinery used by the extension to launchhie-wrapper
, so it's effectively not being used.If there's anything I can add to help track this down, please let me know.
Thanks!
Update: I should add that, in my shell:
works perfectly:
The text was updated successfully, but these errors were encountered: