in src/main/kotlin/org/jetbrains/tinygoplugin/runconfig/TinyGoRunConfiguration.kt [86:99]
override fun checkConfiguration() {
if (executable == null) {
throw RuntimeConfigurationException(TinyGoBundle.message(ERROR_SDK_NOT_SET))
}
val main = mainFile()
?: throw RuntimeConfigurationException(TinyGoBundle.message(ERROR_MAIN_FILE_NOT_FOUND))
if (!main.isValid) {
throw RuntimeConfigurationException(TinyGoBundle.message(ERROR_MAIN_FILE_NOT_FOUND))
}
val mainFiletype = main.fileType
if (mainFiletype !is GoFileType && !main.isDirectory) {
throw RuntimeConfigurationException(TinyGoBundle.message(ERROR_NOT_GO_FILE))
}
}