From 08628702e95a34bb4f9fa508c799db5f320c415d Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Tue, 13 Jul 2021 16:11:53 -0700 Subject: [PATCH] Fix 'Cannot read property 'resolveEnv' of undefined' error (#16677) --- .../pythonEnvironments/base/locators/common/wrappingLocator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/pythonEnvironments/base/locators/common/wrappingLocator.ts b/src/client/pythonEnvironments/base/locators/common/wrappingLocator.ts index 7431fc217b77..9cd1bffb0a09 100644 --- a/src/client/pythonEnvironments/base/locators/common/wrappingLocator.ts +++ b/src/client/pythonEnvironments/base/locators/common/wrappingLocator.ts @@ -32,6 +32,7 @@ export class LazyWrappingLocator extends LazyResourceBasedLocator { } public async resolveEnv(env: string): Promise { + await this.ensureResourcesReady(); return this.wrapped!.resolveEnv(env); }