Giter Site home page Giter Site logo

Comments (11)

iquiw avatar iquiw commented on July 20, 2024

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.

etanter avatar etanter commented on July 20, 2024

Yes, I did do that, and it gives a huge list of identifiers, which I guess is the expected behavior.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

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.

etanter avatar etanter commented on July 20, 2024

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.

iquiw avatar iquiw commented on July 20, 2024

Can you check if ghc-modi works?

$ /Users/etanter/Develop/Haskell
$ ghc-modi
boot

from company-ghc.

etanter avatar etanter commented on July 20, 2024

ghc-modi seems to work as well, as boot gives me a huge list of symbols.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

So the suspect is ghc-mod's elisp.
Which version (MELPA, Hackage, etc.) of ghc-mod are you using?

from company-ghc.

etanter avatar etanter commented on July 20, 2024

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.

iquiw avatar iquiw commented on July 20, 2024

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 github master.
  • Use MELPA-stable version of ghc-mod elisp. (I am not sure it works or not.)

from company-ghc.

etanter avatar etanter commented on July 20, 2024

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.

iquiw avatar iquiw commented on July 20, 2024

You are welcome ๐Ÿ˜‰

from company-ghc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.