- Notifications
You must be signed in to change notification settings - Fork5.1k
Use u8 string in CultureNames#71417
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ghost commentedJun 29, 2022
Tagging subscribers to this area: @dotnet/area-system-globalization Issue DetailsFirst commit updates toolset version and applies@AaronRobinsonMSFT's lifetime patch fromdotnet/installer#14029. Second commit uses u8 string for CultureNames, and updates its generator. File size of
|
@am11 Those changes are really a point in time and shouldn't be checked into main. Moving to a new compiler with |
src/libraries/System.Private.CoreLib/src/System/Globalization/IcuLocaleData.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
@AaronRobinsonMSFT, could you please rebase that branch current |
Let's please wait to do this PR until Aaron's changes that bring in a new compiler have all landed. There's no rush on this PR as it's purely maintainability. Thanks. |
I should be able to get that in a PR today or tomorrow. |
am11 commentedJul 3, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Compiler is crashing with Stack Overflow (on Windows and Applie's OSes): /Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: Stack overflow. [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: Repeat 339 times: [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: -------------------------------- [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.Binder.CheckValEscape(Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.CSharp.BoundExpression, UInt32, UInt32, Boolean, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: -------------------------------- [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.Binder.ValidateEscape(Microsoft.CodeAnalysis.CSharp.BoundExpression, UInt32, Boolean, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.Binder.<BindExpressionBodyAsBlock>g__bindExpressionBodyAsBlockInternal|960_0(Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax, Microsoft.CodeAnalysis.CSharp.Binder, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.Binder.BindExpressionBodyAsBlock(Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.Binder.BindMethodBody(Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.MethodCompiler.BindMethodBody(Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Microsoft.CodeAnalysis.CSharp.TypeCompilationState, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Boolean, Microsoft.CodeAnalysis.CSharp.BoundNode, Boolean, Microsoft.CodeAnalysis.CSharp.ImportChain ByRef, Boolean ByRef, Boolean ByRef, InitialState ByRef) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.MethodCompiler.CompileMethod(Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Int32, ProcessedFieldInitializers ByRef, Microsoft.CodeAnalysis.CSharp.SynthesizedSubmissionFields, Microsoft.CodeAnalysis.CSharp.TypeCompilationState) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at Microsoft.CodeAnalysis.CSharp.MethodCompiler.CompileNamedType(Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: atMicrosoft.CodeAnalysis.CSharp.MethodCompiler+<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: atRoslyn.Utilities.UICultureUtilities+<>c__DisplayClass5_0.<WithCurrentUICulture>b__0() [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: atSystem.Threading.ThreadPoolWorkQueue.Dispatch() [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: atSystem.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj]/Users/runner/work/1/s/.packages/microsoft.net.compilers.toolset/4.4.0-1.22328.22/tasks/net6.0/Microsoft.CSharp.Core.targets(75,5): error: atSystem.Threading.Thread.StartCallback() [/Users/runner/work/1/s/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj] @AlekseyTs, is it a known issue? |
Reporteddotnet/roslyn#62361 with additional info in case it wasn't. |
The roslyn issue was fixed. Updated roslyn packages are usually available within a day on the internal feeds ( |
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.
Thanks!
Yup.@jcouv do you know what min version has the fix? |
I think we would need to wait for the next v4.4.0-x to pick up the change. (the subsequent automation PR afterdotnet/roslyn#62492 is merged or abandoned). |
Not precisely, but the fix was merged only 2 hours ago. I'd suggest checking the internal feed in a day or two. |
Gotcha, I read your previous note too quickly and thought it was fixed before today. We'll wait :-) |
Uh oh!
There was an error while loading.Please reload this page.
Thanks! |
Uh oh!
There was an error while loading.Please reload this page.
First commit updates toolset version and applies@AaronRobinsonMSFT's lifetime patch fromdotnet/installer#14029.Second commit uses u8 string for CultureNames, and updates its generator. File size of
IcuLocaleData.cs
goes from 277740 to 227081 (bytes).