@@ -217,7 +217,8 @@ class NativePythonFinderImpl implements NativePythonFinder {
217217 if ( this . restartAttempts >= MAX_RESTART_ATTEMPTS ) {
218218 throw new Error (
219219 `Python Environment Tools (PET) failed after ${ MAX_RESTART_ATTEMPTS } restart attempts. ` +
220- 'Please reload the window or check the output channel for details.' ,
220+ 'Please reload the window or check the output channel for details. ' +
221+ 'To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.' ,
221222 ) ;
222223 }
223224
@@ -264,6 +265,9 @@ class NativePythonFinderImpl implements NativePythonFinder {
264265 // We'll reset this only after a successful request completes
265266 } catch ( ex ) {
266267 this . outputChannel . error ( '[pet] Failed to restart Python Environment Tools:' , ex ) ;
268+ this . outputChannel . error (
269+ '[pet] To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.' ,
270+ ) ;
267271 throw ex ;
268272 } finally {
269273 this . isRestarting = false ;
@@ -438,6 +442,9 @@ class NativePythonFinderImpl implements NativePythonFinder {
438442 // Mark start as failed so all subsequent requests fail immediately
439443 this . startFailed = true ;
440444 this . outputChannel . error ( `[pet] Error starting Python Finder ${ this . toolPath } server` , ex ) ;
445+ this . outputChannel . error (
446+ '[pet] To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.' ,
447+ ) ;
441448 // Don't continue - throw so caller knows spawn failed
442449 throw ex ;
443450 }
0 commit comments