Python: Fix debugger start

Change-Id: I9a26c591d174f5f079c4a673a6bf1aedd5cd709c
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Artem Sokolovskii
2023-08-24 17:14:01 +02:00
parent 4451da7037
commit 12fb4e93bd
2 changed files with 5 additions and 4 deletions

View File

@@ -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<PythonInterpreterAspect>())
updateExtraCompilers(project, aspect->extraCompilers());
if (auto aspect = rc->aspect<InterpreterAspect>()) {
updateExtraCompilers(project,
static_cast<PythonInterpreterAspect *>(aspect)
->extraCompilers());
}
}
} else if (isSupportedDocument(document)) {
const FilePath workspacePath = documentPath.parentDir();

View File

@@ -14,8 +14,6 @@ class PythonRunConfiguration;
class PythonInterpreterAspect final : public ProjectExplorer::InterpreterAspect
{
Q_OBJECT
public:
PythonInterpreterAspect(Utils::AspectContainer *container, ProjectExplorer::RunConfiguration *rc);
~PythonInterpreterAspect() final;