Comments (11)
It is correct behavior that % boot
or % check ...
is written. However, outputs of their command should follow them when ghc-mod
correctly works.
Did you run ghc-mod boot
in /Users/etanter/Develop/Haskell
? If not, please try.
from company-ghc.
Yes, I did do that, and it gives a huge list of identifiers, which I guess is the expected behavior.
from company-ghc.
Ya, ghc-mod boot
seems to work.
I have no idea about the cause.
I suppose it is ghc-mod
issue (ghc-modi
or ghc-mod
's elisp).
from company-ghc.
Thanks. If you have any further suggestion on how to identify the source of the problem, that'd be very welcome. For now I'm stuck. I installed ghc-mod and company-ghc on another machine (same Mac OS 10.10), and have exactly the same issue...
from company-ghc.
Can you check if ghc-modi
works?
$ /Users/etanter/Develop/Haskell
$ ghc-modi
boot
from company-ghc.
ghc-modi
seems to work as well, as boot
gives me a huge list of symbols.
from company-ghc.
So the suspect is ghc-mod
's elisp.
Which version (MELPA, Hackage, etc.) of ghc-mod
are you using?
from company-ghc.
I have installed emacs packages through MELPA, and haskell packages through cabal.
$ cabal list ghc-mod
* ghc-mod
Synopsis: Happy Haskell Programming
Default available version: 5.2.1.2
Installed versions: 5.2.1.2
Homepage: http://www.mew.org/~kazu/proj/ghc-mod/
License: BSD3
As for emacs packages:
ghc-20150713.400/
company-ghc-20150613.123/
Maybe a clue: when I try to run M-x ghc-debug
, it complains that ghc-interactive-command
is void...
from company-ghc.
I got what is happening.
MELPA version of ghc-mod
uses legacy-interactive
argument when calling ghc-mod
process.
It is not supported by Hackage version of ghc-mod
.
So possible solutions are:
- Build
ghc-mod
command from githubmaster
. - Use MELPA-stable version of
ghc-mod
elisp. (I am not sure it works or not.)
from company-ghc.
brilliant! I used the elisp from MELPA-stable and it works like a charm.
Thank you very much for your help in diagnosing and fixing this!!
from company-ghc.
You are welcome ๐
from company-ghc.
Related Issues (20)
- Company gives โWrong type argumentโ error message HOT 8
- Interactive-Haskell hangs HOT 5
- completion of symbols in current module when not compiling? HOT 5
- Symbol's value as variable is void: company-backends HOT 3
- Fuzzy match for module names HOT 3
- company-ghc backend not found HOT 2
- company-ghc-turn-on-autoscan not detected HOT 4
- [Question] Constantly "Loading symbols for XX ..." HOT 2
- Company-ghc fails to scan and load modules HOT 1
- Operator in candidates
- Show type info in annotation HOT 6
- emacs sluggishness due to slow completion with ghc-mod HOT 11
- Integrate with company-flx HOT 1
- nil candidates without any other errors HOT 22
- Unwanted "Visit tags table (default TAGS)" HOT 1
- No autocompletion candidates for symbols in current file HOT 4
- How I can stop company-ghc to inject close parenthesis on import module keyword? HOT 4
- company-ghc backend found: company-ghc but ghc-boot process has not been done HOT 2
- MELPA package missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from company-ghc.