diff --git a/python/src/com/jetbrains/python/PyBundle.properties b/python/src/com/jetbrains/python/PyBundle.properties
index 62055e41c78f..d1e327049b9a 100644
--- a/python/src/com/jetbrains/python/PyBundle.properties
+++ b/python/src/com/jetbrains/python/PyBundle.properties
@@ -890,6 +890,7 @@ sdk.gen.reading.versions.file=Reading versions file...
sdk.gen.notify.converting.old.skels=Converting old skeletons
sdk.gen.notify.converting.text=Skeletons of binary modules seem to be from an older version.
These will be fully re-generated, which will take some time, but will happen only once.
Next time you open the project, only skeletons of new or updated binary modules will be re-generated.
sdk.gen.updating.interpreter=Updating Python Interpreter
+sdk.scanning.installed.packages=Scanning Installed Packages
sdk.gen.stubs.for.binary.modules=Generate stubs for binary module {0}
# Active SDK configurable and related dialogs
diff --git a/python/src/com/jetbrains/python/packaging/PyPackageManagerImpl.java b/python/src/com/jetbrains/python/packaging/PyPackageManagerImpl.java
index 941dd15e7b78..a82dfb40e0c9 100644
--- a/python/src/com/jetbrains/python/packaging/PyPackageManagerImpl.java
+++ b/python/src/com/jetbrains/python/packaging/PyPackageManagerImpl.java
@@ -260,6 +260,7 @@ public class PyPackageManagerImpl extends PyPackageManager {
protected List collectPackages() throws ExecutionException {
final String output;
try {
+ LOG.debug("Collecting installed packages for the SDK " + mySdk.getName(), new Throwable());
output = getHelperResult(PACKAGING_TOOL, Collections.singletonList("list"), false, false, null);
}
catch (final ProcessNotCreatedException ex) {
diff --git a/python/src/com/jetbrains/python/packaging/PyPackageUtil.java b/python/src/com/jetbrains/python/packaging/PyPackageUtil.java
index fb88e90cd2ca..214b5694719b 100644
--- a/python/src/com/jetbrains/python/packaging/PyPackageUtil.java
+++ b/python/src/com/jetbrains/python/packaging/PyPackageUtil.java
@@ -34,6 +34,7 @@ import com.intellij.openapi.vfs.VirtualFileVisitor;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;
+import com.jetbrains.python.PyBundle;
import com.jetbrains.python.PyNames;
import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
import com.jetbrains.python.packaging.setupPy.SetupTaskIntrospector;
@@ -279,7 +280,8 @@ public class PyPackageUtil {
@Nullable
public static List refreshAndGetPackagesModally(@NotNull Sdk sdk) {
final Ref> packagesRef = Ref.create();
- PyUtil.runWithProgress(null, "Scanning Installed Packages", true, false, indicator -> {
+ LOG.debug("Showing modal progress for collecting installed packages", new Throwable());
+ PyUtil.runWithProgress(null, PyBundle.message("sdk.scanning.installed.packages"), true, false, indicator -> {
indicator.setIndeterminate(true);
try {
packagesRef.set(PyPackageManager.getInstance(sdk).refreshAndGetPackages(false));