Hi all, I'd like to compile the ktor project itse...
# ktor
p
Hi all, I'd like to compile the ktor project itself but I'm getting compilation errors when running
./gradlew assemble
as if the stdlib itself was missing:
Copy code
e: file:///home/user/Projects/kotlin/ktor/ktor-io/common/src/io/ktor/utils/io/ByteChannelSequential.kt:10:15 Unresolved reference: math
e: file:///home/user/Projects/kotlin/ktor/ktor-io/common/src/io/ktor/utils/io/ByteChannelSequential.kt:36:13 Unresolved reference: error
e: file:///home/user/Projects/kotlin/ktor/ktor-io/common/src/io/ktor/utils/io/ByteChannelSequential.kt:50:17 Unresolved reference: maxOf
e: file:///home/user/Projects/kotlin/ktor/ktor-io/common/src/io/ktor/utils/io/ByteChannelSequential.kt:66:13 Unresolved reference: error
e: file:///home/user/Projects/kotlin/ktor/ktor-io/common/src/io/ktor/utils/io/ByteChannelSequential.kt:137:19 Type mismatch: inferred type is ClosedWriteChannelException but Throwable was expected
e: file:///home/user/Projects/kotlin/ktor/ktor-io/common/src/io/ktor/utils/io/ByteChannelSequential.kt:142:22 Unresolved reference: let
...
I've pasted the whole output here: https://pastebin.com/ftRFafbm This is on newest main branch, but I've checked some random older commits and had the same issue. I've compiled other kotlin projects on this machine successfully before. Any help would be appreciated, thanks!
And here's the output of `./gradlew dependencies`: https://pastebin.com/RZ3mCn8h, seems like stdlib is there.
a
Are you getting those errors while building Ktor from the latest main branch?
p
Yes, exactly. As mentioned, I also picked some random older commits to see if the issue is not just with the latest main, but the issue persisted.
a
On my Linux machine, the project compiles without errors. There may be a problem with the Gradle cache, which can be invalidated by deleting the
~/.gradle
directory.