Skip to content

fix: remove intrusive error notification for unresolvable Python paths (Fixes #1283)#1287

Merged
karthiknadig merged 2 commits intomicrosoft:mainfrom
karthiknadig:fix/issue-1283
Feb 27, 2026
Merged

fix: remove intrusive error notification for unresolvable Python paths (Fixes #1283)#1287
karthiknadig merged 2 commits intomicrosoft:mainfrom
karthiknadig:fix/issue-1283

Conversation

@karthiknadig
Copy link
Member

Summary

Removes the intrusive showErrorMessage notification that appeared when handlePythonPath couldn't resolve a path (e.g., non-Python executables like node or ruby). This was confusing users who weren't actively selecting a Python interpreter.

Changes

  • src/common/utils/pythonPath.ts: Replaced showErrorMessage + traceError with traceWarn — the unresolvable path is logged but no longer triggers a modal notification
  • src/features/envCommands.ts: Added user-facing error message when the interactive "Browse..." flow selects a path that can't be resolved
  • src/common/pickers/environments.ts: Added user-facing error message when a browsed path can't be resolved from the environment picker
  • src/test/common/pythonPath.unit.test.ts: Added 12 unit tests covering handlePythonPath — resolution, fallback, deduplication, cancellation, progress reporting, priority sorting

Fixes #1283

@karthiknadig karthiknadig self-assigned this Feb 27, 2026
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Feb 27, 2026
@karthiknadig karthiknadig marked this pull request as ready for review February 27, 2026 01:13
@karthiknadig karthiknadig enabled auto-merge (squash) February 27, 2026 01:13
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 27, 2026
@karthiknadig karthiknadig merged commit d7ae4d3 into microsoft:main Feb 27, 2026
43 of 44 checks passed
@karthiknadig karthiknadig deleted the fix/issue-1283 branch February 27, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python Environments "Unable to handle /usr/share/jupyter/kernels/pythonEnv/helper"

2 participants