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
[extension_discovery] reliablyRename always throws after a successful rename on Windows #2681
On Windows there's no return/break after a successful fn(), so the loop runs fn() again. For rename the second call fails because the source no longer exists (errno 2, not 5 or 32) and is rethrown. I ran the same loop with a plain file rename on macOS to check the logic: the rename succeeds, then the call throws PathNotFoundException.
In registry.dart this exception is swallowed (on IOException), so the cache file does get written, but _ensureReadme right after reliablyRename is skipped, so the README is never written to the cache dir on Windows. The non-Windows branch correctly returns the result.
Activity
[extension_discovery] Fix reliablyRename always throwing after rename…