I’d like to bring up <https://youtrack.jetbrains.c...
# scripting
p
I’d like to bring up [KTIJ-14580] Imported script are not supported for scripts outside of a source root as it effectively makes
@file:Import
unusable and leads to very large single-file scripts. I’m willing to show Kotlin Script as an alternative to my Python folks (for certain tasks), but this issue is one of the things that keeps me blocked. I’m wondering if we could get some traction here, possibly get some metrics from IntelliJ to check how many people are affected by this issue?
👍 3
❤️ 3
💯 3
👍🏾 1
i
cc @ilya.chernikov
p
@ilya.chernikov friendly ping 🙏 ☝️ I’m willing to help with this, I’d just like to get on the same page with you guys
i
I do agree that it is a major problem, but unfortunately we do not have any resources right now to fix it. Thank for for offering the help, but (sorry, again) this part is related to the Kotlin IntelliJ plugin code, I'm not very well aware how the processes of external contributions are organized there (if at all). Maybe @Andrei Klunnyi can help.
👍 1
p
Sure, got it. Whoever has some insight into the root cause of this issue, I’d be grateful for a summary in the ticket’s comments what should be fixed
a
Hi Piotr, Can I ask you to leave your question as the issue comment, please? It would allow proper colleagues on our side to keep track of it.
👍 1
friendly ping ☝️ 🙏
@Andrei Klunnyi friendly ping
a
Hi Piotr, Sorry not for answering you promptly. As @Anton Yalyshev [JB] mentioned in the comment we'll get back to the issue in the nearest future.
👍 1
thank you color 1
v
That's great to hear. 🙂 Any chance https://youtrack.jetbrains.com/issue/KTIJ-16532 and https://youtrack.jetbrains.com/issue/KT-42101 will also be part of this nearest future work? 🙂
👍 1
a
We're going to have internal planning session dedicated to scripting soon. All issues in one way or another related to the subsystem will be revisited. I can't promise you anything now but
.main.kts
is an area that deserves our attention.
❤️ 3
p
thanks! I’m staying tuned especially because I’m planning releasing typesafegithub/github-workflows-kt (which is now based 100% on Kotlin Script) stable v1.0 in about 3 months and having the issues fixed would make the user experience much better (I don’t intend to push towards having them fixed within 3 months, it’s just good to see the path forward and general plans to tackle them)
👍 1
@Andrei Klunnyi also bringing Add ability to use compiler plugins in .main.kts (Kotlin Script) files to your attention, I’d love to be able to use a custom compiler plugin within a Kotlin script, but now even the first-party plugins are not supported
thank you color 1
hi @Andrei Klunnyi , just a quick status check if you had a chance to do the internal planning session?
a
Hi! Yes, we made the planning, and this problem is in the scope. It can’t be fixed well quickly, it requires some refactoring, that Andrei is currently doing
🙌 1
p
@Anton Yalyshev [JB] could you share what other scripting-related bugs/feature requests are in the scope?