override fun createRunExecutor()

in src/main/kotlin/org/jetbrains/tinygoplugin/runconfig/TinyGoRunStateConfig.kt [43:60]


    override fun createRunExecutor(): GoExecutor {
        val arguments = listOf(configuration.command) +
            hardwareArguments +
            additionalParameters +
            listOf(configuration.runConfig.mainFile)
        val tinyGoExecutablePath = configuration.executable
        if (tinyGoExecutablePath == null) {
            notifyTinyGoNotConfigured(configuration.project, "TinyGo SDK is not set. Please configure TinyGo SDK")
            throw ExecutionException("TinyGo SDK is not set. Please configure TinyGo SDK")
        }

        return GoExecutor.`in`(configuration.project, null)
            .withExePath(tinyGoExecutablePath.path)
            .withParameters(arguments)
            .withWorkDirectory(configuration.workingDirectory)
            .withPassParentEnvironment(configuration.isPassParentEnvironment)
            .withExtraEnvironment(configuration.customEnvironment)
    }