Skip to content
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

company-ghc backend not found #14

Open
gregwebs opened this issue May 17, 2015 · 2 comments
Open

company-ghc backend not found #14

gregwebs opened this issue May 17, 2015 · 2 comments

Comments

@gregwebs
Copy link

I am a new emacs user trying to get along with spacemacs. I have ghc-mod installed. When I run company-ghc-diagnose, I see this output:

* company-ghc backend not found
* automatic scan module is disabled.
  You need to run either 'M-x company-ghc-turn-on-autoscan' once
  or 'M-x company-ghc-scan-modules' when it is necessary.
* ghc-boot process has not been done

I am hoping some documentation can be added to the Diagnostic section of the README for a next step to resolve this issue.

@iquiw
Copy link
Owner

iquiw commented May 18, 2015

company-backends needs to be configured to add company-ghc to the backend list.
In standard Emacs way, M-x customize-variable RET company-backends and "INS"ert company-ghc as "User defined" backend.
Or something like the following needs to be written in ~/.emacs.d/init.el.

(with-eval-after-load 'company
  (add-to-list 'company-backends 'company-ghc))

I am not sure what is standard way of spacemacs though.
The following document might help.
https://github.com/syl20bnr/spacemacs/tree/master/contrib/lang/haskell#install
Writing (setq-default dotspacemacs-configuration-layers '(haskell)) to ~/.spacemacs seems to do necessary configurations.

I am hoping some documentation can be added to the Diagnostic section of the README for a next step to resolve this issue.

I will update the doc.

@gregwebs
Copy link
Author

Thanks for looking into it. None of that seems to fix the issue for me. I will ask for help on the spacemacs gitter chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants