Found it! Just write the exact same file twice in ...
# ksp
p
Found it! Just write the exact same file twice in ksp and it breaks :kspKotlinMetadata
It's very strange, an integration test I created fails with this
Copy code
Caused by: kotlin.io.FileAlreadyExistsException: /tmp/junit17700583748346553475/workload/build/generated/ksp/main/kotlin/meop/Goo.kt
	at com.google.devtools.ksp.processing.impl.CodeGeneratorImpl.createNewFile(CodeGeneratorImpl.kt:74)
But in my own project that works just fine
(and fails with the obscure error
e
write the exact same file twice in ksp
this is expected behavior - it isn’t supported to write to the same file twice. The error message could be improved though
p
No the issue is that the wrong error message gets created
279 Views