commercialhaskell / stack-ide

Stack-based JSON interface to ide-backend
98 stars 23 forks source link

stack-mode Flycheck errors weirdly overlap with the default checker on startup #65

Closed lukehoersten closed 8 years ago

lukehoersten commented 8 years ago

When opening a buffer with errors, their weirdly reported as (haskell-stack-ghc) checker. As far as I know, this checker name is not defined anywhere. Rerunning the checker on the buffer (which actually loads the modules from stack-ide process for the first time) then correctly reports the checker as (stack-ide).

I suspect these first immediately reported errors are actually quickly coming from the default haskell-ghc checker before it's disabled and before stack-ide even loads the modules. Not sure how to fix this.

lukehoersten commented 8 years ago

@purcell pointed out that flycheck actually has it's own "stack" based checker. It basically just uses stack to run GHC: https://github.com/flycheck/flycheck/blob/master/flycheck.el#L6521

This is a flycheck issue.