Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental logging does not create a file first #210

Closed
ZacSweers opened this issue Dec 26, 2020 · 1 comment
Closed

Incremental logging does not create a file first #210

ZacSweers opened this issue Dec 26, 2020 · 1 comment
Assignees
Labels
bug Something isn't working P1 major features or blocking bugs
Milestone

Comments

@ZacSweers
Copy link
Contributor

If I try to enable incremental logging, it will try to append text to a non-existent file without creating it first. Here's an example enabling it via test here: tschuchortdev/kotlin-compile-testing#96

e: java.io.FileNotFoundException: /var/folders/p8/cjk91csx0hn8l88w70jgph8r0000gn/T/junit15907499600375035869/ksp/build/kspDirtySet.log (No such file or directory)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:234)
	at kotlin.io.FilesKt__FileReadWriteKt.appendBytes(FileReadWrite.kt:115)
	at kotlin.io.FilesKt__FileReadWriteKt.appendText(FileReadWrite.kt:142)
	at kotlin.io.FilesKt__FileReadWriteKt.appendText$default(FileReadWrite.kt:142)
	at com.google.devtools.ksp.IncrementalContext.logDirtyFiles(Incremental.kt:320)
	at com.google.devtools.ksp.IncrementalContext.calcDirtyFiles(Incremental.kt:348)
@ting-yuan ting-yuan self-assigned this Dec 29, 2020
@ting-yuan ting-yuan added bug Something isn't working P1 major features or blocking bugs labels Dec 29, 2020
@ting-yuan ting-yuan added this to the alpha milestone Dec 31, 2020
@ting-yuan
Copy link
Collaborator

ting-yuan commented Jan 5, 2021

Fixed in #221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 major features or blocking bugs
Projects
None yet
Development

No branches or pull requests

2 participants