@@ -115,6 +115,7 @@ class HomeSDK extends SDK {
115115 mojoPath : string ,
116116 visualizersPath : string ,
117117 lldbPath : string ,
118+ private prefixPath ?: string ,
118119 ) {
119120 super (
120121 logger ,
@@ -132,8 +133,10 @@ class HomeSDK extends SDK {
132133
133134 public override getProcessEnv ( withTelemetry : boolean = true ) {
134135 return {
136+ ...super . getProcessEnv ( withTelemetry ) ,
135137 MODULAR_HOME : this . homePath ,
136- MODULAR_TELEMETRY_ENABLED : withTelemetry ? 'true' : 'false' ,
138+ // HACK: Set CONDA_PREFIX to allow debugger wrappers to work
139+ CONDA_PREFIX : this . prefixPath ,
137140 } ;
138141 }
139142}
@@ -214,6 +217,7 @@ export class PythonEnvironmentManager extends DisposableContext {
214217 return this . createSDKFromHomePath (
215218 SDKKind . Environment ,
216219 path . join ( env . executable . sysPrefix , 'share' , 'max' ) ,
220+ env . executable . sysPrefix ,
217221 ) ;
218222 } else {
219223 this . logger . info (
@@ -315,6 +319,7 @@ export class PythonEnvironmentManager extends DisposableContext {
315319 public async createSDKFromHomePath (
316320 kind : SDKKind ,
317321 homePath : string ,
322+ prefixPath ?: string ,
318323 ) : Promise < SDK | undefined > {
319324 const modularCfgPath = path . join ( homePath , 'modular.cfg' ) ;
320325 const decoder = new TextDecoder ( ) ;
@@ -372,6 +377,7 @@ export class PythonEnvironmentManager extends DisposableContext {
372377 config [ 'mojo-max' ] [ 'driver_path' ] ,
373378 config [ 'mojo-max' ] [ 'lldb_visualizers_path' ] ,
374379 config [ 'mojo-max' ] [ 'lldb_path' ] ,
380+ prefixPath ,
375381 ) ;
376382 } catch ( e ) {
377383 await this . displaySDKError (
0 commit comments