Skip to content

Further protection for GetDeclarations against internal errors - #3386

Merged
KevinRansom merged 3 commits into
dotnet:masterfrom
dsyme:fix-461633-461053
Jul 26, 2017
Merged

KevinRansom merged 3 commits into
dotnet:masterfrom
dsyme:fix-461633-461053

Conversation

@dsyme

@dsyme dsyme commented Jul 25, 2017

Copy link
Copy Markdown
Contributor

This extends the fix for #3379 to also have all uses of ErrorScope.Protect protect against all exceptions (i.e. internal compiler errors not formatted as F# compiler error messages)

@dsyme

dsyme commented Jul 25, 2017

Copy link
Copy Markdown
Contributor Author

This fix is made to be cherry-picked into the release branch. After this is accepted, we should probably extend the fix to change the FCS API to always report back the potential error message as a Result value, leaving it up to the caller of FCS to decide how to display the error. There are some cases where we are swallowing the error message produced by ErrorScope.Protect.

@KevinRansom
KevinRansom merged commit ba6dff8 into dotnet:master Jul 26, 2017
brettfo pushed a commit that referenced this pull request Jul 26, 2017
* better error protection for language service

* protect against ICEs
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.

3 participants