Skip to content

Conversation

@Jand42
Copy link
Contributor

@Jand42 Jand42 commented Jan 4, 2016

Calculating the error number for FSharpErrorInfo enables printing the exact error output as fcs.exe using FCS.

dsyme added a commit that referenced this pull request Jan 5, 2016
Add FSharpErrorInfo.ErrorNumber
@dsyme dsyme merged commit d26986a into fsharp:master Jan 5, 2016
@dsyme
Copy link
Contributor

dsyme commented Jan 5, 2016

Thanks for the contribution.

Strictly speaking a test should have been added too, if you get a chance please submit a PR for that

@Jand42
Copy link
Contributor Author

Jand42 commented Jan 5, 2016

@dsyme Sorry, I found now that there are some existing tests for errors, this can be added at https://github.com/fsharp/FSharp.Compiler.Service/blob/master/tests/service/ProjectAnalysisTests.fs#L199

wholeProjectResults.Errors.[1].ErrorNumber |> shouldEqual 25

I will include it in a PR soon if needed.

@dsyme
Copy link
Contributor

dsyme commented Jan 5, 2016

OK, thanks, I added that directly.

@dsyme
Copy link
Contributor

dsyme commented Jan 5, 2016

Released in 2.0.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants