Closed aryairani closed 4 years ago
Thanks for reporting!
Should be fixed in beta65.
@aryairani Can this one be closed?
I think so. I did a lot of "Remove redundant import"s in beta66 yesterday (as you may have guessed), and didn't encounter this issue.
Hmm, I tried to test out the original scenario after updating to beta68, but actually not seeing the warnings inline at all now. Should I open a separate ticket, or something else I can try? I already deleted and recreated the project.
The warnings are not there because of the compile error. The inline warnings are derived from GHC warnings.
We have -Werror
enabled in stack.yaml, so warnings end up as GHC errors, but this hasn't changed recently, and they are still just warnings in GHCi. So but unless something changed between beta64 and beta68 with respect to how errors & warnings are handled, I wonder if there's a different explanation?
Okay, I have enabled -Wall
and -Werror
and it works for me.
Maybe it's the case that file is not yet loaded in the REPL, that happens sometimes when the project is opened and IntelliJ wants to show annotations for the file but the REPL is not yet ready. I have created a solution for that but doesn't work in all cases. So then e.g. you just have to press an enter to load the file in the REPL and see the annotations.
Maybe it's the case that file is not yet loaded in the REPL, that happens sometimes when the project is opened and IntelliJ wants to show annotations for the file but the REPL is not yet ready. I have created a solution for that but doesn't work in all cases. So then e.g. you just have to press an enter to load the file in the REPL and see the annotations
I found an issue related to this, could be your issue.
@aryairani Can you confirm that changing the file e.g. by just pressing an enter, shows the warnings.
If that's is the case then I know your issue and that is an non-deterministic issue for already long time. I'm investigating the right solution for this issue.
For this example, I have a redundant imported symbol, per
ghcid
's output:intellij-idea shows the same redundant import
and the following action:
but when executed, line 23 was removed (the qualified import), not line 24:
which is not what we wanted: