flycheck / flycheck-haskell

Improved Haskell support for Flycheck
GNU General Public License v3.0
67 stars 25 forks source link

no errors #81

Closed kuribas closed 6 years ago

kuribas commented 6 years ago

Flycheck shows no errors, even when I enter garbage in the file. I use ghc-8.2.2, and the latest flycheck-haskell and haskell-mode from melpa.

kuribas commented 6 years ago

It seems to work for some of my projects, on not for others.

sergv commented 6 years ago

@kuribas Thanks for your report. Can you provide a reproducible where it does not work?

kuribas commented 6 years ago

https://github.com/kuribas/cubicbezier/tree/flycheck It doesn't check Geom2D/CubicBezier/Basic.hs, which contains errors.

kuribas commented 6 years ago

I know elisp, if I could find a entry point I could try debug it myself. But it's hard because it fails without error.

kuribas commented 6 years ago

running flycheck-compile shows that the error is in another file that it compiles before checking this file. Perhaps flycheck-haskell could show why it has failed checking this file?

sergv commented 6 years ago

Ah, if the error comes from another file then there is an explanation for that. You see, the flycheck currently doesn't show errors from other files. There are ideas and some moderate attempts to fix that, but it doesn't seem to be near its finish - https://github.com/flycheck/flycheck/issues/966. If you can lend a hand there it would be of tremendous help. In the mean time there is this general limitation that you get meaningful errors from the current buffer only.

sergv commented 6 years ago

I'm closing this issue since it should be fixed in the flycheck repository, not in flycheck-haskell.