From e7f0aac008c841ab6eac681e52dcfcd2fdda2be0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 5 Aug 2026 16:51:58 +0100 Subject: [PATCH] Don't run syntax checks while a script is running --- qrenderdoc/Windows/PythonShell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qrenderdoc/Windows/PythonShell.cpp b/qrenderdoc/Windows/PythonShell.cpp index 67594f073..502880dfa 100644 --- a/qrenderdoc/Windows/PythonShell.cpp +++ b/qrenderdoc/Windows/PythonShell.cpp @@ -537,6 +537,10 @@ void PythonShell::doSyntaxCheck() if(sc->autoCActive() || m_FuncTip) return; + // also don't do it while running, as it makes no sense and also could stall the UI thread if we're debugging + if(runningScriptEditor) + return; + QByteArray script = sc->getText(sc->textLength() + 1); PyParseError parseError = completionContext->CheckPyParse(script, "script.py");