-
Notifications
You must be signed in to change notification settings - Fork 301
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
Investigate why having Microsoft.NET.Test.Sdk
as a dependency throw exceptions while scanning for Fable plugins
#3511
Comments
You're right, the assembly that causes this is |
Thank you for looking into it and explaining the cause of the problem. I tried to add Also, there are 3 .dll failing that comes with The old behaviour was just to skip them but had the problem of making some situation hard to understand or make the user think that the compilation was correct when in fact it was not. The new behaviour should be transparent for most of the users because I don't think they will depends on |
I have just stumbled upon the commit that was made for this issue, and found out that the exception should not be silently swallowed, since it makes it extremely difficult to find the reason of the error. |
@Lanayx If I understand, when working on a Fable plugin, if we included the exception message in the exist log it would have helped you? |
Correct. I've started with the plugin yesterday and was desperate to see the error there without having an idea of what went wrong. |
Ok, I will add the inner error message. Based on my tests it never included anything meaningful but Fable compiler plugins are not often used so I can have miss something here. Hopefully, it will not add too much noise / fear if it come up in someone build. |
Description
While working on #3441 (via commit d212c2f) a regression has been introduced.
Indeed, when trying to compile Python and Rust tests projects, an error was reported:
This error is caused by the lines:
Which to me is not obvious why these lines would report an error. To fix this issue I decided to mimic the old behaviour of Fable which consist of ignoring exceptions at this place 🤫
I am opening this issue to keep track of this behaviour and if someone has an idea on why or how we can improve the situation please don't hesitate to step in.
I tried believe this problem only occur if the project has
Microsoft.NET.Test.Sdk
in its dependencies. So perhaps we could be a bit more restrictive on the DLL we skip.The text was updated successfully, but these errors were encountered: