-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typed holes always appear as errors, even when deferred #256
Comments
Okay, actually, my mistake. It doesn't get in the way of evaluation, I just had a typo in the flag name. In which case, the only issue is seemingly the minor annoyance that these appear in red rather than yellow... |
The warnings appear in red? |
That is to say, in VScode for example, warnings from I'm not sure if there's really a practical distinction other than the colour and the little badge. |
Does this still happen? |
I've learnt to live with it, but yes. I think I looked in to it at some point, and the problem is that HLS always defers holes. And then explicitly decides to label them errors, so as not to confuse users who haven't set I'd expect any errors (as opposed to warnings) in the editor to indicate that my code won't run. |
Here's the problematic logic:
We shouldn't un-defer things if the user specified to defer them. |
Does anyone know why, even with
-fdefer-typed-holes
, holes are reported as errors rather than warnings?I've been curious about this for a while, but it hasn't caused my any real issues until now, when it gets in the way of using the Eval plugin.
The text was updated successfully, but these errors were encountered: