-
Notifications
You must be signed in to change notification settings - Fork 586
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
Exception when running as .NET Core 3 local tool #2406
Comments
Thanks for the report, it looks like some encoding restore at the very end fails on netcore 3.0. No idea why, maybe some breaking change in netcore? I guess we can disable that code in netcore v3 if we cannot figure out the root cause |
Note: this is right at the end, argument parsing and running the script already finished successfully |
Yep, I noticed everything does work. It is only somewhat confusing to end with an error. |
It has to do with https://github.com/fsharp/FAKE/blob/e7f52f93018182273a802c4c7c873e57d1d7bcad/src/app/Fake.netcore/Program.fs#L329 Which was the fix for #1461 So I guess we add either a try catch like we do on other places or we find the root case |
@nojaf Interestingly I cannot reproduce this issue, which terminal, shell and language settings are you using on your system? |
Next version will no longer fail but print a warning, but there is still some issue on your system which probably needs fixing |
I assume you can easily reproduce with:
|
I was using hyper on Windows 10 |
@nojaf Can you try the |
And I guess it fails with the line above (encoding<-encoding)? |
There has not been any activity in this issue for the last 3 months so it will be closed in 14 days if there is no activity. |
Description
When install fake as local tool, every command seems to end with an argument exception.
Repro steps
Please provide the steps required to reproduce the problem
Expected behavior
Restores packages and runs empty script.
Actual behavior
Related information
The text was updated successfully, but these errors were encountered: