You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[tool] ErrorHandlingFileSystem::systemTempDirectory does not return an ErrorHandlingDirectory #150730
See title. ErrorHandlingFileSystem doesn't override FileSystem::systemTempDirectory. This means that any tool code utilizing FileSystem::systemTempDirectory doesn't benefit from the error-handling provided by ErrorHandlingDirectory. It is possible that this is resulting in noisy, inactionable tool crashes from file system exceptions caused by things such as permissions issues.
I don't know if this is something that users encounter (and I'm not going to spend time figuring out how to query this, but I really hope that most users have read/write permissions to their system's temp directory).
At the very least, however, this has bit me when writing tests that 1) use systemTempDirectory and 2) use a fake/memory file system with a custom opHandle that throws an exception.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
andrewkolos commentedon Jun 26, 2024
I don't know if this is something that users encounter (and I'm not going to spend time figuring out how to query this, but I really hope that most users have read/write permissions to their system's temp directory).
At the very least, however, this has bit me when writing tests that 1) use
systemTempDirectoryand 2) use a fake/memory file system with a customopHandlethat throws an exception.[tool] make the `systemTempDirectory` getter on `ErrorHandlingFileSys…
[tool] make the `systemTempDirectory` getter on `ErrorHandlingFileSys…
[tool] make the `systemTempDirectory` getter on `ErrorHandlingFileSys…
github-actions commentedon Jul 11, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.