hoovercj / vscode-ghc-mod

An extension to bring ghc-mod to vs code
MIT License
31 stars 13 forks source link

ghc-mod extencion don't work on Ubuntu #70

Open BryanSibaja opened 6 years ago

BryanSibaja commented 6 years ago

Ubuntu 18.04 Installed ghc-mod 5.8 (from Ubuntu's repositories) vscode 1.22.2 (from official .deb package)

danstiner commented 6 years ago

Could you try a couple of things:

  1. See if ghc-mod is working on the command line to check a source file: ghc-mod check path/to/source.hs
  2. In VSCode go to Help -> Toggle Developer Console and see if there are any error messages displayed.

For me on a fresh Ubuntu 17.10 install I had to do the following to get the extension working:

  1. Install VSCode and this extension
  2. sudo apt install ghc-mod cabal-install
  3. cd project-dir/ && cabal sandbox init && cabal update && cabal install

That said, I recommend Stack over cabal-install these days and this extension can be configured to work with stack.