paramonte icon indicating copy to clipboard operation
paramonte copied to clipboard

Enhancement: improved diagnostic message about windows global file locks

Open JoshuaOsborneDATA opened this issue 1 year ago • 0 comments

The programming language (e.g., all/C/C++/Fortran/Julia/MATLAB/Python/R/...): all (python)

The operating system (e.g., all/Windows/Linux/macOS/WSL1/WSL2/...): Windows

The architecture (e.g., all/x86_x64/Intelx64/ARM/POWER9/...): all

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. It would be great to have this new algorithm [...] Yes, Windows frequently locks the output files from the Paradram sampler if a runtime error occurs. This happens commonly in interpreted languages where the runtime session keeps running, while the paramonte sampler run and the corresponding DLL fail for some reason and lock the files with the opened DLL, such that any future runs will not be able to overwrite the old existing files, because their ownership remains with the original opened DLL.

Describe the solution you'd like A clear and concise description of what you want to happen. While there is no remedy for the global windows locks, the sampler could attempt to delete the existing files and if the deletion fails, it would print a diagnostic message that better describes the nature of the error and the specific solution to it, which is a reset of the environment (application, python session, matlab, ...) to clear the ownership of the files.

Describe alternatives you've considered if any A clear and concise description of any alternative solutions or features you've considered. Currently the messages are somewhat unclear about the cause of the error.

Additional context Add any other context or screenshots about the feature request here. This happens frequently in ipython or jupyter notebook sessions.

JoshuaOsborneDATA avatar Aug 20 '22 20:08 JoshuaOsborneDATA