atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

No errors/warnings/lint are displayed #121

Closed WillSewell closed 8 years ago

WillSewell commented 8 years ago

I have set up this package as described in the README. I'm using it for a stack project with versions:

I get types/info when I hover over identifiers in the source code, but I do not have any error/warning/lint messages showing up, even though I have "On Save Lint" and "On Save Check" set. When I look at the Console, I see the queries to ghc-mod type and ghc-mod info, but no queries to ghc-mod check.

Do you know what the problem is?

Thanks.

WillSewell commented 8 years ago

I just downgraded to v1.6.6 and it now works.

lierdakil commented 8 years ago

Does calling check from menu/command palette work? Do you have ide-haskell installed? What version? Lastly, if you're using ide-haskell frontend, make sure 'Use Linter' is disabled in haskell-ghc-mod settings, because it switches haskell-ghc-mod to use 'linter' package to display check results -- if you don't have it installed, it won't work.

WillSewell commented 8 years ago

Ah that was the problem. I didn't realise 'Use Linter' meant the linter package (which was not installed). Might be worth documenting that it won't work without this? Or at least throw an error if it's not installed.

Thanks for a amazing plugin btw!

lierdakil commented 8 years ago

Well, option description does explicitly state 'Use Atom Linter service for check and lint'. Maybe it's not quite obvious what that implies... I could of course add a check for linter activation, but that comes with a whole lot of caveats in itself. I'll try rewording this description though.

lierdakil commented 8 years ago

Done. Also added a section explaining this to README. Hopefully, this leads to less confusion.

WillSewell commented 8 years ago

Thanks! That's a lot clearer.