We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm not 100% sure this issue belongs here (vs. elm-language-client-vscode) but I think it does. Let me know if I should move it there.
elm-language-client-vscode
SSCCE:
type MyType = MyType -- First comment -- Second comment -- Third comment Int someFunction : MyType -> Bool someFunction mytype = case mytype of MyType _ -> True
No errors.
The following error treats the variant MyType as taking 4 arguments when it actually takes only one (and has 3 comments):
MyType
This `case` does not have branches for all possibilities. Missing possibilities include: MyType _ _ _ _
Once the comments are deleted or moved up the error disappears. It seems that comments are tokenized and somewhere interpreted as type arguments.
The weirdest thing though is that if I check the VSCode plugin box Only Update Diagnostics On Save this error disappears.
Only Update Diagnostics On Save
I've also seen the error disappear when I save the file but sometimes it does not.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. I was able to fix it pretty easily.
Sorry, something went wrong.
Thank you @jmbockhorst!!
Successfully merging a pull request may close this issue.
I'm not 100% sure this issue belongs here (vs.
elm-language-client-vscode
) but I think it does. Let me know if I should move it there.SSCCE:
Expected Behavior
No errors.
Current Behavior
The following error treats the variant
MyType
as taking 4 arguments when it actually takes only one (and has 3 comments):Possible Solution
Once the comments are deleted or moved up the error disappears. It seems that comments are tokenized and somewhere interpreted as type arguments.
The weirdest thing though is that if I check the VSCode plugin box
Only Update Diagnostics On Save
this error disappears.I've also seen the error disappear when I save the file but sometimes it does not.
Steps to Reproduce (for bugs)
Your Environment
The text was updated successfully, but these errors were encountered: