Giter Site home page Giter Site logo

Comments (8)

iquiw avatar iquiw commented on July 20, 2024

I pushed the fix as commit 9010952
Please try it.

Aside from this error, ghc-get-info seems not work in this case.
You might want to check *GHC Debug* buffer by setting ghc-debug to t.

from company-ghc.

8573 avatar 8573 commented on July 20, 2024

The “Wrong type argument” error appears fixed; thanks!

I see no error messages in *GHC Debug*, though I don’t know what to
look for.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

M-x ghc-show-info works?

from company-ghc.

8573 avatar 8573 commented on July 20, 2024

M-x ghc-show-info doesn’t seem to do anything.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

Check the return value of M-: ghc-process-running.
If it is t, I am afraid you hit the problem written in DanielG/ghc-mod#405 (comment)

It is appreciated if you could try the code written in the above issue comment.

from company-ghc.

8573 avatar 8573 commented on July 20, 2024

ghc-process-running is nil when I first visit a Haskell source file,
and neither completing a word with company-ghc nor running
ghc-show-info seem to change the value of ghc-process-running to
anything other than nil.

It is appreciated if you could try the code written in the above issue
comment.

Having made the following change to ghc-mod

diff --git i/elisp/ghc-process.el w/elisp/ghc-process.el
index 9fb92d8..5f40675 100644
--- i/elisp/ghc-process.el
+++ w/elisp/ghc-process.el
@@ -112,8 +112,9 @@
     (setq ghc-process-num-of-results (or n 1))
     (let ((pro (ghc-with-process cmd 'ghc-process-callback nil hook)))
       (condition-case nil
-         (while (and (null ghc-process-rendezvous)
-                     (accept-process-output pro 2)))
+          (let ((inhibit-quit nil))
+            (while (null ghc-process-rendezvous)
+              (accept-process-output pro)))
        (quit
         (setq ghc-process-running nil))))
     ghc-process-results))

company-ghc still works, ghc-show-info still doesn’t seem to do
anything, and ghc-process-running still stays nil.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

Thanks for trying.
Then I have no idea what happens.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

This is an issue in ghc-mod.
Maybe ghc-mod people can help.

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.