From 12fb4e93bdd864819c4863b8e0ac6306690f176a Mon Sep 17 00:00:00 2001 From: Artem Sokolovskii Date: Thu, 24 Aug 2023 17:14:01 +0200 Subject: [PATCH] Python: Fix debugger start Change-Id: I9a26c591d174f5f079c4a673a6bf1aedd5cd709c Reviewed-by: David Schulz --- src/plugins/python/pythonlanguageclient.cpp | 7 +++++-- src/plugins/python/pythonrunconfiguration.h | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 1006eea3e82..750ab333826 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -208,8 +208,11 @@ void PyLSClient::openDocument(TextEditor::TextDocument *document) if (PythonProject *project = pythonProjectForFile(documentPath)) { if (Target *target = project->activeTarget()) { if (RunConfiguration *rc = target->activeRunConfiguration()) - if (auto aspect = rc->aspect()) - updateExtraCompilers(project, aspect->extraCompilers()); + if (auto aspect = rc->aspect()) { + updateExtraCompilers(project, + static_cast(aspect) + ->extraCompilers()); + } } } else if (isSupportedDocument(document)) { const FilePath workspacePath = documentPath.parentDir(); diff --git a/src/plugins/python/pythonrunconfiguration.h b/src/plugins/python/pythonrunconfiguration.h index 4c4517abf75..b4eb54b12f8 100644 --- a/src/plugins/python/pythonrunconfiguration.h +++ b/src/plugins/python/pythonrunconfiguration.h @@ -14,8 +14,6 @@ class PythonRunConfiguration; class PythonInterpreterAspect final : public ProjectExplorer::InterpreterAspect { - Q_OBJECT - public: PythonInterpreterAspect(Utils::AspectContainer *container, ProjectExplorer::RunConfiguration *rc); ~PythonInterpreterAspect() final;