Vladislav Ermolin
02/09/2024, 5:42 PMmain.kts
host.
I’m Android developer, so my main IDE is Android Studio. I want my scripts appear as another entry in the project tree, when “android” view is enabled.
I started with creating a new gradle module and including it into project, through the settings.gradle.kts
. I converted a couple of scripts to the .main.kts
ones, fixed imports and annotations. I put them in the root folder of the newly created module. Worth mentioning, that I converted 4 script files, 3 of which are just utilities, while the 4th one imports and uses them.
I’m able to execute the 4th script file from the IDE and it works fine. However, the code navigation and highlightins are completely broken.
In particular I see the following problems:
• On top of each file there’s a warning saying Multiple script definitions are applicable to this script. MainKtsScript is used.
• In the “Problems” section of every file, which imports another file, there’s a problem saying Imported script file {path_to_another_file} is not loaded. Check your script imports
I’m particularly interested in the latter. Is there any way to “re-load” scripts?
Any other suggestions on what I’m doing wrong are welcomed 🙂Vladislav Ermolin
02/09/2024, 5:56 PMinclude
it or includeBuild
it?Vladislav Ermolin
02/09/2024, 6:07 PMMainKtsScript
definitions and can’t disable any of them.Vladislav Ermolin
02/09/2024, 6:34 PMilya.chernikov
03/05/2024, 9:36 AM