Skip to content

Could not find GHC in WSL-Remote #312

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

Closed
amyjbrown opened this issue Oct 19, 2020 · 4 comments
Closed

Could not find GHC in WSL-Remote #312

amyjbrown opened this issue Oct 19, 2020 · 4 comments
Labels
type: bug A bug or unintended effect type: question Questions about anything

Comments

@amyjbrown
Copy link

I'm using the Haskell Language Server and on Windows WSL (Windows 10, Ubuntu), and I have GHC installed in /opt/ghc/bin/ghc, (following from this guide https://www.haskell.org/downloads/linux/) which is put on the path during code startup. However, after some fiddling with my .bash_profile and .bashrc, the Haskell extension was not able to find GHC, even if the terminal I pull up does so.

Is there a way of specifying the path of GHC proper within the extension?

@jneira jneira added type: bug A bug or unintended effect type: question Questions about anything responsibility: server labels Oct 19, 2020
@jneira
Copy link
Member

jneira commented Oct 19, 2020

Is there a way of specifying the path of GHC proper within the extension?

Actually there is no way and i think it should exist, given the amount of related issues (cc @bubba). It needs changes in the server though.
If you start vscode from the command line, does it work?

@amyjbrown
Copy link
Author

Hey Jneira,
Just installed GHC & Cabal via ghcup, and despite it following the same strategy as my previous install it seems to just work!

I guess this is a solution, but it still feels kind of magic - I don't know if choosing a different default install location would have made this not work.

@lukel97
Copy link
Collaborator

lukel97 commented Oct 30, 2020

@amyjbrown How are you launching vscode? If you launch it from the code CLI tool then it will inherit whatever PATH your shell had, but if you invoke from the taskbar/your desktop environment, you'll need to make sure that their PATH is set up properly too

@jneira
Copy link
Member

jneira commented Mar 9, 2021

The issue might be related with
haskell/haskell-language-server#236

@amyjbrown as it is not being reproduced i am gonna close it, feel free to reopen (or better, open a new one in the haskell-language-server issue tracker) if you hit it again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A bug or unintended effect type: question Questions about anything
Projects
None yet
Development

No branches or pull requests

3 participants