-
Notifications
You must be signed in to change notification settings - Fork 805
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
[WIP] Add --preferreduilang #858
Conversation
@@ -662,6 +674,13 @@ let advancedFlagsBoth tcConfigB = | |||
utf8OutputFlag tcConfigB; | |||
fullPathsFlag tcConfigB; | |||
libFlag tcConfigB; | |||
CompilerOption("preferreduilang", tagString, OptionString (fun s -> |
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.
@enricosada Is there a reason why you written this option inline? For consistency reasons I would provide it as an own function like the other flags in this list.
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.
Good idea. I'll refactor as function
@dotnet-bot test this please |
@enricosada Jenkins now working on master. |
ok, done with @mexx feedback, ready to review! |
added wip beacuse i need to rebase |
try | ||
let culture = new Globalization.CultureInfo(s) | ||
if (culture.CultureTypes.HasFlag(Globalization.CultureTypes.UserCustomCulture)) then | ||
// Do not use user custom cultures. |
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.
@enricosada can you elaborate why not to use user custom cultures?
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.
Further the error message will be misleading, as the language name will be actually valid, but will be reported as not.
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.
see dotnet/roslyn#2388 something about exception with windows 10.
i am trying to use the same implementation as roslyn
7a9b0be
to
fc3aa5d
Compare
ok, rebased, fixed merge conflicts about error numbers. |
@dotnet-bot test Jenkins Windows_NT Release please. |
nope 😢 /cc @KevinRansom @otawfik-ms |
@dotnet-bot test this please |
@enricosada I'm not sure if we can trigger specific jobs :( |
Dotnet/cli can do it. It's possible @mmitche ? |
Was worth a try 😄 |
@enricosada like this: test Jenkins Windows_NT Debug |
thx @mmitche ! i tried it but maybe i need push permission or be organization member? dunno 😄 |
@dotnet-bot test Jenkins Windows_NT Debug |
fc3aa5d
to
f11db5a
Compare
@enricosada Are you a member of the MS org? |
@mmitche i am not a member of MS org, it's ok like that. |
@enricosada Actually it shouldn't matter in this case. Btw the reason for the long wait times is that the elevated windows image was offline all night. We are clearing that queue now. We are also switching to an auto-scaling version. I'm targeting the elevated image to be one of the first (maybe tomorrow?) so wait times should drop dramatically. |
@mmitche thank you very much. |
@dotnet-bot test this please |
This pr is ok.
|
@dotnet-bot test this please |
i'll rebase to run the whole test suite, my previous local run didnt catch error with response files, so better play safe |
f11db5a
to
d16b457
Compare
set current culture used by compiler for ui like messages same as --LCID, but take a culture name ( like "it-IT" ) instead of a locale id
5f21c61
to
19fec16
Compare
@dotnet-bot test this please |
ok, I'll change this pr to:
|
@enricosada Let me know when this is ready to pull. And tell me what you want me to do with the test disabling PR. |
I need to do work on this one Test disabling pr is ok |
Hi @enricosada , where do we stand with this? Kevin |
i'll close and open a new pr when ready |
ref #815
It's the same as internal
--LCID
but take the language name (en-US
) instead of locale id ( 1033 )i cannot add a real test because resources files are not inside this repository ( why not @KevinRansom ?), so the build is only in english
it's possible to test it with
with another language