Comments (6)
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.
FIXED, after modifying my ~.emacs.d/init.el
as follows:
- INSTALLING exec-path-from-shell (https://github.com/purcell/exec-path-from-shell)
- COMMENTING OUT
(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 )
ininit.el
).
Thank you @lunaryorn , also for the blog about emacs -Q
, which taught me a few useful things.
from flycheck-haskell.
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
from flycheck-haskell.
- 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.
@ocramz You're welcome. I'm happy to hear that you could solve this problem. Thanks for reporting the issue.
from flycheck-haskell.
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)
- flycheck-disable-checked not disabling haskell-stack-ghci HOT 6
- `flycheck-haskell-setup` signals error on Windows HOT 4
- Support for Haskell scripts made with Stack HOT 1
- Using flycheck in a docker-based stack project? HOT 1
- Bug in get-cabal-configuration.hs HOT 2
- call to stack / get-cabal-configuration delays editing file HOT 2
- IO mzero error when reading cabal configuration HOT 2
- cabal new-style builds HOT 1
- running hlint when installed using --copy-compiler-bins HOT 2
- Module ‘Distribution.PackageDescription.Parsec’ does not export ‘readGenericPackageDescription’
- Very bad performance HOT 4
- no errors HOT 7
- Paths_* modules cannot be found HOT 11
- Support hpack files directly HOT 3
- Flycheck with nix: Could not find module HOT 4
- Flycheck-haskell hangs indefinitely on NixOS HOT 6
- weird output from haskell-hlint checker HOT 2
- Support for cabal.project? HOT 1
- flycheck-haskell is very slow when stack.yaml is not pressent HOT 10
- Reference to Distribution.Parsec.Common needs to be updated for Cabal-3.0.0.0 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 flycheck-haskell.