Skip to content

Conversation

@mariosasko
Copy link
Collaborator

Closes #2443

@lhoestq
Copy link
Member

lhoestq commented Jun 21, 2021

Hi ! Could you clarify what it fixes exactly and give more details please ? Especially why this is related to the windows hanging error ?

@lhoestq lhoestq merged commit cda8bb0 into huggingface:master Jun 28, 2021
@mariosasko
Copy link
Collaborator Author

This has already been merged, but I'll clarify the idea of this PR. Before this merge, FileLock was the only component affected by the max path limit on Windows (that came to my notice) because of its infinite loop that would suppress errors. So instead of suppressing the FileNotFoundError that is thrown by os.open if the file name is longer than the max allowed path length, this PR reraises it to notify the user.

@mariosasko mariosasko deleted the raise-error-in-filelock branch June 28, 2021 09:56
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.

Some tests hang on Windows

2 participants