Giter Site home page Giter Site logo

Comments (6)

bigos avatar bigos commented on September 23, 2024 3

Since Google lists this issue at the top I thought I would add my comment. I had this error:

Suspicious state from syntax checker haskell-stack-ghc: Flycheck checker haskell-stack-ghc returned non-zero exit code 1, but its output contained no errors: Run from outside a project, using implicit global project config
Compiler version mismatched, found ghc-7.10.3 (x86_64), but expected minor version match with ghc-8.0.2 (x86_64) (based on resolver setting in /home/jacek/.stack/global-project/stack.yaml).

I have edited the relevant file
nano ~/.stack/global-project/stack.yaml
and changed the resolver from resolver: lts-8.15 to:
resolver: ghc-7.10.3

Please comment on the above and perhaps point me to a better solution. Other places discussing the problem mention it's some king of stack cabal environment mismatch, but none of the offers a guide to solve the problem.

from flycheck-haskell.

ocramz avatar ocramz commented on September 23, 2024 2

FIXED, after modifying my ~.emacs.d/init.el as follows:

(eval-after-load 'flycheck      
   '(add-hook 'flycheck-mode-hook #'flycheck-haskell-setup))
  • ACTIVATING global-flycheck-mode (adding the entry '(global-flycheck-mode t) in the list (custom-set-variables ) in init.el).

Thank you @lunaryorn , also for the blog about emacs -Q , which taught me a few useful things.

from flycheck-haskell.

swsnr avatar swsnr commented on September 23, 2024

Hello.

Thank you very much for reporting this issue. We will try to address it as soon as possible. However, we need additional information from you. Please tell us

  • your Flycheck version, as in M-x flycheck-version,
  • and the output of M-x flycheck-verify-setup in an affected buffer.

Please also include the complete error message. You can copy it from the *Messages* buffer.

It'd be awesome if you could try to reproduce the bug in emacs -Q as well, and provide a step-by-step recipe for us to reproduce the issue as well.

Please add a comment with all this information. If you think that you already provided all necessary information please tell us as well. If you have difficulties with specific steps please do not hesitate to ask.

Thank you very much for using Flycheck, and for taking the time to report this issue. We are looking forward to work with you to solve this problem 😊


This is one of me saved replies. I am using this feature to help me reduce the time spend on triaging issues in Flycheck ☺️ If you feel that saved replies are not appropriate, please tell me. Thank you.

from flycheck-haskell.

ocramz avatar ocramz commented on September 23, 2024
  • Flycheck version 26
  • M-x flycheck-verify-setup : I don't understand why, even after restarting Emacs, flycheck isn't found (it's in my .local/bin):
$ which hlint
/Users/ocramz/.local/bin/hlint

$ hlint --version
HLint v1.9.31, (C) Neil Mitchell 2006-2016
Syntax checkers for buffer Vec.hs in haskell-mode:

  haskell-stack-ghc
    - predicate:  t
    - executable: Found at /usr/bin/stack

  haskell-ghc
    - predicate:  t
    - executable: Found at /Applications/ghc-7.10.3.app/Contents/bin/ghc

  haskell-hlint
    - predicate:  nil
    - executable: Not found

Flycheck Mode is enabled.  Use C-u C-c ! x to enable disabled
checkers.
  • After turning on Flycheck, the following appears:
Suspicious state from syntax checker haskell-stack-ghc: 
Checker haskell-stack-ghc returned non-zero exit code 1, but no errors from output: 
No compiler found, expected minor version match with ghc-7.10.3 (x86_64) 
(based on resolver setting in /Users/ocramz/Dropbox/RESEARCH/Haskell/petsc-hs/stack.yaml). 
Try running stack setup to locally install the correct GHC
Checker definition probably flawed.

from flycheck-haskell.

swsnr avatar swsnr commented on September 23, 2024

@ocramz You're welcome. I'm happy to hear that you could solve this problem. Thanks for reporting the issue.

from flycheck-haskell.

raghuugare avatar raghuugare commented on September 23, 2024

Was about to report a similar issue here. Thank you @ocramz & @lunaryorn !
(In my case, the issue cropped up when I switched from cabal to stack & back to cabal--in any case, I wish that we all move towards 1 preferred system soon which means less headaches for everyone!)

@lunaryorn - special thanks for your blog on the emacs -Q option. Will definitely share it on!

Keep up the great work!

from flycheck-haskell.

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.