ondrajz/go-callvis

Temporary SVG file cannot be rewritten on Windows

AndrewWPhillips opened this issue · 0 comments

The 2nd time I run go-callvis I get this error:

...
2024/05/01 13:38:54 converting dot to svg..
2024/05/01 13:38:54 Could not open "L:\TEMP\go-callvis_export.svg" for writing : Invalid argument

I have seen this before where opening a file for write fails. (I believe this is an issue with io package on Windows but have not had a chance to investigate.) The workaround is to delete the file before trying to write it.

$ go version
go version go1.21.6 windows/amd64