There is an issue where Intelij sometimes doesn't ...
# scripting
b
There is an issue where Intelij sometimes doesn't recognise the script definition. It seems to find the discovery file but not the definition class file. Is there a solution for this? Most of the times it seems to solve itself randomly by restarting Intelij or rebuilding the project using Gradle, it doesn't always work though.
g
File > Invalidate Caches and Restart
(or manually deleting build folders) and Gradle refresh fixes it for me consistently.
👍 1
i
If your definition is in the same project, then it may depend on timing. See e.g. https://youtrack.jetbrains.com/issue/KT-31176