GithubHelp home page GithubHelp logo

Comments (12)

aartiPl avatar aartiPl commented on September 22, 2024 2

The final resolution is even simpler, without changing much in the kscript core.
I have just released kscript 4.2.3 with Kotlin 1.9.0 compatibility.

from kscript.

aartiPl avatar aartiPl commented on September 22, 2024 1

I am working on this. The root cause seems to be that Kotlin 1.9 disallows .kts files in the source roots.
Anyway, I recommend pinning the Kotlin version on CI/CD - fixing bugs quickly won't always be possible.

from kscript.

aartiPl avatar aartiPl commented on September 22, 2024 1

@cgruber , @dalewking , @iamironz - can you confirm that the issue is fixed?

from kscript.

iamironz avatar iamironz commented on September 22, 2024 1

Works fine for me, thank you so much!

from kscript.

dalewking avatar dalewking commented on September 22, 2024

I tried to re-invoke with -d argument to get more info and now it works

from kscript.

dalewking avatar dalewking commented on September 22, 2024

Actually it may have been that I also tried a kscript -c to get it working

from kscript.

dalewking avatar dalewking commented on September 22, 2024

OK the issue is that it isn't working with Kotlin 1.9. Switching to Kotlin 1.8.20 allows it to work, but it is necessary to clear the cache after switching versions.

from kscript.

cgruber avatar cgruber commented on September 22, 2024

Same thing here. We just upgraded our cli tools to 1.9 and kscript dies on the same error.

from kscript.

aartiPl avatar aartiPl commented on September 22, 2024

I will have a look at it.

from kscript.

iamironz avatar iamironz commented on September 22, 2024

Same here.

Exception in thread "main" java.lang.ClassNotFoundException: kscript.scriplet.Android_lint
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	at Main_Android_lint$Companion.main(Main_Android_lint.kt:5)
	at Main_Android_lint.main(Main_Android_lint.kt)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.jetbrains.kotlin.runner.AbstractRunner.run(runners.kt:70)
	at org.jetbrains.kotlin.runner.Main.run(Main.kt:188)
	at org.jetbrains.kotlin.runner.Main.main(Main.kt:198)

We've updated Kotlin version up to 1.9.0 on developer machines and all the scripts got broken, as a result, all local script calls crashed.
Fortunately, on CI it still works as the Docker container has pinned runtime versions.
If you need any help - don't hesitate to ask, as we are heavily relying on kscript in our project to reproduce CI steps locally we consider this issue critical.

from kscript.

iamironz avatar iamironz commented on September 22, 2024

Thank you.
Very much appreciated your effort there.

from kscript.

aartiPl avatar aartiPl commented on September 22, 2024

I have just released kscript 4.2.3-RC.1
Please check if everything works as expected in your code - there are changes in the core engine of kscript, so I would like to ensure that nothing is broken after fixing the problem.

sdk install kscript 4.2.3-RC.1

from kscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.