Skip to content
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

Missing message with type error (FS0001) #17373

Closed
glchapman opened this issue Jun 30, 2024 · 4 comments · Fixed by #17516
Closed

Missing message with type error (FS0001) #17373

glchapman opened this issue Jun 30, 2024 · 4 comments · Fixed by #17516
Assignees
Labels
Area-Diagnostics mistakes and possible improvements to diagnostics Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. Regression
Milestone

Comments

@glchapman
Copy link

Building (dotnet build) the attached project prints at the console an error FS0001 with a location in Program.fs, but does not print an message informative message. I would expect a message along the lines of

foo expects a seq<'a * 'b * 'c>, but is called with a seq<'a * 'b>

I'm using compiler version 12.8.300.0 for F# 8.0. The product version of fsc.exe is "12.8.300-beta.24228.1+dd749058c91585e9b5dae62b0f8df892429ee28f"
errmsg.zip

@T-Gro
Copy link
Member

T-Gro commented Jul 1, 2024

This is the code snippet from the attached project:

let foo items =
    for (a,b,c) in items do
        printfn "%A" (a, c)

[<EntryPoint>]
let main args =
    foo ({1..10} |> Seq.pairwise)
    0

And the only message literally is just FS0001:

  errmsg failed with 1 error(s) (4.9s)
    ...\errmsg\Program.fs(7,21): error FS0001:

Build failed with 1 error(s) in 11.8s

@vzarytovskii
Copy link
Member

Works fine in 6.x btw
image

@edgarfgp
Copy link
Contributor

edgarfgp commented Jul 1, 2024

I think it might be related to this PR #14003

@vzarytovskii
Copy link
Member

I think it might be related to this PR #14003

Yeah, that's our working theory rn

@T-Gro T-Gro added Regression Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. Area-Diagnostics mistakes and possible improvements to diagnostics and removed Needs-Triage labels Jul 8, 2024
@edgarfgp edgarfgp self-assigned this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Diagnostics mistakes and possible improvements to diagnostics Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. Regression
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants