Skip to content
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

C#: Compare symbol names without null flow state #79094

Merged

Conversation

raulsntos
Copy link
Member

@raulsntos raulsntos added bug topic:editor topic:dotnet cherrypick:4.0 cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Jul 6, 2023
@raulsntos raulsntos added this to the 4.2 milestone Jul 6, 2023
@raulsntos raulsntos requested a review from a team as a code owner July 6, 2023 10:59
Copy link
Member

@RedworkDE RedworkDE left a comment

Choose a reason for hiding this comment

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

I don't think attributes can be nullable like that, but if we do those changes as well there is one left here: https://github.com/godotengine/godot/blob/f4d40c665df1b306b9168f97f19464ca2435f157/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs#L365

Semi-related: Is there something that guarantees that the source generator run using an invariant culture? If no there are (at least) two int.ToString() that can possibly break when running on some cultures.

@raulsntos
Copy link
Member Author

I don't think attributes can be nullable like that

I don't think so either, but I thought we might as well.

Is there something that guarantees that the source generator run using an invariant culture?

I don't think so, it probably runs using the current culture. We probably have other cases of this in StringExtensions, so I'd prefer to do this as a separate PR that focuses on fixing all the culture warnings at once.

@raulsntos raulsntos force-pushed the dotnet/fix-symbol-comparison branch from f4d40c6 to 671a5b4 Compare July 6, 2023 14:10
@akien-mga akien-mga merged commit 26a5897 into godotengine:master Jul 7, 2023
@akien-mga
Copy link
Member

Thanks!

@raulsntos raulsntos deleted the dotnet/fix-symbol-comparison branch July 7, 2023 08:41
@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 10, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exporting nullable Node in C# does not show the node selector inspector
4 participants