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

Warn on filesystem case mismatch #98927

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

fire
Copy link
Member

@fire fire commented Nov 7, 2024

Salvages #24860.

Fixes: #23441

@fire fire requested review from a team as code owners November 7, 2024 17:51
@fire fire changed the title Warn on case mismatch Warn on filesystem case mismatch Nov 7, 2024
@fire fire force-pushed the warn-file-case-mismatch branch from 3d9412f to 5920373 Compare November 7, 2024 17:53
When a file is opened with a wrong case, it can work on the developer system but break on a user system with a case-sensitive filesystem.

This will display a warning when it happens.

CAVEATS: It will also display the warning if a symlink is in the path.

Adapt warning if the file is a symlink. Avoid warning on symlinks.

Fix memory leak and avoid `lstat` usage.

Avoid exposing real_path when not in TOOLS_ENABLED mode.
@fire fire force-pushed the warn-file-case-mismatch branch from 5920373 to c09731c Compare November 8, 2024 22:23
@Repiteo Repiteo merged commit b80aa65 into godotengine:master Nov 10, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 10, 2024

Thanks!

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.

macOS filesystems can be case insensitive, editor should also warn like Windows on case mismatch
5 participants