Does anyone know if it's possible for intellij to recognise Kotlin scripts outside of sources for usage checks/refactoring etc... and if so, how could this be achieved roughly?
I am using the KTS for writing content for a game, but it's a bit annoying that any time we refactor something in a core module, this change has to be manually applied to scripts.
10/09/2023, 7:28 AM
At the top of the file, you should have a drop-down called "use classpath of module" or something similar. If you set it to the correct module, it should understand that refactorings to the module apply to the script? But that's the theory, I haven't needed to do it myself
Stan van der Bend
10/18/2023, 9:20 AM
I did not see such a dropdown, I managed to work around this by putting the scripts in a custom sourceset but exclude it from compilation.