Skip to content

Commit 85af228

Browse files
authored
Merge branch 'main' into package-lookup-not-implemented
2 parents 761d1bb + 165d400 commit 85af228

6 files changed

Lines changed: 1169 additions & 8 deletions

File tree

‎src/common/inlineScript/cacheLayout.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export function selectStaleEntries(entries: ReadonlyArray<CacheEntrySummary>, no
204204
}
205205

206206
/**
207-
* Verify that a cached env's base interpreter still exists on disk.
207+
* Verify that a cached env's launcher and base interpreter still exist on disk.
208208
*/
209209
export async function verifyBaseInterpreterExists(envDir: Uri): Promise<boolean> {
210210
return (await getBaseInterpreterStatus(envDir)) === 'available';
@@ -221,6 +221,11 @@ async function getPosixBaseInterpreterStatus(envDir: Uri): Promise<BaseInterpret
221221
}
222222

223223
async function getWindowsBaseInterpreterStatus(envDir: Uri): Promise<BaseInterpreterStatus> {
224+
const launcherStatus = await getRegularFileStatus(getVenvPythonPath(envDir.fsPath), 'cached interpreter launcher');
225+
if (launcherStatus !== 'available') {
226+
return launcherStatus;
227+
}
228+
224229
const pyvenvPath = Uri.joinPath(envDir, 'pyvenv.cfg').fsPath;
225230
let raw: string;
226231
try {

0 commit comments

Comments
 (0)