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

Kotlin 2.1.0 with jte-kotlin 3.1.16 #424

Open
yamin8000 opened this issue Jan 26, 2025 · 2 comments
Open

Kotlin 2.1.0 with jte-kotlin 3.1.16 #424

yamin8000 opened this issue Jan 26, 2025 · 2 comments

Comments

@yamin8000
Copy link

500: gg.jte.TemplateException: Failed to compile template, error at index.kte:1
Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
@file:Suppress("ktlint")
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:1:7
Reason: Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/Suppress.class
@Suppress("UNCHECKED_CAST", "UNUSED_PARAMETER")
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:3:2
Reason: Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/Suppress.class
	@JvmField val JTE_NAME = "index.kte"
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:6:3
Reason: Class 'kotlin.jvm.JvmField' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/jvm/JvmField.class
	@JvmField val JTE_LINE_INFO = intArrayOf(0,0,0,0,0,0,0,4,4,4,4,6,6,6,0,1,1,1,1,1)
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:7:3
Reason: Class 'kotlin.jvm.JvmField' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/jvm/JvmField.class
	@JvmStatic fun render(jteOutput:gg.jte.html.HtmlTemplateOutput, jteHtmlInterceptor:gg.jte.html.HtmlInterceptor?, id:Int, name:String) {
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:8:3
Reason: Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/jvm/JvmStatic.class
		jteOutput.writeContent("<html lang=\"en\">\r\n<body>\r\n<h1>Hello, ")
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:9:13
Reason: Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/Unit.class
		jteOutput.setContext("h1", null)
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:10:13
Reason: Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/Unit.class
		jteOutput.writeUserContent(name)
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:11:13
Reason: Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/Unit.class
		jteOutput.writeContent("!</h1>\r\n</body>\r\n</html>")
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:12:13
Reason: Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/Unit.class
	@JvmStatic fun renderMap(jteOutput:gg.jte.html.HtmlTemplateOutput, jteHtmlInterceptor:gg.jte.html.HtmlInterceptor?, params:Map<String, Any?>) {
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:14:3
Reason: Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/jvm/JvmStatic.class
		render(jteOutput, jteHtmlInterceptor, id, name);
C:\Users\ys\IdeaProjects\BabyWeb\jte-classes\gg\jte\generated\ondemand\JteindexGenerated.kt:17:3
Reason: Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from C:/Users/ys/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0/85f8b81009cda5890e54ba67d64b5e599c645020/kotlin-stdlib-2.1.0.jar!/kotlin/Unit.class
@yamin8000
Copy link
Author

#412

@casid
Copy link
Owner

casid commented Jan 31, 2025

Thanks for reporting, we're currently trying to create a fix for Kotlin 2.1 here #411. Any help is welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants