Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

Link OnAfterFix generates a Warning writing to a network drive, but the write has succeeded #649

Open dyavc opened 1 month ago

dyavc commented 1 month ago

Describe the bug Link OnAfterFix generates a Warning writing to a network drive, but the write has succeeded

To Reproduce No repro, customer reports it happens about 5% of the time.

Desktop (please complete the following information):

Additional context Morten has said: I suspect that the problem is that the editor itself has just written the file, and then Link “OnAfterFix” tries to determine whether it needs to update the file (does the file exist / does it have the same contents), but for some reason the file is briefly in a state where the checks that it is performing produce confusing / conflicting results.

I suppose we could put in some kind of retry / delay.