Skip to content

Temporary SVG file cannot be rewritten on Windows #183

@AndrewWPhillips

Description

@AndrewWPhillips

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions