JetBrains / lets-plot-kotlin

Grammar of Graphics for Kotlin
https://lets-plot.org/kotlin/
MIT License
419 stars 36 forks source link

ggsave: an error if file is already exists. #187

Closed alshan closed 1 year ago

alshan commented 1 year ago
java.nio.file.FileAlreadyExistsException: /Users/Igor/Work_misc/jupyter/lets-plot-kotlin/examples/jupyter-notebooks/f-4.2.0/lets-plot-images/image_101.svg
    at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
    at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218)
    at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
    at java.base/java.nio.file.Files.createFile(Files.java:652)
    at org.jetbrains.letsPlot.export.GgsaveKt.ggsave(ggsave.kt:73)