mbonnin
11/20/2024, 3:30 PMPiotr KrzemiĆski
11/20/2024, 3:41 PMmbonnin
11/20/2024, 3:44 PMmbonnin
11/20/2024, 3:45 PMmain.kts
can advantageously replace bash for like 90% of use casesPiotr KrzemiĆski
11/20/2024, 3:45 PMmbonnin
11/20/2024, 3:46 PMPiotr KrzemiĆski
11/20/2024, 3:47 PMmbonnin
11/20/2024, 3:48 PMPiotr KrzemiĆski
11/20/2024, 3:48 PMPiotr KrzemiĆski
11/20/2024, 3:51 PM@file:DependsOn("SomeFile.kt")
) is the best one, considering how e.g. Python does it. But with Python, there's a difference that each file is a separate module and effectively a namespace, where in Kotlin one can have .kt files on the same level, and upon importing we don't specify the file, just an arbitrary package. That's true both in the "standard" Kotlin, and scripting inherits this behavior which seems logicalPiotr KrzemiĆski
11/20/2024, 3:51 PMmbonnin
11/20/2024, 3:57 PMPiotr KrzemiĆski
11/20/2024, 4:00 PMPiotr KrzemiĆski
11/20/2024, 4:00 PMEugen Martynov
11/20/2024, 5:13 PMEugen Martynov
11/20/2024, 5:13 PMmbonnin
11/20/2024, 5:19 PMparseToJsonElement()
and force casting everything. This for quick scripting. If I need a more robust solution, I can create an amper or gradle project. I'd say the tradeoff is acceptablePiotr KrzemiĆski
11/21/2024, 6:40 AMmbonnin
11/21/2024, 10:09 AMmbonnin
11/21/2024, 2:17 PMJason
11/23/2024, 2:03 PMMarc Downie
11/27/2024, 6:24 PMscripting-ide-services
the deprecation of which is the clearest bit of that document. So ... will we be able to make non-Jetbrains hosts with auto-completion support for Kotlin or not going forward?ilya.chernikov
11/28/2024, 8:59 AMscripting-ide-services
library is based on the APIs that are not present in the K2 compiler. The K2 infrastructure has a new set of APIs serving the same purpose, named Analysis API. And it differs substantially enough from the old infra, so we cannot simply port the scripting-ide-services
to it.
For a moment it looks like we at JB have no resources to implement new REPL code completion services on top of the new API. But all this stuff is open, so theoretically one can take Analysis API and implement autocompletion and other stuff on top of it in a non-Jetbrains host.Ilya Muradyan
11/28/2024, 9:25 AMscripting-ide-services
so if it's not migrated to K2 infrastructure, kernel will lack this functionalityMarc Downie
11/28/2024, 5:02 PMpip install
it. Clearly JB will have to find the resources to implement completion services for Kotlin Notebook though? But perhaps that comes for free from closed source parts of the hosts you are still targeting.