Dear Stata Developers,
I came across the following behavior, which I believe is a bug.
When opening a data file (double-click in Windows) if the Stata window is closed (X-clicked) while the file is still being loaded, Stata indicates that the file has been changed and asks for a confirmation to re-save the file.

I am rather confident that no modification of the file has occurred yet, as the file is still being opened and I haven't started interacting with Stata yet.
The issue became apparent while working with a network mapped drive (and over a slow network), which turned the normally immediate opening into a somewhat lengthy process. I can't be sure whether this may happen with a local drive.
The issue does not occur if I wait for the load dataset operation to succeed. Then upon closing the Stata window no such warning is issued.
This is Stata 17.0 on Windows 10. If that matters, the file format is marked as:
PS: I am also not sure what will be saved, if the user clicks the "SAVE" button in the above when the file is not fully loaded yet. I hope that Stata will finish the loading operation first, then starts saving. But if (and this has not been confirmed) the user clicks the "SAVE" button and Stata saves partially loaded file over the original file, that could result in a loss of data.
Thank you, Sergiy
I came across the following behavior, which I believe is a bug.
When opening a data file (double-click in Windows) if the Stata window is closed (X-clicked) while the file is still being loaded, Stata indicates that the file has been changed and asks for a confirmation to re-save the file.
I am rather confident that no modification of the file has occurred yet, as the file is still being opened and I haven't started interacting with Stata yet.
The issue became apparent while working with a network mapped drive (and over a slow network), which turned the normally immediate opening into a somewhat lengthy process. I can't be sure whether this may happen with a local drive.
The issue does not occur if I wait for the load dataset operation to succeed. Then upon closing the Stata window no such warning is issued.
This is Stata 17.0 on Windows 10. If that matters, the file format is marked as:
Code:
<stata_dta><header><release>117</release><byteorder>LSF</byteorder>
Thank you, Sergiy