compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Fix changelog path not found error

Open mazunin-v-jb opened this issue 1 year ago • 0 comments

Fixed the error with

java.io.FileNotFoundException: changelog.main.kts/../../CHANGELOG.md (Not a directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125)
        at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125)
        at Changelog_main.<init>(changelog.main.kts:85)

it happens because without .canonicalFile there is no path resolving and this leads to the mentioned error.

mazunin-v-jb avatar Oct 15 '24 13:10 mazunin-v-jb