diff --git a/extensions/positron-python/src/client/positron/session.ts b/extensions/positron-python/src/client/positron/session.ts index 54aaf94cd45..d71b656e18f 100644 --- a/extensions/positron-python/src/client/positron/session.ts +++ b/extensions/positron-python/src/client/positron/session.ts @@ -107,7 +107,10 @@ export class PythonRuntimeSession implements positron.LanguageRuntimeSession, vs const interpreter = interpreterService.getInterpreters().find((i) => i.id === extraData.pythonEnvironmentId); if (!interpreter) { - throw new Error(`Interpreter not found: ${extraData.pythonEnvironmentId}`); + const interpreterIds = interpreterService.getInterpreters().map((i) => `\n- ${i.id}`); + throw new Error( + `Interpreter ${extraData.pythonEnvironmentId} (path: ${extraData.pythonPath}) not found in available Python interpreters: ${interpreterIds}`, + ); } this.interpreter = interpreter;