Closed asheshambasta closed 4 years ago
I am also seeing this problem. I am trying to upgrade from an old version of dante (and some old dependent packages) but I see the exact same problem. In the status line when there is an error it says "Dante:ghc-err" and "FlyC" but it used to say "Dante:error" and "FlyC:1/0" (indicating 1 error, 0 warnings).
Aha, in the status line at the start I see
error in process filter: Wrong type argument: flycheck-error, [cl-struct-flycheck-error nil haskell-dante ...
@asheshambasta I have had success by using the latest of everything from MELPA. You might like to look at my EDIT: corrected below.emacs
.
You will see I had to use a workaround for https://github.com/jyp/dante/issues/134.
Sorry, I gave you a stale link. It should be
https://github.com/tomjaguarpaw/dotfiles/blob/d1e664d7e146df85a5da0192fe7d26ec1af5f48b/Emacs/emacs
It seems that this is fixed. I'll close; feel free to re-open, or open a narrowed-down issue.
@jyp @tomjaguarpaw this is indeed fixed for me. I'll try to drill down to the root cause and reopen this with more details if I can repro this.
It would be great to know under what conditions this occurs. I'm trying to get a deterministic Emacs setup (using straight.el) so I hope to not see regressions like this anymore, but it would still be helpful to know what the root cause is.
@tomjaguarpaw yeah same here; although I think I can try to repro this the coming weekend. However, I'm also looking into a deterministic Emacs setup (in my case, I'm looking into home-manager since I'm on NixOS)
So my emacs configuration for dante is:
And when I open a haskell buffer, I see that the modes are all initialised correctly. However, flycheck seems to not find any errors whatsoever: there's no highlighting in the buffer and
flycheck-next-error
results in:Does this mean something is wrong with my configuration? How can I diagnose this?
Screenshot: (the red box is where I'd expect the errors to be highlighted)
dante-diagnose
:Further experimenting with my setup, I see that I need to close the buffer and reopen it to see flycheck errors.