-
Notifications
You must be signed in to change notification settings - Fork 224
Suppress ICompilationException coming from EntryPointExecutor.Execute #2962
Conversation
@@ -221,13 +221,30 @@ private bool ParseArgs(string[] args, out RuntimeOptions defaultHostOptions, out | |||
return false; | |||
} | |||
|
|||
private Task<int> ExecuteMain(DefaultHost host, string applicationName, string[] args) | |||
private async Task<int> ExecuteMain(DefaultHost host, string applicationName, string[] args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't make it async
I don't quite understand what this is fixing. Can you show all of the cases that cause compilation errors and how this fixes each of them? |
@davidfowl
I moved |
@@ -250,8 +240,6 @@ private Task<int> ExecuteMain(DefaultHost host, string applicationName, string[] | |||
applicationName, | |||
ex.InnerException); | |||
} | |||
|
|||
throw; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this throw
still needed? I think without this we will suppress all exceptions but FileLoad/FileNotFound and compilation exceptions...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
🚢🇮🇹 (after you confirm we are not wrapping application exceptions in AggregateExceptions and Travis passes) |
63edeee
to
9cd75c9
Compare
9cd75c9
to
1b08f54
Compare
Issue #2887
Related to #2928
/cc @troydai @victorhurdugaci @davidfowl