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

A way to display errors in different non-intrusive way #215

Closed varosi closed 7 years ago

varosi commented 7 years ago

Pop-up errors often are very annoying. Currenly most often when I switch between projects with different LTS (GHC) versions - ghd-mod is complaining. And even if I would like just to browse/view the project - I get pop-up errors into my face.

May be those should be warnings, because nothing fatal is happened.

DanielG commented 7 years ago

Could you show us some of the error you're getting so we can discuss their severity?

varosi commented 7 years ago

untitled

Even if I just want to browse some older project I get this annoying errors. I know that I could not get type information because of this errors, but it should be a warning, not an error. It's better to browse my project peacefully than to fight with those messages. The problem is even worse on smaller resolution displays.

lierdakil commented 7 years ago

You can suppress error popups. See https://atom-haskell.github.io/core-packages/haskell-ghc-mod/#advanced-configuration. Errors are duplicated to dev. console either way, so you can still troubleshoot if you need to. FYI, Atom handles warnings as pop-ups as well, so that woudn't solve the problem.

Error handling was done this way primarily to encourage feedback, especially since ghc-mod's error messages can be rather cryptic to new users. Maybe it's about time I reevaluated this strategy.

пт, 9 июн. 2017 г. в 13:55, varosi notifications@github.com:

[image: untitled] https://user-images.githubusercontent.com/6051718/26972529-eb9372ea-4d1a-11e7-9839-4fff3158c24a.png

Even if I just want to browse some older project I get this annoying errors. I know that I could not get type information because of this errors, but it should be a warning, not an error. It's better to browse my project peacefully than to fight with those messages. The problem is even worse on smaller resolution displays.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/atom-haskell/haskell-ghc-mod/issues/215#issuecomment-307359264, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8EZpkeGx5_PFQUtuA8np2EGmXJw0v4ks5sCSSMgaJpZM4Nxudc .

varosi commented 7 years ago

Thank you very much, again! Advanced configuration solved my problem!