-
Notifications
You must be signed in to change notification settings - Fork 790
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
VS tooltip display too verbose when calling overloaded method with wrong parameter types #6578
Comments
Relevant locations: |
I'll look at this message (sample from #2503 (comment)): open System
open System.Threading.Tasks
let makeTask () = new Task<_>(fun () -> 1)
let task = makeTask()
let rt1 = Task.Run(fun () -> task) Actual:
It doesn't look great in VS: Looking for:
Please let me know if that makes sense. I've made some progress in my branch (#6596) for the initial case: There is work ahead for additional coverage of those messages as it is only lightly covered in fsharpqa tests. (edit: coverage seems appropriate) More input from users with verbose overload resolution messages in advanced and simple cases would be greatly appreciated. |
closing this one which got merged in #6596. |
This is an error message improvement suggestion after seeing a picture posted in fsharp.org's slack (user Alanay).
Overload can be little tricky at times, when the overload count is too too high, it would be good to have the VS tooltip show a prettier summary.
Repro steps
Here is a simple case with
System.Convert.ToString
:Actual behavior
Expected behavior
Looking for proposals, here is a first one which would read better:
Workarounds
Related information
Tracking
Error reporting improvements #1103, Improve Error Reporting: When implementation is missing necessary overrides, report a list of them #4982The text was updated successfully, but these errors were encountered: