Search in sources :

Example 1 with PythonTracebackFilter

use of com.jetbrains.python.run.PythonTracebackFilter in project intellij-community by JetBrains.

the class PyDebugConsoleBuilder method createConsole.

protected ConsoleView createConsole() {
    PythonDebugLanguageConsoleView consoleView = new PythonDebugLanguageConsoleView(myProject, mySdk);
    consoleView.addMessageFilter(new PythonTracebackFilter(myProject));
    consoleView.addMessageFilter(new PyRunCythonExtensionsFilter(myProject));
    return consoleView;
}
Also used : PyRunCythonExtensionsFilter(com.jetbrains.python.debugger.PyRunCythonExtensionsFilter) PythonTracebackFilter(com.jetbrains.python.run.PythonTracebackFilter)

Example 2 with PythonTracebackFilter

use of com.jetbrains.python.run.PythonTracebackFilter in project intellij-community by JetBrains.

the class SphinxBaseCommand method execute.

public void execute(@NotNull final Module module) {
    final Project project = module.getProject();
    try {
        if (!setWorkDir(module))
            return;
        final ProcessHandler process = createProcess(module);
        new RunContentExecutor(project, process).withFilter(new PythonTracebackFilter(project)).withTitle("reStructuredText").withRerun(() -> execute(module)).withAfterCompletion(getAfterTask(module)).run();
    } catch (ExecutionException e) {
        Messages.showErrorDialog(e.getMessage(), "ReStructuredText Error");
    }
}
Also used : Project(com.intellij.openapi.project.Project) ProcessHandler(com.intellij.execution.process.ProcessHandler) RunContentExecutor(com.intellij.execution.RunContentExecutor) ExecutionException(com.intellij.execution.ExecutionException) PythonTracebackFilter(com.jetbrains.python.run.PythonTracebackFilter)

Aggregations

PythonTracebackFilter (com.jetbrains.python.run.PythonTracebackFilter)2 ExecutionException (com.intellij.execution.ExecutionException)1 RunContentExecutor (com.intellij.execution.RunContentExecutor)1 ProcessHandler (com.intellij.execution.process.ProcessHandler)1 Project (com.intellij.openapi.project.Project)1 PyRunCythonExtensionsFilter (com.jetbrains.python.debugger.PyRunCythonExtensionsFilter)1