idris-mode icon indicating copy to clipboard operation
idris-mode copied to clipboard

Warnings show as errors in Flycheck mode.

Open gatoWololo opened this issue 7 years ago • 2 comments

Currently, warnings are marked the same red color as errors in the buffer. I'm currently using Idris 1.0.

By looking at your flycheck-define-checker, the issue seems to be this line:

((warning line-start (file-name) ":" line ":" column ":Warning - "

Running idriss on the command line:

>  idris --check --nocolor --warnpartial temp.idr 
temp.idr:5:1:
Warning - Main.f is possibly not total due to: Prelude.Interfaces.Int implementation of Prelude.Interfaces.Integral

So adding a newline character to the the warning string fixed this for me.

gatoWololo avatar Jun 28 '17 20:06 gatoWololo

Thanks for the feedback, if you want to submit a PR to fix this then please do.

jfdm avatar Jun 29 '17 07:06 jfdm

Thanks very much!

I don't use the Flycheck integration, but I do welcome a fix. Thanks again!

david-christiansen avatar Jun 30 '17 05:06 david-christiansen