Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
stephentoub merged 3 commits intodotnet:mainfromam11:feature/u8-strings
Jul 9, 2022
Merged

Conversation

am11
Copy link
Member

@am11am11 commentedJun 29, 2022
edited
Loading

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 ofIcuLocaleData.cs goes from 277740 to 227081 (bytes).

@ghostghost added community-contributionIndicates that the PR has been added by a community member area-System.Globalization labelsJun 29, 2022
@ghost
Copy link

Tagging subscribers to this area: @dotnet/area-system-globalization
See info inarea-owners.md if you want to be subscribed.

Issue Details

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 ofIcuLocaleData.cs goes from 277740 to 247866 (bytes).

Author:am11
Assignees:-
Labels:

area-System.Globalization,community-contribution

Milestone:-

@am11am11 requested a review fromstephentoubJune 29, 2022 04:07
@am11am11 changed the titleUse u8 in CultureNamesUse u8 string in CultureNamesJun 29, 2022
@AaronRobinsonMSFT
Copy link
Member

@am11 Those changes are really a point in time and shouldn't be checked into main. Moving to a new compiler withref field support should be paired with the merging in ofhttps://github.com/dotnet/runtime/tree/feature/csharp_ref_fields.

am11 and TheFanatr reacted with thumbs up emoji

@am11
Copy link
MemberAuthor

@AaronRobinsonMSFT, could you please rebase that branch currentmain? I can then merge it here.

@stephentoub
Copy link
Member

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.

am11 and AaronRobinsonMSFT reacted with thumbs up emoji

@stephentoubstephentoub marked this pull request as draftJune 29, 2022 10:58
@AaronRobinsonMSFT
Copy link
Member

@AaronRobinsonMSFT, could you please rebase that branch currentmain? I can then merge it here.

I should be able to get that in a PR today or tomorrow.

am11 reacted with rocket emoji

@tarekghtarekgh added this to the7.0.0 milestoneJun 29, 2022
@am11am11force-pushed thefeature/u8-strings branch from42170fe to74f14c7CompareJuly 3, 2022 12:53
@am11
Copy link
MemberAuthor

am11 commentedJul 3, 2022
edited
Loading

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?

@am11
Copy link
MemberAuthor

am11 commentedJul 3, 2022

@AlekseyTs, is it a known issue?

Reporteddotnet/roslyn#62361 with additional info in case it wasn't.

@jcouv
Copy link
Member

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 (dotnet-tools) and on the public feeds once per preview.

am11 reacted with heart emoji

@stephentoubstephentoub marked this pull request as ready for reviewJuly 8, 2022 16:27
Copy link
Member

@stephentoubstephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks!

@tarekgh
Copy link
Member

@stephentoub
Copy link
Member

Looks there still a problem?

Yup.@jcouv do you know what min version has the fix?

@am11
Copy link
MemberAuthor

am11 commentedJul 8, 2022

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).

@jcouv
Copy link
Member

@jcouv do you know what min version has the fix?

Not precisely, but the fix was merged only 2 hours ago. I'd suggest checking the internal feed in a day or two.

stephentoub reacted with thumbs up emoji

@stephentoub
Copy link
Member

Gotcha, I read your previous note too quickly and thought it was fixed before today. We'll wait :-)

@stephentoub
Copy link
Member

Thanks!

@stephentoubstephentoub merged commitd344e72 intodotnet:mainJul 9, 2022
@ghostghost locked asresolvedand limited conversation to collaboratorsAug 8, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@danmoseleydanmoseleydanmoseley left review comments

@stephentoubstephentoubstephentoub approved these changes

Assignees
No one assigned
Labels
area-System.Globalizationcommunity-contributionIndicates that the PR has been added by a community member
Projects
None yet
Milestone
7.0.0
Development

Successfully merging this pull request may close these issues.

6 participants
@am11@AaronRobinsonMSFT@stephentoub@jcouv@tarekgh@danmoseley

[8]ページ先頭

©2009-2025 Movatter.jp