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

Try a project with a space in Name #8468

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Oct 27, 2023

We have on occasion had reports of users using a space in their "Project Name". We already have a test which checks for spaces in the path, but not in the project name. This commit adds this test and fixes up a few area's where this caused a problem.

It should be noted that certain unicode based characters still cause issues with the .net Aot compiler. These unit test cases have been commented out for now.

@dellis1972 dellis1972 marked this pull request as draft October 27, 2023 14:10
@dellis1972 dellis1972 removed the request for review from jonathanpeppers October 27, 2023 14:10
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

Are there already some AOT special characters tests that do this? Otherwise, seems like a good test case to add if it passes.

@dellis1972
Copy link
Contributor Author

Are there already some AOT special characters tests that do this? Otherwise, seems like a good test case to add if it passes.

It doesn't test that the "ProjectName" has spaces in it. Just the path to the project has special chars I think

@dellis1972 dellis1972 marked this pull request as ready for review November 29, 2023 13:53
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

Otherwise, LGTM.

src/Xamarin.Android.Build.Tasks/Tasks/Generator.cs Outdated Show resolved Hide resolved
[TestCase ("Test Me")]
// testing characters as per https://www.compart.com/en/unicode/category/Zs
[TestCase ("TestUnicodeSpace0020\u0020Me")]
// TODO these break with AOT error on windows
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to make the tests run only on macOS and Linux?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can.

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

Successfully merging this pull request may close these issues.

None yet

3 participants