java.lang.Throwable: Runner Run is not registered

已回答

java.lang.Throwable: Runner Run is not registered
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:134)
    at com.intellij.execution.ui.RunContentManagerImpl.getContentManagerForRunner(RunContentManagerImpl.java:481)
    at com.intellij.execution.ui.RunContentManagerImpl.getReuseContent(RunContentManagerImpl.java:372)
    at com.intellij.execution.impl.ExecutionManagerKtImpl.startRunProfile(ExecutionManagerKtImpl.kt:37)
    at com.intellij.execution.runners.GenericProgramRunnerKt.startRunProfile(GenericProgramRunner.kt:50)
    at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.kt:17)
    at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:61)
    at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50)

0

Hi,

It is totally unclear what this post is about. Please provide full information about the issue context (IDE, plugin source code if possible, or implementation part that throws this error, etc).

0
Executor executor = DefaultRunExecutor.getRunExecutorInstance(); //跑run的executor
ProgramRunner runner = ProgramRunner.getRunner(executor.getId(), conf);
ExecutionEnvironment environment = new ExecutionEnvironment(executor, runner, junitRACs, project);
environment.getRunnerAndConfigurationSettings().setActivateToolWindowBeforeRun(false);

try {
runner.execute(environment);
} catch (ExecutionException e1) {
e1.printStackTrace();
JavaExecutionUtil.showExecutionErrorMessage(e1, "Error", project);
}

@Karol Lewandowski Above is my code, which will be triggered at intervals during Project Open. The error described above will be reported when it is triggered for the first time, and no error will be reported after the second time
0

Hi,

What version do you use? There was an issue in older platform versions. Take a look at:
https://youtrack.jetbrains.com/issue/IDEA-230493

0

请先登录再写评论。