I'm trying to compile ktor from github source code...
# ktor
g
I'm trying to compile ktor from github source code but facing below error. anyone else tried this out?
Copy code
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (8, 17): Unresolved reference: file
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (15, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (21, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (21, 43): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (34, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (34, 43): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (37, 13): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (37, 40): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (47, 43): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/NioPath.kt: (50, 15): Unresolved reference: InvalidPathException
e: ktor/ktor-utils/jvm/src/io/ktor/util/Path.kt: (21, 35): Overload resolution ambiguity:
public fun [ERROR : Path].normalizeAndRelativize(): [ERROR : Path] defined in io.ktor.util in file NioPath.kt
public fun File.normalizeAndRelativize(): File defined in io.ktor.util in file Path.kt
e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (10, 17): Unresolved reference: file
e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (17, 12): Unresolved reference: Path
e: ktor/ktor-utils/jvm/src/io/ktor/util/cio/FileChannelsAtNioPath.kt: (25, 12): Unresolved reference: Path
r
I haven't done it myself, but are you using JDK < 7? That's the only thing I can think of that would cause nio to be missing.
🙏 1