Comments (12)
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.
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.
@cgruber , @dalewking , @iamironz - can you confirm that the issue is fixed?
from kscript.
Works fine for me, thank you so much!
from kscript.
I tried to re-invoke with -d argument to get more info and now it works
from kscript.
Actually it may have been that I also tried a kscript -c
to get it working
from kscript.
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.
Same thing here. We just upgraded our cli tools to 1.9 and kscript dies on the same error.
from kscript.
I will have a look at it.
from kscript.
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.
Thank you.
Very much appreciated your effort there.
from kscript.
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)
- KScript release process HOT 4
- With 4.1.1 version of Kscript, need import root function or will broken HOT 1
- Kotlin Scripting support HOT 3
- Unable to resolve dependency from google maven/jitpack HOT 4
- Suppressing deprecation warnings HOT 4
- IDEA bootstrap requires gradle or KSCRIPT_COMMAND_GRADLE set but documentation does not reflect this HOT 2
- [4.1.1] Increase logging detail for dependency resolution errors HOT 2
- Unresolved reference: encodeToByteArray HOT 4
- Match annotations behavior of kotlinc HOT 1
- [kscript] [ERROR] Error executing command HOT 1
- Create kscript package for scoop HOT 7
- Don't work @file:Import("absolute/path/to/myutils.kt") HOT 2
- Basic hello world example does not work with interpreter HOT 1
- Allow setting an alternate kotlinc binary (or use kotlinc-jvm)
- Add an option to suppress final error output HOT 10
- [Windows] path to kotlinc not quoted HOT 4
- How to load text file via relative path? HOT 2
- kscript --interactive does not resolve the variables defined inside .kts file HOT 1
- kscript environment variable substitution for repositories no longer works HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kscript.