@@ -5,7 +5,7 @@ import * as fs from 'fs';
5
5
import * as path from 'path' ;
6
6
import { convertFileType , DirEntry , FileType , getFileFilter , getFileType } from '../../common/utils/filesystem' ;
7
7
import { getOSType , OSType } from '../../common/utils/platform' ;
8
- import { traceError } from '../../logging' ;
8
+ import { traceError , traceVerbose } from '../../logging' ;
9
9
import { PythonVersion , UNKNOWN_PYTHON_VERSION } from '../base/info' ;
10
10
import { comparePythonVersionSpecificity } from '../base/info/env' ;
11
11
import { parseVersion } from '../base/info/pythonVersion' ;
@@ -246,8 +246,11 @@ export async function getPythonVersionFromPath(interpreterPath: string, hint?: s
246
246
versionA = UNKNOWN_PYTHON_VERSION ;
247
247
}
248
248
const versionB = interpreterPath ? await getPythonVersionFromNearByFiles ( interpreterPath ) : UNKNOWN_PYTHON_VERSION ;
249
+ traceVerbose ( 'Best effort version B for' , interpreterPath , JSON . stringify ( versionB ) ) ;
249
250
const versionC = interpreterPath ? await getPythonVersionFromPyvenvCfg ( interpreterPath ) : UNKNOWN_PYTHON_VERSION ;
251
+ traceVerbose ( 'Best effort version C for' , interpreterPath , JSON . stringify ( versionC ) ) ;
250
252
const versionD = interpreterPath ? await getPythonVersionFromConda ( interpreterPath ) : UNKNOWN_PYTHON_VERSION ;
253
+ traceVerbose ( 'Best effort version D for' , interpreterPath , JSON . stringify ( versionD ) ) ;
251
254
252
255
let version = UNKNOWN_PYTHON_VERSION ;
253
256
for ( const v of [ versionA , versionB , versionC , versionD ] ) {
0 commit comments