Open JensWalther opened 6 months ago
The rename must happen behind the 'with' block as the explicit close inside the with block is incorrect and can cause undefined behavior such as the file not being closed. This causes the rename to fail
I observe the same (v.30) and had to go back to v.26 as JensWalther mentionned (running on Windows)
https://github.com/sphinx-contrib/plantuml/blame/09f9d13c44bdbfb73974159cedd29bb1d2e08f69/sphinxcontrib/plantuml.py#L411
This close statement is "double" closing the temporary file causing the rename to fail occasionally. Observed with v.29 wheel file.
v.26 does not show this error.