https://kotlinlang.org logo
#scripting
Title
# scripting
p

Piotr Krzemiński

01/25/2023, 8:45 AM
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

Ivan Kubyshkin [JetBrains]

01/25/2023, 9:05 AM
cc @ilya.chernikov
p

Piotr Krzemiński

02/06/2023, 8:04 AM
@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

ilya.chernikov

02/06/2023, 12:14 PM
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

Piotr Krzemiński

02/06/2023, 12:25 PM
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

Andrei Klunnyi

02/06/2023, 2:21 PM
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

Andrei Klunnyi

06/12/2023, 9:20 AM
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

Vampire

06/12/2023, 9:24 AM
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

Andrei Klunnyi

06/12/2023, 9:32 AM
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

Piotr Krzemiński

06/12/2023, 12:32 PM
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

Anton Yalyshev [JB]

10/17/2023, 1:53 PM
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

Piotr Krzemiński

10/17/2023, 2:26 PM
@Anton Yalyshev [JB] could you share what other scripting-related bugs/feature requests are in the scope?
15 Views